Min Chen
c60c373a38
Modify DownloadCommand to pass DataTO.
2013-05-02 23:05:19 -07:00
Harikrishna Patnala
4a40f3f6da
CLOUDSTACK-741: Granular Global Parameters fixing network.throttling.rate to work per zone in vmware
...
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-05-03 10:52:04 +05:30
Mice Xia
d7cab21e9a
1) rename RevertToSnapshotCmd->RevertToVMSnapshotCmd 2) add marvin test for vm snapshot
2013-05-03 12:32:53 +08:00
Min Chen
87fafb7287
Add S3 register template integration test.
2013-05-02 15:20:46 -07:00
Wei Zhou
f8504c0960
CLOUDSTACK-2303: fix upgrade failed from 2.2.14 to 4.1.0 for systemvm changes
...
The version of systemvm of 3.* and 4.0.* is systemvm-kvm-3.0.0.(from
http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/pdf/Release_Notes/Apache_CloudStack-4.0.2-Release_Notes-en-US.pdf )
However, on cloudstack 4.1.0, the systemvm version is 4.1.0. (from
http://dissociatedpress.net/uploads/Apache_CloudStack-4.1.0-Release_Notes-en-US.pdf )
so the upgrade processing from 2.2.14 to 4.1.0 will abort at
updateSystemVms in Upgrade2214to30.java.
Signed-off-by: Chip Childers <chipchilders@apache.org>
2013-05-02 13:12:18 -04:00
Sanjay Tripathi
85a1cc962c
CLOUDSTACK-2087: Destroying the instance is not decrementing the primary storage usage [Resource Count table - No of volumes is not got decremented]
...
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-05-02 16:17:13 +05:30
Jayapal
1f1467974f
CLOUDSTACK-1828 Source Nat on private gateway feature
2013-05-02 15:40:15 +05:30
Edison Su
2384276536
make template download testable
2013-05-02 00:38:11 -07:00
Hongtu Zang
f1c794de1b
CLOUDSTACK-2160: fix bug add a huge size guest network will cause out of memory
...
Signed-off-by: Mice Xia <mice_xia@tcloudcomputing.com>
2013-05-02 13:19:12 +08:00
Kelven Yang
f101241050
Apply patch for https://reviews.apache.org/r/10892/
2013-05-01 17:40:38 -07:00
Min Chen
50066a602b
Some code cleanup.
2013-05-01 17:37:59 -07:00
Min Chen
2812873ffa
Remove methods of searching for secondary storages from host table from
...
SecondaryStorageManagerImpl.
2013-05-01 17:35:51 -07:00
Jessica Wang
3d10f700f9
CLOUDSTACK-2120: API - mixed zone management - fix a bug that listTemplates/listIsos API didn't take in zoneType properly.
2013-05-01 16:13:20 -07:00
Min Chen
3c6b7c2a01
Populate system vm template to template_store_ref in adding an image
...
store.
2013-05-01 12:10:24 -07:00
Nitin Mehta
807ad0a39a
CLOUDSTACK-741 - Making storage disable thresholds configurable at zone level.
2013-05-01 15:44:09 +05:30
Likitha Shetty
e091f43182
CLOUDSTACK-2049. Generate usage events for usage type Public IP addresses when IP is dedicated to and released from an account
...
1. Publish usage event EVENT_NET_IP_ASSIGN when an ip is dedicated to an account or a non-dedicated ip is acquired by an account
2. Publish usage event EVENT_NET_IP_RELEASE when an ip is released from an account or deleted
2013-05-01 14:29:50 +05:30
Nitin Mehta
b16ccc9fa6
CLOUDSTACK-2036 - Adding storage storage.overprovisioning.factor configurable at zone level.
2013-05-01 14:21:09 +05:30
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
10b6c1c6c8
CLOUDSTACK-741: Granular Global Parameters Added parameters to cluster level cluster.storage.allocated.capacity.notificationthreshold cluster.storage.capacity.notificationthreshold
...
CLOUDSTACK-2036
global parameter for Router Template ID functionality added
We use 5 parameters to set the router template name for each hypervisor
Moved cpu.overprovisioning.factor and mem.overprovisioning.factor to be able to update/list using update/list configuration API at cluster level.
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-05-01 12:12:37 +05:30
Min Chen
36c1538f06
Bugfix to make deployDataCenter.py work.
2013-04-30 17:42:48 -07:00
Min Chen
bbd5d13213
Fix bugs in refactored listTemplates and listIsos API.
2013-04-30 11:31:45 -07:00
Kelven Yang
ce7dc70b1d
CLOUDSTACK-2194: Fix ApiServer component initialization sequence
2013-04-30 10:59:29 -07:00
Edison Su
2f689171e0
refactor snapshot
2013-04-29 18:51:14 -07:00
Edison Su
37cbe8890f
refactor snapshot
2013-04-29 18:51:13 -07:00
Marcus Sorensen
e7f4bfe1b8
Fix NPE in the planner, in the case that pool ID cannot be looked up in database
...
when deploying a VM
BUG-ID: CLOUdSTACK-2281
Bugfix-for: 4.2
Reviewed-by: Prachi Damle
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1367280909 -0600
2013-04-29 18:15:09 -06:00
Marcus Sorensen
a0dbf89090
Look for null pointer on account id before trying to update usage when releasing
...
an IP. This seems to be possible if expunge fails at some point after freeing
an IP, on subsequent expunge tries the IP is freed already and gets null pointer
when looking for account id.
BUG-ID: CLOUDSTACK-2279
Bugfix-for: 4.1,4.2
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1367251304 -0600
2013-04-29 10:01:44 -06:00
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
Min Chen
5b7ea8b0fe
Remove DeleteObjectFromSwiftCommand, which can be achieved through
...
DeleteTemplateCommand.
2013-04-26 17:52:50 -07:00
Min Chen
c2e9be8d31
Handle DeleteVolumeCommand for S3.
2013-04-26 16:45:11 -07:00
Min Chen
471ad51080
Handle Volume type in DownloadCommand.
2013-04-26 16:34:23 -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
Min Chen
91bfbdf1c4
Handle ListTemplateCommand in NfsSecondaryStorageResource for various
...
data store provider.
2013-04-26 12:25:06 -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
Jayapal
318c7f2af0
CLOUDSTACK-1794 Throwing error when configuring egress rules for shared networks
2013-04-26 15:09:41 +05:30
Marcus Sorensen
f429c6687b
Don't allow success to be reported when we fail to stop vm due to no agent
...
connection
BUG-ID: CLOUDSTACK-2195
Bugfix-for: 4.2
Reviewed-by: Edison Su
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1366950954 -0600
2013-04-25 22:35:54 -06:00
Min Chen
efb4471dc9
CLOUDSTACK-2196 and CLOUDSTACK-2126: fix missing async job status in
...
listXXX api and incorrect async job status in other async api.
Conflicts:
server/src/com/cloud/api/query/vo/AccountJoinVO.java
2013-04-25 17:40:18 -07:00
Min Chen
de27f0ff53
Clean up DownloadMonitor and TemplateManagerImpl.
2013-04-25 16:49:46 -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
Nicolas Lamirault
099677a124
CLOUDSTACK-2172: adding database upgrade to 4.1.0 in PremiumDatabaseUpgradeChecker
...
Add migration to 4.1.0 in the PremiumDatabaseUpgradeChecker, like in the
DatabaseUpgradeChecker.
I opened the ticket CS 2172, and this fix corrects the issue.
Regards.
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2013-04-25 15:20:26 +01: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
Jayapal
1f97b528c5
CLOUDSTACK-1573 listNics response update for not showing vlan to normal user
2013-04-25 14:48:41 +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
Min Chen
79151f5f5d
Remove sendToSSVM reference from SnapshotManagerImpl and
...
TemplateManagerImpl.
2013-04-24 17:45:32 -07:00
Min Chen
4c174a6867
Fix DeleteSnapshotBackupCommand to pass dataStore information.
2013-04-24 17:30:38 -07: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
Min Chen
5b76e4914c
Remove sendToSecStorage methods from agentManager to use EndPoint
...
instead.
2013-04-24 16:21:41 -07:00
Min Chen
0a976d5fd5
Change Upload table to store dataStoreId instead of hostId.
2013-04-24 15:20:09 -07:00
Min Chen
f16f92dd1d
Remove TemplateManager.getSecondaryStorageHost api.
2013-04-24 15:06:36 -07:00
Min Chen
8d29cdf804
Remove SnapshotVO.getSecHostId and SnapshotVO.setSecHostId references
...
from codebase to use SnapshotDataStoreVO.
2013-04-24 11:54:42 -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
Min Chen
792fc471a2
Remove VolumeHostDao references from codebase.
2013-04-24 11:11: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
Pranav Saxena
ff7112a074
Correcting the spelling errors in the Non contigous Vlan range code
2013-04-24 19:58:10 +05:30
Mice Xia
8ff442bbeb
fix CLOUDSTACK-1944 Destruction of a VM with StaticNAT/FW throws a NullPointerException during VM Expunge
2013-04-24 20:11:18 +08:00
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
Mice Xia
434525b836
fix CLOUDSTACK-2149 and related unit test
2013-04-24 11:12:34 +08:00
Min Chen
0cfef3aa4e
Remove almost all VMTemplateHostDao references except S3Manager and
...
SwiftManager.
2013-04-23 17:51:54 -07:00
Min Chen
7543f314a7
Remove more VMTemplateHostDao references.
2013-04-23 17:12:21 -07:00
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
Min Chen
7ec0882dca
Remove VMTemplateHostDao reference from BareMetalTemplateAdapter, also
...
make store_id in template_store_ref table nullable to accommodate
baremetal case.
2013-04-23 16:07:44 -07:00
Min Chen
246e58013d
Remove VMTemplateHostDao reference from TemplateManagerImpl.
2013-04-23 15:09:37 -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
6230e5b77b
CLOUDSTACK-2120 - mixed zone management - extend listIsos API to return zone type.
2013-04-23 13:46:36 -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
Alena Prokharchyk
ba4b8f1705
LOUDSTACK-751: changed the way the code retrieves the blacklisted.routes config. Now it always reads it from the DB while before we used to load it only on the management server start, and the update happened only after MS restart
2013-04-23 12:22:04 -07:00
Min Chen
06b3092083
Remove VMTemplateHostDao reference from VolumeManagerImpl,
...
StorageManagerImpl and SecondaryStorageManagerImpl.
2013-04-23 12:10:40 -07:00
Edison Su
4cd3903c9d
change iszoneready, to use imagestore table
2013-04-23 10:41:30 -07:00
Mice Xia
7dd88fbbc6
fix CLOUDSTACK-2139 When VM is live migrated to a different host , stopped and started , It starts on the original host where it was before live migration.
2013-04-23 14:27:03 +08:00
Min Chen
e40a06deae
Fix extractTemplateCmd.
2013-04-22 21:48:57 -07:00
Min Chen
29687663e8
Rename SnapshotStrategy to SnapshotService to have consistent naming
...
convention for Template, Snapshot, Volume. Also rename CopyCmd to
CopyCommand to follow internal command naming convention.
2013-04-22 16:15:57 -07:00
Alena Prokharchyk
c9c2c5902d
CLOUDSTACK-751: added a support for blacklisting certain routes on a zone level so they can't be used when create Static Route for VPC Private Gateway
2013-04-22 13:35:15 -07:00
Edison Su
b30e39b0e3
CLOUDSTACK-1392: add create template from snapshot and volume
2013-04-22 13:24:10 -07:00
Min Chen
9c584b5500
Use EndPoint to send local/remote command, and hide agentMgr message
...
passing.
2013-04-22 13:21:28 -07:00
Jessica Wang
612e5fb672
LOUDSTACK-2120: mixed zone management - extend listVirtualMachines API to return zone type.
2013-04-22 10:08:19 -07:00
Murali Reddy
f1b9ef8581
CLOUDSTACK-2065: addNetscalerLoadBalancer is faling to persist
...
gslb_site_publicip and privateip in db table `external_load_balancer_devices`
2013-04-22 19:01:32 +05:30
Mice Xia
5118e9e29f
1) fix CLOUDSTACK-2129 and CLOUDSTACK-2128
...
2) include nicId in network.offerings.assign/remove event
3) use publishUsageEvent instead of saveUsageEvent to track usageEvent
2013-04-22 19:38:32 +08:00
Edison Su
abf40435f3
refactor downloadlistener, sync system vm templates when adding a new image store
2013-04-21 22:46:02 -07:00
Min Chen
0229c75b50
Use data motion service for PrepareTemplateCmd to move template from
...
secondary storage to primary.
2013-04-20 20:44:31 -07:00
Min Chen
86913ab4d3
Use data motion service to implement copy template.
2013-04-19 23:01:59 -07:00
Min Chen
6f70fe28e8
Trigger system vm template download while adding image store. Just a
...
code skeleton, waiting for some code in EndPoint.
2013-04-19 19:37:06 -07:00
Min Chen
539824797c
Refactor listTemplatesCmd and listIsoCmd to use db view.
2013-04-19 16:10:09 -07:00
Alena Prokharchyk
39abaf6452
Temporarely disabing vpc test as some part of it requires connection to the real DB. Will re-enable after fixing the problem
2013-04-19 12:42:42 -07:00
Alena Prokharchyk
2ca7584994
Fixed VPC api unittests
2013-04-19 11:26:32 -07:00
Likitha Shetty
8d8a0ebe10
CLOUDSTACK-2105.
...
While releasing an IP range from an acount if any of the Public IPs in the range is a source nat ip then the IP is not disassociated.
During the check CS also checks if the network the IP is associted with is not null. This results in an NPE for an account that has VPC s
because the public IP of a VPC domain router is common to all VPC tiers and not associated with a network
Remove the check to find the network associted with a source nat IP for both ReleasePublicIpRange and DeleteVlanPublicIpRange
2013-04-19 23:31:52 +05:30
Prachi Damle
ff4a4876c7
Adding affinitygroupid search parameter to listVMsCmd
2013-04-19 10:49:37 -07:00
Saksham Srivastava
ea893eaf33
CLOUDSTACK-1786: While reserving IPs in guest network, if guestvmcidr is a subset of network cidr but not a subset of cidr, exception is thrown.
...
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-04-19 14:08:37 +05:30
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
Mice Xia
ca6873a9d0
CLOUDSTACK-2086 UI shows added NIC even if Actual NIC addition has failed
2013-04-19 10:52:00 +08:00
Mice Xia
4fd921269b
CLOUDSTACK-2083 router never comes to running state when addNicToVirtualMachine api is called with network id which is only allocated
2013-04-19 10:52:00 +08:00