Commit Graph

636 Commits

Author SHA1 Message Date
Edison Su 1b90a4554f CLOUDSTACK-3535: fix regression introduced in 5d9fa5d42e
(cherry picked from commit 6b4aed2aca)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 19:55:23 -07:00
Min Chen 9333e02837 CLOUDSTACK-4516:[Upgrade][VMWare]
MySQLIntegrityConstraintViolationException while performing any task
using local storage after upgrade from 3.0.7 to 4.2.(cherry picked from commit 21cb33a02c)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 14:35:38 -07:00
Min Chen 15f50c112b CLOUDSTACK-4520: [upgrade][vmware]ExtractVolumeCmd fails with NPE while
attempting to download a volume.(cherry picked from commit 13d9070d5e)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 14:35:21 -07:00
Sateesh Chodapuneedi a48e6685a1 CLOUDSTACK-4443 [VMWARE]Failed to deploy VM's on VMWARE Standard vSwitch Legacy Zone after upgrade
While upgrading to 4.2 to support existing clusters working over standard vswitch or nexus dvswitch should be supported as is. To ensure this while upgrading to 4.2, existing cluster's vswitch configuration needs to be persisted to database. If zone level traffic label is empty then default vswitch name would be used.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
(cherry picked from commit 808183fdcc)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 12:56:08 -07:00
Wido den Hollander 7678ab4d0d CLOUDSTACK-1191: Re-enable deployment of SystemVMs on RBD
This was reverted by 0a5228922b unintentionnaly
but broke this feature for RBD.

Enable SystemVM deployment on RBD again
(cherry picked from commit 3315159de6)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 12:55:29 -07:00
Edison Su a23322bf20 Merge branch '4.2-forward' into 4.2 2013-08-26 16:18:12 -07:00
Edison Su ad6fc9f680 CLOUDSTACK-4492: DB upgrade for volume state, from UploadOp to Uploaded 2013-08-26 15:49:09 -07:00
Sanjay Tripathi 208507a42a CLOUDSTACK-4495: systemVM template URL is pointing to old template location in upgrade file.
SystemVM template URL for XenServer hypervisor is pointing to old template location in the Upgrade410to420.java  file.
2013-08-26 15:46:48 -07:00
Min Chen f0000814bd CLOUDSTACK-4468:template created from snapshot is destroyed once we
restart management server.
2013-08-26 11:54:05 -07:00
Edison Su a0344132b5 CLOUDSTACK-4507: fix NPE when taking snapshot 2013-08-26 11:04:28 -07:00
Kelven Yang 834fdc8859 CLOUDSTACK-3237: acknowledge the behind-back VMDK disk consolidation happend in vCenter after storage live migration 2013-08-23 17:38:34 -07:00
Edison Su d901663578 CLOUDSTACK-4477: in order to select hypervisor host which can access storage pool, need to check storage_pool_host_ref 2013-08-23 16:56:01 -07:00
Edison Su 17ffe48ad2 add table lock on snapshot, during taking snapshot 2013-08-22 20:39:09 -07:00
Animesh Chaturvedi 06f28722b6 Updating pom.xml version numbers for release 4.2.0
Signed-off-by: Animesh Chaturvedi <animesh@Animesh-LinuxDev.citrite.net>
2013-08-22 17:15:42 -07:00
frank 667776a9e4 CloudStack CLOUDSTACK-1365
UI support for baremetal PXE server

CloudStack CLOUDSTACK-1364
UI support for baremetal DHCP server
2013-08-22 16:31:31 -07:00
Min Chen 6ba0c7e67b CLOUDSTACK-4455:object_store - Template sync results in private
templates being synced to all the secondary stores.
(cherry picked from commit 18aacd48a2)

Signed-off-by: animesh <animesh@apache.org>
2013-08-22 15:53:35 -07:00
Edison Su a49d39fe4d CLOUDSTACK-4456:
CLOUDSTACK-4457:
CLOUDSTACK-4459:
harden kvm getvolume. It's possible that one volume created on other kvm host, won't show up on another host, try more times to refresh storage pool if volume won't shown up
(cherry picked from commit a0de0d0177)

