2264 Commits

Author SHA1 Message Date
Alex Huang
f6913b5088 Removed files that are no longer used and further separated out the files in the core project 2013-05-06 16:34:21 -07:00
Alex Huang
ad2777c547 Moved agent commands to core and out of api 2013-05-06 16:34:20 -07:00
Alex Huang
e0d8f01ecd Removed framework-api which is completely useless. Changed framework-ipc to reference gson itself. Move VOs into engine-schema. 2013-05-06 16:34:16 -07:00
Wei Zhou
af5bf94b43 CLOUDSTACK-2319: fix "unable to add egress rules" in SecurityGroup
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2013-05-06 20:58:32 +01:00
Alena Prokharchyk
b29449b4b7 CLOUDSTACK-129: added new API - listNetworkIsolationMethods - for displaying isolation methods supported by the cloudStack 2013-05-06 11:46:43 -07:00
Prasanna Santhanam
2b87261783 fixing wildcard imports
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-06 18:51:53 +05:30
Likitha Shetty
c8d843241e Dedicate guest vlan range to account 2013-05-06 10:02:41 +05:30
Harikrishna Patnala
38b4f84f17 CLOUDSTACK-2146: system vm scaleup failed ;{ "scalevirtualmachineresponse" : {"errorcode":530,"cserrorcode":9999,"errortext":"Failed to scale vm"} }
Only response generation for system vm scale up failed so fixed by changing the response object.

Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-05-03 16:49:08 +05:30
Murali Reddy
64fb826640 fixing build break due to commit a3a5862301b5b3d79abcf8dfef66283728954d55 2013-05-03 16:35:28 +05:30
Murali Reddy
a3a5862301 CLOUDSTACK-2317: NPE while cloudstack trying to get system ip and enable
static nat for the vm VM

