Commit Graph

211 Commits

Author SHA1 Message Date
Alena Prokharchyk 9050cfad3d CLOUDSTACK-4704: 41-42 db upgrade - populate vpc_service_map table with the services/providers supported by VPC
(cherry picked from commit 798f34a49c)

Signed-off-by: animesh <animesh@apache.org>
2013-09-19 18:58:59 -07:00
Vijayendra Bhamidipati 10486ea4dd CLOUDSTACK-4645: There is no upgrade path from 4.1.1 to 4.2.0
Description:

    Simpler fix to support upgrade path from 4.1.1 to 4.2.0
    by adding a 4.1.1 string in the db update version range.

    Commit # d1642a489c introduced a duplicate
    user_vm_view view in the schema-410to420.sql script. Removing the first
    occurrence of that view, since whatever QA has been testing until now
    would have used the duplicated view that gets created after the first one.
2013-09-12 20:13:35 -07:00
Kelven Yang e9cb0d6f4c CLOUDSTACK-4585: make run-time datastore folder migration, VM snapshot, bug in root disk controller type carried from previous version work under upgrade situation
(cherry picked from commit 8ccff04722)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:32:03 -07:00
Wei Zhou 6ed8a20697 CLOUDSTACK-2319: fix incorrect account_id in event table for Revoke SecurityGroupRule commands
(cherry picked from commit d9ba234d6c)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:21:18 -07:00
Vijayendra Bhamidipati d6b19bad1f CLOUDSTACK-4539: [VMWARE] vmware.create.full.clone is set to true in upgraded setup;default nature of vms are full clone
Reviwed-by: Kelven Yang <kelven.yang@citrix.com>
Description:

    Change the criterion for overriding/preserving the vmware.create.full.clone
    flag. The earlier criterion was simply the version numbers, but that is not
    a good business logic basis for the change. With this fix, if past version
    deployments have any deployments (data centers), this flag will be set to
    false. Else, it will be set to true.
(cherry picked from commit 07d79c7ad6)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:15:05 -07:00
Prachi Damle c696b449ee CLOUDSTACK-4561: DeployVm failed after upgrading from earlier version having a private zone to 4.2
Changes:
- In the upgrade path, for a private zone, entry needs to be added in the affinity_group_domain_map to provide access to the private zone for the domains it belongs too.
(cherry picked from commit 0b9b36cbca)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:14:39 -07:00
Wei Zhou 30c5388253 CLOUDSTACK-4538: set default value of cpu.overprovisioning.factor and mem.overprovisioning.factor to 1
On a fresh environment, some values in cloud.configuration table are persisted in com.cloud.server.ConfigurationServerImpl.persistDefaultValues()
A default value need to be set before com.cloud.upgrade.DatabaseUpgradeChecker
(cherry picked from commit 1a67750cb6)
(cherry picked from commit 61ebfad449)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:02:20 -07:00
Wei Zhou c0471e64fe CLOUDSTACK-4538: fix small typo
(cherry picked from commit 68b668ae8f)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:01:58 -07:00
bharat kumar fc77090f8a CLOUDSTACK-4538 Should update the vmware clusters with the global overporvisioning factors after upgrade to 4.2.
Signed off by : Nitin Mehta <nitin.mehta@citrix.com>
(cherry picked from commit 4a7d7324d0)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 15:59:58 -07:00
Min Chen da10231dd0 CLOUDSTACK-4430:[Automation][vmware] Failed to deploy vm, if one host is
down in a cluster.
(cherry picked from commit ad1633dda9)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 14:33:08 -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
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
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
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
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
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
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
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
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
Min Chen 0599a8b158 CLOUDSTACK-3860: S3 and Swift-backed Secondary Storage Migration 2013-08-13 11:41:31 -07:00
Wido den Hollander 8a49f5a1a9 CLOUDSTACK-4114: Use RAW disk images for RBD instead of QCOW2 2013-08-13 16:26:02 +02:00
Likitha Shetty 6e953ae873 CLOUDSTACK-4279. Usage manager - Parameter index out of range error 2013-08-13 15:55:59 +05:30
Murali Reddy 9895d01a53 CLOUDSTACK-4111: Prompt "Acquire New IP - Cross Zones - YES/NO" wizard
only when there is portable IP range added at region level.

region response will now have details if portable IP service is enabled
or not. Portable IP service for a region is turned off by default. when
adming adds a portable ip range portable ip service is enabled for the
region.
2013-08-12 18:11:13 +05:30
Prachi Damle fac54d2334 CLOUDSTACK-4221: Dedicated Resources: changes to associate the dedicated resource with the 'ExplicitDedication' affinity group
Changes:
- Implict creation of the 'ExplicitDedication' Affinity group during resource dedication
- Only one group per account or per domain will be present
- ListDedicatedResources by affinityGroup
- Deployment should consider dedicated resources associated to the group only
- Deleting affinity group should release the dedicated resouces
- Releasing the dedicated resources should remove the group associated if there are no more resources.
2013-08-10 11:02:57 -07:00
Prachi Damle b965032b57 CLOUDSTACK-4168 Root Admin should be able to create 'ExplicitDedication' affinity group at domain level and make it available for all accounts in the domain
Changes:
- 'ExcplicitDedication' type of group can be created/deleted by Root admin only
- Users can no longer create this type of affinity group
- RootAdmin can create this type of affinitygroup at domain level. Such a domain level group is available for all accounts in that domain for listing and for use during deployVM.
- The domain level affinitygroup should be visible to the users in that domain, domain admins and Root admin.
2013-08-10 11:02:42 -07:00
Harikrishna Patnala 48c8e64ae9 CLOUDSTACK-4123: 3.0.6 to ASF 4.2 Upgrade: On Adding VMWare Cluster to the Setup, 3.0.6 System VM Template for VMWare is downloaded instead of 4.2
Updating the new system template URLs for the existing templates during upgrade to 4.2.
If new 4.2 system template is registered before upgrade then marking the old templates as removed during upgrade.
2013-08-10 17:43:53 +05:30
Vijayendra Bhamidipati d47b4a9949 CLOUDSTACK-4167: Put in upgrade paths in master for 4.1.2 and 4.2
Description:

    Define upgrade paths from 4.1.0 to 4.1.1, and 4.1.1 to 4.1.2,
    and 4.1.2 to 4.2.0. This new path will replace the existing
    4.1.0 to 4.2.0 path. This is required to allow upgrades from
    4.1.2 installations to 4.2.0. The 4.1.2 installation will have
    that db version upon installation from the 4.1 branch. Please
    note that these new upgrade paths are empty and don't make
    any SQL schema modifications.