Signed-off-by: animesh <animesh@apache.org>
2013-08-22 15:51:38 -07:00
Edison Su 5e013e9931 add test
(cherry picked from commit d157e2970e)

Signed-off-by: animesh <animesh@apache.org>
2013-08-22 15:51:23 -07:00
Min Chen 18aacd48a2 CLOUDSTACK-4455:object_store - Template sync results in private
templates being synced to all the secondary stores.
2013-08-22 15:38:50 -07:00
Min Chen 63d492d05f CLOUDSTACK-4454:object_store - Not able to delete secondary storage when
existing snapshots are deleted.
(cherry picked from commit 52f08a4f36)

Signed-off-by: animesh <animesh@apache.org>
2013-08-22 15:14:02 -07:00
Edison Su a0de0d0177 CLOUDSTACK-4456:
CLOUDSTACK-4457:
CLOUDSTACK-4459:
harden kvm getvolume. It's possible that one volume created on other kvm host, won't show up on another host, try more times to refresh storage pool if volume won't shown up
2013-08-22 15:10:50 -07:00
Edison Su d157e2970e add test 2013-08-22 15:10:50 -07:00
Min Chen 52f08a4f36 CLOUDSTACK-4454:object_store - Not able to delete secondary storage when
existing snapshots are deleted.
2013-08-22 14:57:17 -07:00
Kishan Kavala 5b4e5935a5 CLOUDSTACK-4115 : Encrypt password in cluster_details table. This fix is to handle upgrades from versions earlier than 3.0.5 and 4.0. Upgrade was not handled when the cluster_details password encryption was introduced.
(cherry picked from commit bbe8a6d266)

Signed-off-by: animesh <animesh@apache.org>
2013-08-22 13:48:51 -07:00
Kishan Kavala bbe8a6d266 CLOUDSTACK-4115 : Encrypt password in cluster_details table. This fix is to handle upgrades from versions earlier than 3.0.5 and 4.0. Upgrade was not handled when the cluster_details password encryption was introduced. 2013-08-22 19:00:24 +05:30
Edison Su dfa81da53a delete snapshot_store_ref if the snapshot is in error state 2013-08-20 15:33:24 -07:00
Min Chen 03011b8d7b CLOUDSTACK-3950:Set cross-zone flag in registerTemplate/registerIso in
case of region-wide secondary is enabled.
2013-08-20 13:33:01 -07:00
Vijayendra Bhamidipati f91c8578a5 Revert "CLOUDSTACK-4167: Put in upgrade paths in master for 4.1.2 and 4.2"
This reverts commit d47b4a9949.

Description:
    4.1.2 hasn't been released yet, so removing these paths from the 4.2
    branch.