splitting enableStaticNat() method in to a service and manager layer
method. So as to ensure action event annotation is present only on
service layer method.
2013-05-03 15:37:25 +05:30
Mice Xia
d7cab21e9a 1) rename RevertToSnapshotCmd->RevertToVMSnapshotCmd 2) add marvin test for vm snapshot 2013-05-03 12:32:53 +08:00
Jayapal
1f1467974f CLOUDSTACK-1828 Source Nat on private gateway feature 2013-05-02 15:40:15 +05:30
Kelven Yang
f101241050 Apply patch for https://reviews.apache.org/r/10892/ 2013-05-01 17:40:38 -07:00
Harikrishna Patnala
1cb9bd531f CLOUDSTACK-2180: restoreVirtualMachine returns no password if the template is password enabled
New password is generated as part of restore vm(passwd enabled template) and send new password on VR

Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-05-01 12:29:08 +05:30
Harikrishna Patnala
deaf9106ca CLOUDSTACK-741: Granular Global Parameters and adding fixes for CLOUDSTACK-2176, CLOUDSTACK-2198, CLOUDSTACK-2200
Adding the zone, cluster, account level parameters
The parameters at scope (zone/cluster/pool/account) can be updated by updateConfiguration API with additional parameter zoneid/clusterid/accountid/storagepoolid
Whenever these scoped parameters are used in CS they get value from the corresponding details table if not defined get value from global parameter.
Same with the listConfiguration API with additional parameter zoneid/clusterid/accountid/storagepoolid
2013-04-29 14:11:51 +05:30
Jessica Wang
ef00f1b04f CLOUDSTACK-2120: mixed zone management - API: extend listClusters API to to take in zonetype. 2013-04-27 21:38:03 -07:00
Jessica Wang
271f8759be CLOUDSTACK-2120: mixed zone management - API: extend listPods API to to take in zonetype. 2013-04-27 18:30:21 -07:00
Jessica Wang
774b2ebf9d CLOUDSTACK-2120: mixed zone management - API: extend listSystemVMs API to to take in zonetype. 2013-04-27 11:41:53 -07:00
Jessica Wang
45dbd9cdc6 CLOUDSTACK-2120: mixed zone management - API: extend listTemplates, listIsos API to to take in zonetype. 2013-04-27 11:02:02 -07:00
Jessica Wang
1f0863f75b CLOUDSTACK-2120: mixed zone management - API: extend listNetworks API to to take in zonetype. 2013-04-26 15:23:30 -07:00
Jessica Wang
a20ed3a43d CLOUDSTACK-2120: mixed zone management - API: change listZones API to to take in zonetype instead of networktype (to be consistent with other listXXXXXXXs API). 2013-04-26 11:37:32 -07:00
Jessica Wang
7cf312a770 CLOUDSTACK-2120: mixed zone management - API: extend listSnapshots API to to take in zonetype. 2013-04-26 11:19:35 -07:00
Jessica Wang
6f60833f93 CLOUDSTACK-2120: mixed zone management - (1) extend listRouters API to to take in zonetype. (2) UI: populate Routers list page with ones whose networktype matches selected option in zone type dropdown on top menu. (3) UI: count total number of Routers based on selected option in zone type dropdown on top menu. 2013-04-25 15:10:33 -07:00
Jessica Wang
b5979ba9b5 LOUDSTACK-2120: mixed zone management - (1) extend listZones API to to take in networktype. (2) UI: populate Zones list page with ones whose networktype matches selected option in zone type dropdown on top menu. (3) UI: count total number of zones based on selected option in zone type dropdown on top menu. 2013-04-25 10:40:08 -07:00
Jessica Wang
ee02311fae CLOUDSTACK-2120: mixed zone management - (1) extend listHosts API to to take in zonetype. (2) UI: populate Hosts/SecondaryStorages list page with ones whose zonetype matches selected option in zone type dropdown on top menu. 2013-04-25 09:51:57 -07:00
Jayapal
d5c3f87903 CLOUDSTACK-1741 Added ip uuid into the AddIptoVmNicCmd response
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-04-25 15:16:26 +05:30
Mice Xia
79cc241c64 fix CLOUDSTACK-2157 On VMWare ESXi host deployment: Expunged VMs are not getting cleaned up from the host 2013-04-25 14:25:03 +08:00
Jessica Wang
48b82a6f91 CLOUDSTACK-2120: mixed zone management - (1) extend listStoragePools API to to take in zonetype. (2) UI: populate Primary Storages list page with ones whose zonetype matches selected option in zone type dropdown on top menu. 2013-04-24 16:36:07 -07:00
Jessica Wang
d893ba881b CLOUDSTACK-2120: mixed zone management - (1) extend listVolumes API to to take in zonetype. (2) UI: populate Volumes list page with instances whose zonetype matches selected option in zone type dropdown on top menu. 2013-04-24 11:26:58 -07:00
Jessica Wang
cdd459bb0b CLOUDSTACK-2120: mixed zone management - (1) extend listVirtualMachines API to to take in zonetype. (2) UI: populate Instances list page with instances whose zonetype matches selected option in zone type dropdown on top menu. 2013-04-24 10:38:28 -07:00
Murali Reddy
f65f3b9d50 CLOUDSTACK-1958: List GSLB response should have the GSLB site (zone load
balancer rule) details as well
2013-04-24 21:03:26 +05:30
Vijayendra Bhamidipati
b0caae6b33 CLOUDSTACK-1086: DeployVirtualMachine userdata enhancements
Description:

	Currently, userdata sent over to the DeployVMCmd and
	updateVMCmd commands can be upto 2K in length, whether
	sent over GET or POST. We remove this limitation for
	POST to change this limit to 32K. Also enabling lazy
	load on userdata to improve performance during reads
	of large sized userdata from user VM records.