2013-08-09 18:23:58 -07:00
Koushik Das 21c74c6453 CLOUDSTACK-4179: [Performance Testing] Time taken for Deploy VM async job to complete is considerably higher
The time increased due to the newly added dedicated resources feature. During regular VM deployment, all dedicated resources are put in avoid list so that they are not considered for deployment.
Now the way to compute the list of dedicated resources is not optimal and performance deteriorates in an environment having lot of pods, clusters and hosts as the logic is to query db. for each suc resource.

The fix is to optimize the logic not to loop through all resources but get the list of each resource type in a single query.
2013-08-09 16:03:17 +05:30
Kishan Kavala c75ac2ab20 CLOUDSTACK-4146, CLOUDSTACK-4147: Fix KVM snapshot upgrade.
when migrating KVM snapshot path, CONCAT is not required. back_snap_id is complete path for KVM snapshots
2013-08-09 14:45:37 +05:30
Alena Prokharchyk 6999fca4d7 CLOUDSTACK-4193: don't let privateGateway to be created with NULL networkId 2013-08-08 10:49:25 -07:00
Koushik Das 470e76b3d6 CLOUDSTACK-4136: [upgraded ENV]Deleting Snapshot which was created before upgrade is throwing NPE.
Snapshot object is being accessed even when it is null. In case snapshot is not present in backup store the code should return after cleaning db entry.
Also noticed discrepancy in the upgraded db setup but couldn't fully verify it, so added logging in the upgrade logic for template/snapshots etc.
2013-08-08 15:05:29 +05:30
Sateesh Chodapuneedi a3450afff5 CLOUDSTACK-4165 3.0.6 to ASF 4.2 Upgrade: Data Migration step of the Upgrade Fails on "persistLegacyZones"
Track the Datacenter of previous cluster correctly while going through each cluster in the zone to see if 2 clusters are from different DC/vCenter.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-08 09:00:10 +05:30
Bharat Kumar 95f3679855 Cloudstack-4100 preserve data in iso_id column while upgrading from 3.0.7 to 4.2 2013-08-07 18:36:58 +05:30
Marcus Sorensen 7fced6460f Summary: CLOUDSTACK-4121 fix local storage volume deployment
Detail: Fix hypervisor type lookup for local storage volumes by
adding in a statement for the 'HOST' storage scope.

Reviewed-by: Rajesh Battala
2013-08-06 21:34:22 -06:00
Min Chen 4d43fe13ce CLOUDSTACK-4002: We should use backup_snap_id in snapshots table to
construct snapshot install_path in snapshot_store_ref for pre-4.2.0
snapshot.
2013-08-06 14:38:52 -07:00
Rajesh Battala d284fd9894 CLOUDSTACK-3781 Unable to resize disk with Zone wide storage 2013-08-06 12:57:10 -07:00
Min Chen 8d3d41a834 CLOUDSTACK-4002:Fix snapshot install path for upgraded snapshots. 2013-08-06 11:40:09 -07:00
Bharat Kumar 5dcded229f Cloudstack-4015 No error logged when deleteing all the valns when there are allocateed vnets. Alos not updating the vnet range in physicalnetworks table in the above case.
Signed-off-by: Jayapal <jayapal@apache.org>
2013-08-06 17:29:07 +05:30
Harikrishna Patnala c0e7186166 CLOUDSTACK-4070: upgrade from 2.2.14 to 4.2 is failing with 4.0 VMware SystemVm template not found. Cannot upgrade system Vms
System template upgrade is not required during 4.0 upgrade since we handle the same during 4.2 upgrade. So removing the system template update during 4.0 upgrade.
2013-08-06 17:18:10 +05:30
Prasanna Santhanam 3a41c53bd3 CLOUDSTACK-4064: Missed renaming the config for KVM snapshots
KVM.snapshot.enabled is lowercased by f025db95 to keep the configs
uniformly lower-case. But it missed the upgrade script and the
references in SnapshotManagerImpl. This commit will fix the issue in all
locations

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-06 10:39:26 +05:30
Alena Prokharchyk 8813e5f790 CLOUDSTACK-4080: don't GC the network when it has vms in Starting state even when the nics are not allocated for them yet (can happen when vm is being created) 2013-08-05 14:14:44 -07:00
Alena Prokharchyk 913a0050e4 CLOUDSTACK-4065: db upgrade - when insert placeHolder nic for Shared networks, always mark this nic as non-default explicitly 2013-08-05 09:17:29 -07:00