2013-08-20 05:09:39 -07:00
Sateesh Chodapuneedi 319a7bf05c CLOUDSTACK-4408 [Upgrade 3.0.7 to 4.2] Zone with clusters of multiple hypervisors including VMware should be processed for legacy zone.
Currently zones with multiple clusters from more than 1 hypervisor including VMware, are being ignored while processing them during upgrade.
If a zone has all non-VMware clusters then ignoring the zone is correct.
But if a zone has atleast 1 VMware cluster then make sure the zone processed further to mark it as legacy or associate the zone with appropriate VMware DC.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-20 10:31:35 +05:30
Min Chen ae7ec647d5 CLOUDSTACK-4395:[Object_store_refactor] Default template is not
available for use to deploy vm in case of multi zone environment.
2013-08-19 17:32:44 -07:00
Edison Su e7ac5d376f CLOUDSTACK-4324: delete snapshot_store_ref, if create snapshot failed on primary storage 2013-08-19 15:23:19 -07:00
Min Chen 6f7fdac3ee CLOUDSTACK-4400:[object_store_refactor] Three entries for one template
in template_store_ref when MS was restarting during template download.
2013-08-19 15:00:50 -07:00
Min Chen 956b170126 CLOUDSTACK-4399:[Templates] template entries are deleted from
template_store_ref when downloadTemplate times out.
2013-08-19 11:21:43 -07:00
Alena Prokharchyk 7202683476 CLOUDSTACK-4403: vmInstanceDao - initialize the SearchBuilder in init() method instead of the search dao method which wasn't thread safe, and could cause NPEs during search builder initializing. 2013-08-19 10:18:16 -07:00
Sateesh Chodapuneedi f8899f2d12 CLOUDSTACK-4294 After upgrade of CloudStack to 4.2, support old vswitch type in existing clusters if user changes the vswitch backend to another type of vSwitch
While upgrading to 4.2, the type of vswitch being used by each cluster is persisted to cluster_details table. This helps if user want to change the type of vswitch used in a zone or entire cloud later on but leave existing cluster continue to use old vswitches. Hence even after modifying the type of vswitch at cloud level (by modifying global configuration parameters) or modifying the type vswitch at zone level (by modifying the traffic label) would not disturb operation of existing clusters.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-19 15:53:57 +05:30
Edison Su e3a6657c93 CLOUDSTACK-4363: fix possible NPE, if copy volume failed. 2013-08-17 17:33:17 -07:00
Edison Su b359152679 CLOUDSTACK-4325: add more test cases for zone wide storage pool allocator 2013-08-17 12:37:49 -07:00
Prachi Damle c0d2e3253b CLOUDSTACK-4369 [UPGRADE]Upgrade failed from 307 to 4.2
Changes:
- Do not consider removed zones
- Create affinity group per domain
2013-08-16 13:30:49 -07:00
Min Chen a3e0863344 CLOUDSTACK-4287: Template sync should remove template_store_ref entry
for corrupted template.
2013-08-15 14:23:52 -07:00
Edison Su a467c45bf6 CLOUDSTACK-4338: catch up exception in case of deleting volume in parallel: it's possible that two threads can delete one volume at the same time, if the volume state is in Expunging 2013-08-14 18:14:20 -07:00
Min Chen 9a9ef3112c CLOUDSTACK-4318:[Object_Store_Refactor] Failed to delete snapshot copied
to Staging storage during snapshot creation.
2013-08-14 18:01:09 -07:00
Edison Su f71da1c4f5 CLOUDSTACK-4325: if userdispersing algorithm is used, then zone wide storages never been picked up 2013-08-14 15:51:48 -07:00
Kelven Yang 950672ef8c CLOUDSTACK-4288: Fix the way that VmwareClient is using vSphere 5.1 SDK which caused huge memory footprint 2013-08-14 15:00:07 -07:00
Edison Su 1451b8b642 CLOUDSTACK-4324: need to clean up snapshot_store_ref, if creating snapshot failed. 2013-08-14 14:18:22 -07:00
Min Chen 30484fb7f8 CLOUDSTACK-3706:[Object_Store_Refactor] Failed to create template from
stopped guest vm's root disk.
2013-08-14 11:54:36 -07:00
Mike Tutkowski 4ee6a6d3ab CLOUDSTACK-4331 - Enable more capacity from a managed storage device to be given to CloudStack 2013-08-14 12:38:38 -06:00
Nitin Mehta e40043fc3d CLOUDSTACK-4287
Builtin template Ready Status is No even after the Status is downlaod complete. The reason was that template sync updates only the template download state but not the state. Fixing that. Ideally we should change the state through state machine only.
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-08-14 18:41:45 +05:30
Kishan Kavala 903b92f6cc CLOUDSTACK-4295 : TemplateTO should contain physical size along with virtual size. Usage ignores templates with size 0 2013-08-14 17:28:22 +05:30
Wei Zhou 037b5d1c97 CLOUDSTACK-4316: updateSystemVms is not need in Upgrade304to305 as new templates are used in upgrade from 4.1 to 4.2
(cherry picked from commit 02d1757724)
2013-08-14 11:05:57 +02:00
Alena Prokharchyk e9239b83a0 Fixed deployDb - in setRAWformatForRBDVolumes use executeUpdate instead of executeQuery when perform an update with the prepared statement 2013-08-13 14:03:11 -07:00