Signed-off-by: Min Chen <min.chen@citrix.com>
2013-04-24 13:42:38 +05:30
Jessica Wang
04a2b2d326 CLOUDSTACK-2120: mixed zone management - extend listPods, listClusters, listHosts, listStoragePools, listSystemVms, listRouters API to return zone type. 2013-04-23 16:32:19 -07:00
Jessica Wang
15e2bc463f CLOUDSTACK-2120: mixed zone management - extend listSnapshots API to return zone type. 2013-04-23 14:03:35 -07:00
Jessica Wang
f7f1279d81 CLOUDSTACK-2120: mixed zone management - extend listTemplates API to return zone type. 2013-04-23 13:01:55 -07:00
Jessica Wang
16ba999bf1 CLOUDSTACK-2120: mixed zone management - extend listNetworks API to return zone type. 2013-04-23 13:01:55 -07:00
Jessica Wang
35e2072660 CLOUDSTACK-2120: mixed zone management - extend listVolumes API to return zone type. 2013-04-23 13:01:55 -07:00
Prasanna Santhanam
2712ddda26 CLOUDSTACK-2154: create account command returns user response
Fix the annotation so cloudmonkey, marvin and apidocs can process the
response of createAccount as AccountResponse and not UserResponse as was
previously mapped.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-23 22:21:42 +05:30
Mice Xia
f6fb4d2f6a fix CLOUDSTACK-2142 migrateVirtua lMachine() API errors out when passing a valid uuid for storageid. 2013-04-23 14:44:59 +08:00
Jessica Wang
612e5fb672 LOUDSTACK-2120: mixed zone management - extend listVirtualMachines API to return zone type. 2013-04-22 10:08:19 -07:00
Prachi Damle
ff4a4876c7 Adding affinitygroupid search parameter to listVMsCmd 2013-04-19 10:49:37 -07:00
Hugo Trippaers
4a3a9dfbc2 Give some more details on what is expected of an IpDeployer. 2013-04-19 16:37:22 +02:00
Devdeep Singh
21ce3befc8 Storage motion for Xenserver changes: 1. Implemented Api findStoragePoolsForMigration. Added a new response objects to list storage pools available for migration. 2. Updated migrateVolume api for allowing migrating volumes of running vms. These changes are integrated into the latest storage refactoring changes. 3. Added the implementation for findHostsForMigration api. It lists the hosts to which an instance can be migrated, including hosts from within and across clusters to which an instance may be migrated with storage motion. The work of migrating a volume of a running vm is also done in copyAsync. 4. Updated the listHosts api for backward compatibility. 5. Added the implementation for migrateVirtualMachineWithVolume api. It migrates an instance with its volumes within a cluster and also across clusters. Also introduced a new XenServerStorageMotionStrategy for migrating volumes of a vm. When a vm is being migrated with its volumes, the vm is put in migrating state and a request is send to the volume manager to migrate the vm and its volumes. Volume manager calls into the volume service which forwards the request to data motion service after moving all the volumes to migrating state. Data motion service enumerates the strategies and the request reaches the XenServerStorageMotionStrategy. It calls in to the resource to complete the operation. 6. Resolved an issue where storage xenmotion of 2nd VM created from the same template to a host was failing with duplicate_vm exception. Made changes to remove the mac_seed key value pair from other_config when vms are created. This is was storage motion to fail. 7. Updated the db upgrade schema script. 8. Added the right permissions in commands.properties 9. Marvin tests for testing storage motion. Following scenarios are tested. 9.1. A virtual machine is migrated to another host. Its volumes are also migrated to another storage pool. 9.2. Just the volumes of a vm are migrated to another storage pool while the vm continues to run on the same host. 10. Unit tests for testing migration of a vm with its volumes.
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-04-19 11:36:42 +05:30
Harikrishna Patnala
eae22d2ffa CLOUDSTACK-741: Granular Global Parameters
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-04-19 10:36:52 +05:30
Prachi Damle
e03176c4d4 Apart from the UUID, we need not log any other details for AffinityGroup in error messages. 2013-04-17 18:04:18 -07:00
Prachi Damle
3a9c63d8c9 CLOUDSTACK-2069: Anti-Affinity - listVirtualmachines - affinitygroup entity does not include other Vms that are part of this affinity group.
Removed the virtualmachineIds:[] sent in the API response.
The listVirtualMachines Resopnse need not list details beyond the id, name,description etc.
If the user wants to get the list of VMs in the group, listAffinityGroups APi can be used.
2013-04-17 18:04:15 -07:00
Alena Prokharchyk
11162f5917 Removed set() methods from IpAddress related interfaces 2013-04-17 15:11:38 -07:00
Prachi Damle
112446602d (CLOUDSTACK-2068) Anti-Affinity - When Vm deployment associated with anity-affinity group fails , it is still included in the vmlist of the anti-affiity group
Changes:
- Added removal of the groups association when VM reaches 'Error' state.
2013-04-17 15:00:56 -07:00
Alena Prokharchyk
11480c3af8 CLOUDSTACK-1941: added isDefault parameter to account/user response 2013-04-17 13:45:25 -07:00
Alena Prokharchyk
9584815d4f CLOUDSTACK-1941: introduced "default" flag to account/user objects. Admin/System accounts that come with the CS install are default, and can never be removed. All accounts created by the CS admin, have default flag set to false, and can be removed at any time. 2013-04-17 12:04:18 -07:00