Edison Su
9ec9d74514
zone can be deleted now
2011-06-02 12:33:37 -04:00
Edison Su
4a47d19c84
fix delete zone: many times, you just can't delete a zone, even you clean up all the resources
2011-06-01 20:26:29 -04:00
Alex Huang
2ceadec326
bug 9651: tags parameter added to createnetwork
2011-06-01 17:36:14 -07:00
anthony
7a266b9321
bug 10046: size in diskofferingVO is in type now
...
status 10046: resolved fixed
2011-05-26 13:51:08 -07:00
Abhinandan Prateek
5ad41e09ae
bug 7553: Virtual Router service offering
2011-05-21 22:21:12 +05:30
Abhinandan Prateek
770e317218
bug 7553: Virtual Router service offering
2011-05-19 19:18:33 +05:30
prachi
b66b3f1c45
Bug 9584 - Delete pod - Failed - there are storage volumes for this pod
...
Changes:
- For 'volumes' and 'vm_instance' table, query needed to filter out the records with non-null 'removed' values
2011-05-05 11:05:48 -07:00
prachi
25fd7cd999
Merging changes from zonesfeature branch: Adding dhcp_provider parameter to UpdateZoneCmd
2011-04-28 23:28:14 -07:00
prachi
86b386e8c0
Merging changes from zonesfeature branch for Bug 8026 - discern proper cluster/pod/zone for added host (and refactor AgentManagerImpl)
...
- CreateZone API creates a zoneToken, inserts in DB and returns it in the
response
- UpdateZone API takes in 'details' map that is loaded to data_center_details
2011-04-28 23:08:58 -07:00
Murali Reddy
c12ccbd06f
Bug 9534 : implement CPU cap
...
Introducing new boolean flag in service offering to restrict the user VM's CPU utilization to what service offering it is entitled for.
2011-04-27 13:54:45 +05:30
alena
1a6d78eae4
Code cleanup. No need to declare runtime exceptions (CloudRuntimeException, InvalidParameterException, PermissionDenied exceptions)
2011-04-21 16:26:53 -07:00
alena
4e5b6c902a
bug 9498: allow zone deletion when it has pods having not NULL removed field
...
status 9498: resolved fixed
2011-04-18 17:30:45 -07:00
prachi
734e3f17c2
Bug 9331 - Even when there is no longer clusters in the pod, 'Delete Pod - Failed - because there are clusters in this pod'
...
Changes:
- Cluster entry is not removed from the table when a cluster is deleted because there are some foreign key constraints failing if the row delete is attempted. Instead the cluster is marked as 'removed'
- While deleting the pod changed the check to see if pod has any clusters - we now check that there are no clusters with removed column null.
- Also pod entry cannot be deleted from the db due to foreign key constraints. So added 'removed' column to Pod table host_pod_ref
- Now on deleting a pod, the pod will be marked as removed and pod name is set to null.
2011-04-15 16:04:16 -07:00
Frank
105db3b15a
Merge branch 'baremetal' to master
...
modifies:
api/src/com/cloud/api/ApiConstants.java
api/src/com/cloud/api/commands/AddHostCmd.java
api/src/com/cloud/api/commands/CreatePodCmd.java
api/src/com/cloud/api/commands/DeployVMCmd.java
api/src/com/cloud/dc/Pod.java
api/src/com/cloud/network/NetworkService.java
server/src/com/cloud/agent/manager/AgentManagerImpl.java
server/src/com/cloud/configuration/ConfigurationManagerImpl.java
server/src/com/cloud/dc/HostPodVO.java
server/src/com/cloud/network/NetworkManager.java
server/src/com/cloud/network/NetworkManagerImpl.java
server/src/com/cloud/vm/UserVmManagerImpl.java
setup/db/create-schema.sql
utils/src/com/cloud/utils/SerialVersionUID.java
2011-04-11 14:21:41 -07:00
Frank
0810831fd2
Bug 8208 - bare metal provisioning
...
set useexternalDHCP to false when creating pod
2011-04-11 10:41:45 -07:00
anthony
288a36d09f
Merge branch '2.2.4'
...
Conflicts:
api/src/com/cloud/configuration/ConfigurationService.java
core/src/com/cloud/agent/resource/virtualnetwork/VirtualRoutingResource.java
server/src/com/cloud/api/ApiDBUtils.java
server/src/com/cloud/configuration/ConfigurationManagerImpl.java
server/src/com/cloud/network/NetworkManagerImpl.java
server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
setup/db/db/schema-21to22.sql
setup/db/db/schema-222to224.sql
utils/src/com/cloud/utils/exception/ExceptionUtil.java
2011-04-05 12:04:09 -07:00
alena
bf588166ed
bug 7704: network limits cleanup.
...
status 7704: resolved fixed
For user vm:
* for default network, take limit from the corresponding service offering
* for all additional networks, take limit from the network offerings
For domainRouter/SSVM/CPVM:
* get info from the network offering
Added new config parameter: "vm.network.throttling.rate". If nw_rate is NULL for serviceOffering, this parameter would be used for default vm's network
2011-04-01 15:48:32 -07:00
prachi
492dd78f1c
Bug 9180 - Default local SR on XenServer won't be used
...
- Update the diskoffering for system VMs to change the value of use_local_storage, when the global config 'system.vm.use.local.storage' is changed.
2011-03-31 23:11:11 -07:00
prachi
e139cff9f0
Bug 9180 - Default local SR on XenServer won't be used
...
- Update the diskoffering for system VMs to change the value of use_local_storage, when the global config 'system.vm.use.local.storage' is changed.
2011-03-31 23:05:50 -07:00
alena
5f4054325a
bug 9248: generate events on service/diskOffering create/update/delete
...
status 9248: resolved fixed
2011-03-31 16:32:07 -07:00
alena
703537d222
bug 9248: generate events on service/diskOffering create/update/delete
...
status 9248: resolved fixed
2011-03-31 16:30:11 -07:00
alena
6d7f3da46a
For VirtualRouter apply networkThrottling rate of the GuestNetworkOffering to both Guest and Public networks.
2011-03-30 14:53:04 -07:00
alena
bb31bc779f
For VirtualRouter apply networkThrottling rate of the GuestNetworkOffering to both Guest and Public networks.
2011-03-30 14:49:15 -07:00
alena
90ec1dcd33
Allow to add Untagged network ranges to public virtual network in Basic zone
2011-03-29 19:44:12 -07:00
alena
efd4cfa297
bug 9201: listNetworkOfferings - return -1 when network_rate is Unlimited; if value is NULL - return global configuration value
...
status 9201: resolved fixed
2011-03-29 19:26:20 -07:00
alena
aab78874c7
bug 9201: listNetworkOfferings - return -1 when network_rate is Unlimited; if value is NULL - return global configuration value
...
status 9201: resolved fixed
2011-03-29 19:21:25 -07:00
alena
0c9e80eeab
bug 8976: don't allow to delete pod when it has clusters
...
status 8976: resolved fixed
2011-03-24 17:10:01 -07:00
alena
2f782305fd
bug 8897: allow to delete a zone when it has alerts
...
status 8897: resolved fixed
2011-03-24 15:00:17 -07:00
alena
dee2e59fb3
bug 8798: delete zone is fixed
...
status 8798: resolved fixed
2011-03-24 13:32:31 -07:00
prachi
514321cadf
Bug 6873: disable/enable mode for clusters (and pods and zones and hosts)
...
Fixed problems in setting default 'allocation_state'. It is now set to 'Enabled' by default if not provided in the API command.
2011-03-24 12:54:51 -07:00
prachi
923f562aa8
Bug 6873: disable/enable mode for clusters (and pods and zones and hosts)
...
- Added a new flag 'allocation_state' to zone,pod,cluster and host
- The possible values for this flag are 'Enabled' or 'Disabled'
- When a new zone,pod,cluster or host is added, allocation_state is 'Disabled' by default.
- For existing zone,pod,cluster or host, the state is 'Enabled'.
- All Add/Update/List commands for each of zone,pod,cluster or host can now take a new parameter 'allocationstate'
- If 'allocation_state' is 'Disabled', Allocators skip that zone or pod or cluster or pod.
- For a root admin, ListZones lists all zones including the 'Disabled' zones. But for any other user, the 'Disabled' zones are not included in the response.
- For any usecase that creates/deploys/adds/registers a resource and takes in zone as parameter, now we check if the Zone is 'Disabled'. If yes then the operation cannot be performed by a user other than root-admin. Add volume, snapshot, templates are examples of this usecase.
- To enable the root admin to test a particular pod/cluster/host, deployVM command takes in 'host_id' parameter that can be passed in only by root admin.
If this parameter is passed in by the admin, allocators do not search for hosts and use that host only. StoragePools are searched in the cluster of that host.
If VM cannot be deployed to that host, allocators and deployVM fails without retrying
2011-03-23 22:15:35 -07:00
alena
bbc5bdd83b
Fixed NPE in diskOffering creation
2011-03-23 15:53:46 -07:00
Kelven Yang
b264866d2e
Perform and alert management.network.cidr configuration on management server startup
2011-03-21 16:46:43 -07:00
alena
abb2e2b2ff
bug 8831: partial checkin for Domain specific Networks (includes DB changes)
2011-03-21 15:05:07 -07:00
alena
729595d005
bug 9050: fixed create/deleteVlanRange generation
...
status 9050: resolved fixed
2011-03-18 18:12:52 -07:00
alena
a27c4881ea
bug 7424: 0 value for network.throttling.rate global config param indicates that network throttling is disabled
...
status 7424: resolved fixed
2011-03-18 15:23:03 -07:00
alena
96e83fe97f
bug 8146: Elastic IP support in Basic zone.
...
Following was done as a part of checkin:
1) NetworkOffering/Network:
* add PF service support for default Guest network offering.
* Add one more additional network - Public.
* Allow to enable external firewall in Basic zone.
2) Don't allow to deployVm in Public Network.
3) Allow to add vlan ip ranges to Public networks in Basic zone.
4) Associate IP - allow to associate with Direct vms.
5) Allow to create PF/Static nat rules. Rules are being sent to External Firewall Rule only.
6) Add PF support to External Firewall element.
2011-03-17 17:19:36 -07:00
alena
d3f04b2b38
bug 8945: introduced "default.page.limit" config param (default value is 500). Used for pagination in API list* commands.
...
status 8945: resolved fixed
2011-03-15 15:06:52 -07:00
Frank
ffb900fc86
Bug 8208 - bare metal provisioning
...
Add useExternalDhcp option to createPodCmd
2011-03-14 16:42:59 -07:00
alena
3448513465
bug 8666: perform RFC1918 check for cidr of Guest Virtual cidr when 1) Create/Update zone 2) Create guest virtual network
...
status 8666: resolved fixed
2011-03-10 14:06:43 -08:00
alena
5a44e03764
bug 8844: default and Public disk offerings have NULL domainId (to be consistent with serviceOfferings)
...
status 8844: resolved fixed
2011-03-10 12:10:55 -08:00
alena
df3704e360
bug 8861: introduced optional zoneId parameter to listNetworkOfferings command
...
status 8861: resolved fixed
2011-03-09 18:05:53 -08:00
alena
715a929e91
Separate createVm methods for 1) vm in Basic zone 2) Vm with SecurityGroup in Advanced zone 3) Vm without SecurityGroup in AdvancedZone
2011-03-03 16:13:00 -08:00
alena
f36ed9b51a
bug 8689: don't allow to reset Availability for default Direct network offering
...
status 8689: resolved fixed
2011-03-02 15:58:44 -08:00
alena
1025f16940
bug 8819: Don't allow upgrade system network offerings
...
status 8819: resolved fixed
2011-03-02 15:55:36 -08:00
abhishek
9345969543
bug 8796: adding another check in advanced zone with sec grp
2011-03-01 16:33:14 -08:00
alena
0e032c5301
Fixed NPE in createVlanIpRange
2011-03-01 10:18:15 -08:00
alena
858578993f
Set specify_vlan=1 for Direct Network offering.
2011-03-01 10:01:58 -08:00
prachi
889827b63a
Bug 7845 - Productize DeploymentPlanner
...
Bug 7723 - merge or re-write host tagging into master / 2.2
Bug 7627 - Need more logging for Allocators
Bug 8317 - Add better resource allocation failure messages
Changes for Deployment Planner to use host and storagePool allocators to find deployment destination.
Also has the changes for host tag feature.
Improved the logging for allocators.
2011-02-28 13:47:51 -08:00
Edison Su
0e90ede56a
don't break basic zone mode
2011-02-28 12:16:40 -05:00
Edison Su
2705adb3b1
security group is per bridge
2011-02-28 12:16:40 -05:00
Edison Su
8a40371288
refactor security group in advanced network mode: use direct tagged network instead of public network
2011-02-24 19:58:18 -05:00
alena
039b11b9ba
1) Added guestIpType to the network offering; create/listNetworkOffering apis got changed accordingly.
...
2) Set traffic Type to be Guest for Direct/Virtual non-system default network offerings. Use this guestIpType during the network creation/implementation
2011-02-24 15:36:01 -08:00
Edison Su
adbd20ca5a
bug 8655: add security group for direct tagged network
2011-02-23 15:53:14 -05:00
alena
15f59e6f58
bug 8637: throw ResourceAllocationException when resource limit is exceeded.
...
status 8637: resolved fixed
2011-02-18 12:26:58 -08:00
alena
cd90bc7166
bug 8412: allow to delete network when it has dhcp/domRs
...
status 8412: resolved fixed
1) Don't count domR/Dhcp nic in active nics.
2) Removed domR cleanup thread; Network shutdown thread would shutdown domR/dhcp when network has no active vms
2011-02-18 10:31:59 -08:00
alena
8978839d96
bug 8617: Disable firewall/lb/vpn service for Direct network offering, so when user tries to create PF/LB rule for direct IP address, it fails.
...
status 8617: resolved fixed
2011-02-17 14:31:05 -08:00
alena
1d031e64b8
bug 8334: throw an error when try to create a network with the settings belonging to existing network
...
status 8334: resolved fixed
2011-02-16 15:53:47 -08:00
alena
b0e4ecb3af
bug 7901: Prevent using the same cidr for POD and zone's virtual network
...
status 7901: resolved fixed
2011-02-16 11:17:20 -08:00
alena
8654aa3833
bug 6366: allow to extend pod private ip range even when there are allocated private ip addresses in the pod
...
status 6366: resolved fixed
2011-02-16 10:51:53 -08:00
alena
4ae5734ab0
createPod/editPod: don't allow gateway to overlap start-end ip range
2011-02-16 10:51:53 -08:00
alena
e573e66074
bug 8502: allow to edit pod name in all the cases; even when pod has resources allocated
...
status 8502: resolved fixed
2011-02-16 10:51:53 -08:00
Alex Huang
7dd54f079b
started vms with these latest
2011-02-11 17:03:04 -08:00
abhishek
5d1d9ec387
bug 8263: allowing a private zone to be made public
2011-02-11 11:35:07 -08:00
abhishek
cb5b1e60f3
bug 8439: changes in service/disk offerings
...
status 8439: resolved fixed
2011-02-07 17:11:28 -08:00
alena
84fef40ce2
Refactored "allocate vlan to account" code
2011-02-04 09:54:16 -08:00
alena
96c05a24e4
bug 8235: don't generate NET_IPASSIGN event when ip assoc command fails
...
status 8235: resolved fixed
2011-02-01 19:55:27 -08:00
Edison Su
675a610995
cleanup default hypervisortype
2011-02-01 16:03:10 -05:00
alena
f6f8a35c75
bug 8251: introduced "id" field for public IP address. In the DB id is a primary key in user_ip_address table; ip_address and source_network_id is a composite key
...
status 8251: resolved fixed
2011-02-01 12:16:18 -08:00
Alex Huang
f9a9698d96
more unused fields removed
2011-01-28 15:37:00 -08:00
alena
77e89b72ca
bug 8187: retreive DNS information from DataCenter instead of resetting it for the network. After the DNS is reset, all networks in the zone have to be restarted. Console proxy and secondary vm should be restarted too.
...
status 8187: resolved fixed
2011-01-26 19:08:56 -08:00
Alex Huang
c59e576a51
removed unused dns
2011-01-24 17:50:32 -08:00
alena
0e4196448a
bug 7811: Start domR/Dhcp if it's not running when do userVmReboot
...
status 7811: resolved fixed
Other fixes:
* vmExpunge: cleanup LB/PF rules after vm was marked as Expunging in the DB to avoid the situation when user recovers a vm in the middle of expunge job.
2011-01-24 17:04:23 -08:00
alena
6304a92c23
bug 7881: fixed publicIpAllocation to an account.
...
status 7881: resolved fixed
Also fixed the issue with account delete when nonSourceNat ip addresses were not being released
2011-01-24 10:03:18 -08:00
alena
26b6d17ec6
bug 8139: Allow to have Virtual and Direct networks with the same vlanId
...
status 8139: resolved fixed
2011-01-21 15:14:08 -08:00
alena
4d0d47f6fc
listVlanIpRanges api: for Account specific Virtual ip range return account information taken from account_vlan_map table instead of taking it from corresponding network
2011-01-21 10:57:14 -08:00
alena
671cce23ad
bug 7704: network_rate is a part of network offering now. It's optional parameter; if not specified - global config param is used.
...
status 7704: resolved fixed
2011-01-21 09:54:27 -08:00
kishan
94ec7bf27a
bug 7842: events refactoring. Still wrok in progress
2011-01-20 21:49:50 +05:30
alena
620e7e0305
Implemented list by trafficType in listNetworks command
2011-01-11 16:06:58 -08:00
alena
5dfe399c1a
bug 7803: introduces new parameter "is_default" for the network. DeployVm requires 1 default network to be specified, other networks (if any) have to be secondary
...
status 7803: resolved fixed
Fix overview:
1) Parameter "isDefault" should be defined as a part of createNetwork
* Virtual network is always default
* Parameter can be specified only for DirectNetwork
* Once parameter is set, there is no way to change it as we don't provide updateNetwork command.
2) Added isDefault parameter to listNetworks command so you can sort by that.
3) DeployVmCmd:
* at least one default network should be set
* if more than 1 default network is set - throw an error
4) Return isDefault information as a part of Nic object for the vm response in deploy/stop/start/listVm
2011-01-11 14:22:26 -08:00
alena
d0687f663f
bug 7863: fixed router cleanup thread
...
status 7863: resolved fixed
Router cleanp thread is fixed, here is functionality description:
* Runs every "router.cleanup.interval" period of time (1 day by default)
* Stops only domRs running in Advance zone
* Thread Flow:
- gets all Running domRs/dhcps, get their networks, select network that
has to be checked (see criteria below):
- checks that there is only one nic in the op_networks table for the
network, and this nic belongs to domR/dhcp
- Stops domR/dhcp
* Criteria to choose the network:
- Network has to be non-system.
- Network should be one of the following: Guest Virtual (TrafficType=Guest; GuestType=Virtual); Direct Tagged (TrafficType=Public; GuestType=Direct)
Couple of other fixes:
* Added isShared parameter to listNetworks command
* Moved guestType from NetworkOffering to Network
2011-01-07 16:57:47 -08:00
alena
789912de6a
Removed guestIpType parameter from listNetwork offerings command
2011-01-07 10:54:45 -08:00
will
8284abedf5
bug 7902: Fixed problem with updating secstorage.ssl.cert.domain as it was incorrect set to be validated as a boolean and also was set to be validated as an ip range.
...
- Fixed error message returned when validating boolean to not return double-quotes as that breaks JSON.
2011-01-07 10:39:49 -08:00
alena
4ec3bc5865
bug 7244: delete corresponding untagged pod vlan ranges when pod is deleted
...
status 7244: resolved fixed
2011-01-06 16:16:09 -08:00
alena
916b516d13
bug 7878: Fixed Basic zone functionality - uservm/systemvm/domR start
...
status 7878: resolved fixed
2011-01-06 15:44:13 -08:00
alena
02dc187a0c
bug 7727: Don't create Public network with broadcast_domain_type=vlan for Basic zone
...
status 7727: resolved fixed
2011-01-06 15:44:13 -08:00
alena
edfbc5a782
bug 7267: create/updateZone - guestNetworkCidr parameter is accepted only for zone of type Adanced.
...
status 7267: resolved fixed
As a part of the fix added cidr format validation to updateZone command.
2011-01-04 16:59:39 -08:00
abhishek
58f2f37fc9
adding more range checks in the createZone functionality
2011-01-04 15:22:34 -08:00
abhishek
e28ed752fc
bug 7835: fixing the vnet range issues for add zone and edit zone
...
status 7835: resolved fixed
2011-01-04 15:14:55 -08:00
Alex Huang
4eba6d10d7
Moved State into VirtualMachine like other States of objects
2011-01-04 15:01:34 -08:00
kishan
fb6310e993
bug 6947: removed network type from service offering APIs
...
status 6947: resolved fixed
2011-01-04 13:22:41 +05:30
Alex Huang
1df2f6b01b
More copy and paste crap that I had to fix. Are there more?
2010-12-30 20:30:45 -08:00
abhishek
3e1f782edd
bug 7606: adding delete vlans and ip addresses during zone deletion
...
status 7606: resolved fixed
2010-12-30 15:48:35 -08:00
Alex Huang
544fa7ff1b
remote access vpn, user ip address changes
2010-12-29 09:32:54 -08:00
alena
88afdb3313
Made NetworkId parameter required for Vlan, modified DB schema and corresponding Managers' methods. For Virtual and Direct untagged vlan networkId is got from default system Public/Public-DirectPodBased networks accordingly
2010-12-28 15:15:24 -08:00
abhishek
5d3173eabf
bug 7721: generically fixing the url decoder issue for all commands, wherein we block any input which contains % eg. name, displayText. We throw the apt error back to the UI for the user to act upon
...
status 7721: resolved fixed
2010-12-28 14:23:21 -08:00
abhishek
1e17559d53
bug 7689: whilst editing pod, we were not calculating the netmask if the netmask is not passed down from the UI. Re-calculating the netmask, based on pod attribs in db
...
status 7689: resolved fixed
2010-12-28 10:31:07 -08:00
alena
bb088a2e4c
bug 7489: Added events for network create/delete
...
status 7489: resolved fixed
2010-12-27 15:18:14 -08:00
abhishek
0da33ad39a
bug 7673,7645: fixing the vm expunge issue. also modifying the delete pod flow to only check for hosts that are NOT removed from the pod. also, checking for alerts on the pod whilst deleting pod is not right. we should be able to delete a pod regardless of alerts issued on the pod. the resolution of alerts is a separate issue
...
status 7673, 7645: resolved fixed
2010-12-27 11:29:36 -08:00
kishan
e51dc79000
bug 7504: Events refactoring
...
status 7504: resolved fixed
2010-12-24 19:38:28 +05:30
abhishek
35a8318134
bug 7606: fixing the delete zone functionality
...
status 7606: resolved fixed
2010-12-23 14:11:25 -08:00
alena
3775ba043e
Added Services (dhcp, gateway, portForwarding, etc.) to NetworkOffering.
2010-12-23 09:40:15 -08:00
abhishek
d5a8136f14
bug 7585: adding logic to ensure empty strings are a valid input during zone edit
...
status 7585: resolved fixed
2010-12-21 14:03:46 -08:00
alena
21bb9df292
Fixed accountCleanup to release all public ip addresses and delete the corresponding networks.
2010-12-20 20:20:09 -08:00
alena
ddc69cdd47
Assign sourceNat ip address to domR only, skip DHCP.
2010-12-20 10:47:06 -08:00
alena
3cd989cbef
1) Changed format for IpAssoc command. Instead of sending the ip addresses to assign one by one, we send a list of ip addresses to the agent.
...
2) Fixed createVM with multiple networks
2010-12-20 09:37:46 -08:00
abhishek
75b02e806d
bug 7484: Fixing the issue of management server crashes on setting values for timer intervals to be 0 or less
...
status 7484: resolved fixed
2010-12-17 12:39:39 -08:00
alena
0049c74a5e
1) Different format for LoadBalancerCommand.
...
2) When apply lb rule for domR, resend all lb rules belonging to the lb network
2010-12-17 09:37:13 -08:00
alena
d673686f5f
Added Availability field for NetworkOffering. Added updateNetworkOffering API command
2010-12-13 18:28:33 -08:00
alena
7d7817ecba
Delete corresponding networks during zone deletion.
2010-12-10 20:42:38 -08:00
alena
cc98337eb6
Create default networks when zone is created
2010-12-10 19:25:23 -08:00
Alex Huang
d27c0c4b01
mac addresses for private ip addresses
2010-12-10 13:36:40 -08:00
abhishek
3681991b38
adding some comments around tag edit disabling for service and disk offerings
2010-12-09 13:04:38 -08:00
alena
157156dd35
1)Introduced new Network Guru - used for direct tagged network.
...
2)Made vm start with multiple networks
2010-12-09 11:12:29 -08:00
alena
8fb948650f
Fixed createPortForwardingRule command.
...
Modified createVlanIpRange command: added optional networkId parameter; only startIp parameter is required now.
2010-12-09 11:12:29 -08:00
Alex Huang
49c77cf0cf
merge changes
2010-12-08 09:03:34 -08:00
alena
e279389c2b
Added created/removed fields to Nics and Networks tables.
2010-12-07 18:08:05 -08:00
alena
a67e91253f
Don't allow to create network offering of DirectPodBased type
2010-12-06 17:42:23 -08:00
alena
fb4c448762
Don't create default pod/zone
...
Create untagged network as a part of createZone command
2010-12-06 16:48:25 -08:00
Alex Huang
128bdbffa9
macaddress generation
2010-12-06 15:55:44 -08:00
alena
a230a5fed9
createNetwork - specifyVlan parameter applies for regular users only.
2010-12-06 14:11:53 -08:00
alena
5571b444f2
1) Don't allow to delete a vlan if it has network associated with it. Also don't show such vlans in listIpRanges command.
...
2) Return vlan in create/list networks command.
3) Implemented list networks by type.
4) Changed listVlanIpRanges to return start/endIps in separate tags instead of returning them in description.
2010-12-06 12:36:09 -08:00
alena
31b3b79f5a
Changed create/updatePod to accept netmask/gateway instead of cidr
2010-12-06 10:08:07 -08:00
Alex Huang
daa9add158
removed router stuff from network manager
2010-12-04 17:32:31 -08:00
alena
150d684e05
1) isShared attribute belongs to Network now, not NetworkOffering
...
2) Added list by networkId support to listVirtualMachines command.
3) Implemented search by zoneId in listNetworks command
2010-12-03 19:07:08 -08:00
abhishek
b0abda3c49
some changes to domain specific offerings for the UI to consume
2010-12-03 09:37:02 -08:00
alena
f8a687ab23
1) Implemented create/list/deleteNetworkOffering create/delete/listNetwork APIs.
...
2) Added networkIds parameter to deployVMCmd - accepts list of networks ids separated by coma.
3) Changed domainRouter/systemVm/userVm response to return list of Nics associated with the vm.
2010-12-02 19:30:17 -08:00
abhishek
a477d6c33c
adding support for updating service and disk offerings, also adding domain and domainid back in the responses to the CRUD methods for both service and disk offerings
2010-12-01 10:40:08 -08:00
abhishek
b51a7fec50
adding a security checker whilst creating a volume from a disk offering
2010-12-01 09:53:13 -08:00
abhishek
4387e2ca0a
another good point to commit; the basic domain specific disk offering functionality is now in place
2010-12-01 09:53:13 -08:00
abhishek
1dfdcf51cb
another good point for checkin, added the domain checker for checks against service offerings, whilst deploying virtual machines
2010-12-01 09:53:13 -08:00
abhishek
9a6eaaf21f
this is a good point to commit the code; have the basic domain specific service offering working
2010-12-01 09:53:13 -08:00
abhishek
3d4b8ab4a0
bug 7263: changing the param name. Found a couple of bugs whilst testing this, the validation of vol size whilst cust vol creation was missing. Adding the same.
...
status 7263: resolved fixed
2010-11-23 16:20:30 -08:00
abhishek
ca162bca11
bug 6936: for some reason, we had a check on pod-wide or account specific vlan creation. This seems to be a left over from legacy code. Removing the same. I tested to make sure both zone wide vlan and account specific vlan creation for direct tagged case works fine
...
status 6936: resolved fixed
2010-11-19 17:54:57 -08:00
alena
fe93821bb1
Fixed editZone command - if dns2 is not specified, keep the old value instead of updating it to NULL
2010-11-19 16:13:45 -08:00
alena
f2c1291f6d
Don't allow to update zone with new guestVlan range if the zone's network type is Basic
2010-11-17 10:46:38 -08:00
alena
dae39942f1
bug 7192: Added networktype parameter for the zone
...
status 7192: resolved fixed
1) Zone has networktype parameter now, 2 values are supported: Basic and Advanced. "networktype" field is created in data_center table. The parameter is being set at creation time; we don't allow to modify it with updateZone command.
2) Only vlan of Untagged Direct type can be created in Basic network zone; any other vlan except for Untagged Direct can be created in Advanced zone
3) Allow NULL guest vlan range for the zone. Only vlan of Direct type can be created in zone with NULL guest vlan.
4) "Default" zone is Basic by default.
5) Changed "vnet" parameter to "vlan" in updateZone command to be consistent with createZone
2010-11-16 16:54:44 -08:00
abhishek
e5e128545d
removing the tags support in the update commands for disk and service offerings
2010-11-16 13:25:25 -08:00
abhishek
0876136dc4
bug 7185: the tags logic in the update disk,service offerings was wrong. once a tag is created, it should not be modified. we should only append to the existing list of tags, adding more tags. fixing the same
...
status 7185: resolved fixed
2010-11-16 12:51:36 -08:00
alena
0ad492cc74
bug 7118: fixed deletePod command - 1)remove Pod's resources (private ip adresses) before removing the pod itself. 2) Verify that private ip address pool is not empty before removing it.
...
status 7118: resolved fixed
2010-11-11 16:55:59 -08:00
alena
5a01335002
bug 7143: vlan parameter is no longer required by createZone command
...
status 7143: resolved fixed
2010-11-11 10:43:18 -08:00
abhishek
11ea13fd7d
Added the domain checker code and checks for a host of commands. This replaces the previous mechanism, and provides a way for us to validate the command executor as to whether he has access to the zone.
2010-11-08 17:50:38 -08:00
Alex Huang
aca8ef79cd
a bunch of other changes for network refactoring
2010-11-08 12:29:37 -08:00
abhishek
67beda5244
adding the logic to list and search zones and domains based on the user (normal,admin,domain admin)
2010-11-08 12:17:42 -08:00
alena
1c24deda34
1) Refactored current Apis not to use reflection for method invocation. In new version following has to be done:
...
* Implement callCreate() and execute() methods in apis extending BaseAsyncCreateCmd (example - CreateVolumeCmd)
* Implement execute() method in apis extending BaseCmd and BaseAsyncCmd (example - deleteVolumeCmd and deleteUserCmd)
We no longer need createMethod(), method(), manager() fields in @Implementation annotation, cleanup has to be done.
2) Moved Account/User related methods to AccountManagerImpl. Methods are exposed via AccountService interface.
3) Enhanced exception handing for Api calls.
4) Created ConfigurationService interface, all Api config methods are exposed via it.
2010-11-08 11:27:36 -08:00
nit
8215510c19
bug 6055: createDiskOffering: remove domainId parameter.
...
status 6055: resolved fixed
2010-11-08 13:42:34 +05:30
will
a3dbc34857
bug 7059: refactored the API to now add the single embedded object tag after a response
...
- Changed networkgroups to security groups
- a whole bunch of other API bugs. Unfortunately, I may have broken more.
2010-11-05 20:10:57 -07:00
Alex Huang
5f90a8adb0
Checking in to do git pull...stupid git
2010-11-05 16:10:22 -07:00
abhishek
452c7f4d1a
bug 7002: adding a check to ensure the account specific vlan added, is within the domain tree of the zone for which the vlan is being added for (whether it is a child domain or not)
...
status 7002: resolved fixed
2010-11-05 13:24:41 -07:00
abhishek
137fe40c46
fixing the zone creation bug
2010-11-04 09:47:39 -07:00
abhishek
84ee08430a
making changes to the list zones flow, to add the domain name to the table, and return it
2010-11-03 22:08:32 -07:00
abhishek
8e54a40b46
fix for the ui to consume for the disk offering
2010-11-03 20:05:37 -07:00
abhishek
2303afe55c
making changes for disk offerings with a new column called customized being added, for the UI to cosume whilst deploying vm with an arbitrary volume size. The UI will use this value to set the right size and the offering will ensure the right tags are taken.
2010-11-03 17:45:52 -07:00
abhishek
46497e3aad
making changes for the private/public zones enhancement, for the UI to consume. The list method has been changed to return visible zones based on the user's credentials, or if the domainId for private zone listing is specified. In the update zone cmd, we do not allow updating private zone once it has been associated with a domain. This might change in the coming releases.
2010-11-03 15:39:16 -07:00
alena
15a316484e
Fixed deleteZone API - used to return empty response instead of success=true/false
2010-11-03 11:32:45 -07:00
alena
571ca42c44
1) Return embedded object for addCfg/updateCfg/listCfg.
...
2) Fixed NPE in updateCfg command (used to happen when no value was specified)
3) Fixed addCfg command to call correct getName method while setting config name (used to call the method returning the command name)
2010-11-02 15:26:33 -07:00
Alex Huang
560d7a275e
Removed InternalErrorException. Renamed the lock methods on the DAO objects to be more understandable.
2010-11-02 12:25:08 -07:00
Alex Huang
3279c26796
Removed a bunch of InternalErrorException
2010-11-02 12:25:08 -07:00
abhishek
b6aeb6746c
bug 6889: fixing the issue where we were able to create a disk offering of size 0. The check was incorrect, and now we ensure we only create the right sized volumes.
...
status 6889: resolved fixed
2010-11-02 11:30:43 -07:00
abhishek
45f4499c14
bug 6836: fixing the api responses for disk offerings. We were using the wrong objext name, and were only returning success responses. Now, we are constructing the apt object and returning the entire object back.
...
status 6836: resolved fixed
2010-11-01 13:24:28 -07:00
Alex Huang
4f9f249218
make console proxy work again with the new network configuration
2010-10-26 17:37:29 -07:00
anthony
1b014ec340
master oss management server can start now
2010-10-26 13:47:43 -07:00
Kris McQueen
f9c1f12778
bug 6725: use serviceOfferingName rather than the API command name when updating the service offering; set memory in the response for UpdateServiceOffering
...
status 6725: resolved fixed
2010-10-25 17:08:47 -07:00
abhishek
2b9ab00cc2
bug 3386: first part of the checkin, wherein we have an optional param domainId for create and modify zones. If this domain exists in the system, then the zone is tagged with this domain id, so that subsequent calls are checked for sanity against this domain.
2010-10-21 11:43:06 -07:00
kishan
fa4a16cb68
bug 5592: Added configurable domain for hosts.
...
status 5592: resolved fixed
2010-10-21 11:51:09 +05:30
Kris McQueen
47e26af419
bug 6643: when configuring vlan IP ranges, account might not be specified (zone wide IP range), so assign the configuration event to the SYSTEM account in those cases.
...
status 6643: resolved fixed
2010-10-19 16:27:08 -07:00
Chiradeep Vittal
947c2ca16d
fix problems in api post-refactor
2010-10-19 09:53:51 -07:00
Kris McQueen
80090990a6
Fix configuration in light of new API framework. Move code from ConfigurationManager into ConfigurationServer for creating disk/service offerings, pods, and zones. This prevents the ComponentLocator from pulling in a lot of extra DAOs and Managers now that ConfigurationManager has a lot more dependencies due to API changes. Without making this change, there would be a dependency on ClusteredAgentManager in both config-server and mgmt-server, which would try to start two listeners on port 8250, which is bad. Now that the configuration happens in ConfigurationServer, things should be kept simple.
2010-10-14 19:11:22 -07:00
Kris McQueen
2740ba6c40
final merge of master->2.1.refactor preparing for merge back into master
2010-10-12 14:46:24 -07:00
Kris McQueen
55201432f6
createServiceOffering had cpuSpeed passed twice when creating the offering rather than cpuNumber then cpuSpeed...fixed
2010-10-07 15:10:03 -07:00
Kris McQueen
6db9f377a3
use the name of the configuration variable rather than the name of the command
2010-10-06 18:28:12 -07:00
edison
aaaa5dc3ad
bug 6379: add ListHypervisors cmd to list all the supported hypervisors.
...
status 6379: resolved fixed
The supported hypervisors are controlled by hypervisor.list in configuration table
2010-10-04 16:55:25 -07:00
edison
9e0f57bc0e
change code for new UI
2010-09-29 18:40:52 -07:00
edison
211b4c5da2
hybrid
2010-09-29 18:40:47 -07:00
Kris McQueen
848ce60097
Merging master into 2.1.refactor, resolve the merge conflicts as best I can. New commands related to extracting template/iso/volume and related to instance groups were refactored to the new API framework.
2010-09-28 15:47:14 -07:00
kishan
ec4755a60e
bug 6123: Include last id in the vlan range
...
status 6123: resolved fixed
2010-09-27 16:57:31 +05:30
Kris McQueen
2a4ddac41a
Change getResponse() to return a ResponseObject so that the caller can choose how to serialize. This in in preparation for serializing the async commands to the database with class information and deserializing them into the ResponseObject itself when queryAsyncJobResult is called. Once the ResponseObject is deserialized, the proper string can be returned to the caller.
...
The previous behavior had the JSON response from the command embedded into the queryAsyncJobResult response as a string rather than a JSON object which prevented the client from being able to read the response. With this new behavior an actual JSON object should be returned which can then be parsed on the client side.
2010-09-23 17:34:28 -07:00
abhishek
242a55f120
bug 6271: Fixed the issue of us not iterating over all vlans, in the direct attached case. now, we consider all vlan ranges before we error out saying no ip address available
...
status 6271: resolved fixed
2010-09-22 10:58:12 -07:00
Alex Huang
327924a9ad
More changes for refactoring
2010-09-15 18:00:54 -07:00
alena
b49f63c28e
Refactoring addConfig/deleteDiskOffering/deletePod/getCloudIdentifier/enableAccount/enableUser/enableAccount/updateUser/updateDiskOffering/updateConfig commands to new API framework
2010-09-15 16:41:38 -07:00
Kris McQueen
a53cb4aab0
Refactoring deleteDomain to new API framework. Cleaning up some compilation errors that resulted from previous refactoring, namely there was a requirement to keep the old manager method around for createDiskOffering and createZone in order for the ConfigurationServer to work.
2010-09-14 15:36:12 -07:00
root
76e5cf3321
renamed dao methods to correctly reflect what they do
2010-09-09 18:01:50 -07:00
Alex Huang
6134f7dfd2
more file changes
2010-09-09 11:52:12 -07:00
abhishek
992458e9d0
bug 5843: Merging in the fix
...
status 5843: resolved fixed
2010-08-30 13:45:22 -07:00
kishan
0e326e853c
bug 5900: Added events for disk offering
2010-08-27 18:02:23 +05:30
kishan
fb99f95d7c
bug 5730: update dns of systemVms during zone update
2010-08-26 21:02:37 +05:30
Kris McQueen
479ff26051
Refactoring createZone to new API framework. The logic was entirely delegated to configuration manager, so pushed the logic there and removed the proxy method from Management server.
2010-08-25 18:26:38 -07:00
Kris McQueen
34a3c3ece2
Refactored createVlanIpRange to new API framework. Moved logic to configuration manager, including the association of the ip addresses on a vlan with the account for which the vlan is being created. On deployVirtualMachine, this association might happen as well, and now mgmt server calls config manager.
2010-08-25 18:26:38 -07:00
abhishek
46f69a604b
some more refactoring
2010-08-25 11:43:49 -07:00
abhishek
702658556b
Refactoring the delete zone cmd
2010-08-25 11:16:07 -07:00
abhishek
c2f517fa81
Refactoring the delete vlan ip range cmd
2010-08-25 10:59:14 -07:00
Alex Huang
e0165dd2ef
my changes
2010-08-23 13:59:23 -07:00
abhishek
9da6d89837
Refactoring deleteServiceOffering cmd
2010-08-19 12:15:26 -07:00
Kris McQueen
96f999a375
Refactoring createServiceOffering to the new API framework, just a simple database create that has been moved from a management server proxy method that calls configuration manager directly into the configuration manager.
2010-08-18 19:06:12 -07:00
Kris McQueen
261c96f99c
refactor createPod command to new API framework
2010-08-17 19:08:06 -07:00
abhishek
154c6985a4
Refactoring updatePod command
2010-08-17 17:55:38 -07:00
abhishek
1252a2b8a7
Refactoring update service offering cmd
2010-08-17 17:21:04 -07:00
root
183eb4e4a3
Api refactoring for following commands: updateAccount, updateTemplate/Iso, UpdateDomain, EnableUser/Account, DeletePod
2010-08-15 21:01:24 -07:00
alena
167433e562
Api refactor:
...
* Moved ManagementServer interface from "core" to "server" package
* Changed AddConfig, UpdateCfg, UpdateAccount commands
2010-08-12 16:32:23 -07:00
alena
8825147f0d
Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor
...
Conflicts:
server/src/com/cloud/configuration/ConfigurationManager.java
server/src/com/cloud/configuration/ConfigurationManagerImpl.java
2010-08-12 11:41:02 -07:00
alena
a9d48a1b8a
Refactored updateDiskOffering and deleteDiskOffering commands
2010-08-12 11:27:37 -07:00
abhishek
23444d5f07
Refactoring the updateZone command
2010-08-12 10:59:59 -07:00
Kris McQueen
96f76062f9
Moving createDiskOffering to configurationManager, make AssignToLoadBalancer async
2010-08-11 19:32:09 -07:00
Manuel Amador (Rudd-O)
14ae76781e
Committing Kris' big merge
2010-08-11 16:02:57 -07:00
Manuel Amador (Rudd-O)
ac730ec496
Branch 2.1.refactor committed
2010-08-11 09:13:42 -07:00
Manuel Amador (Rudd-O)
05c020e1f6
Source code committed
2010-08-11 09:13:29 -07:00