Commit Graph

229 Commits

Author SHA1 Message Date
bharat kumar 738e7257c2 Cloudstack-5077: reserve cpu and memory only when
vmware.reserve.cpu/mem are set to true. Insted of setting
 the ovecommit values to one on upgrade, we popultate them
 from the global values.
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-11-12 22:55:06 -08:00
Alena Prokharchyk 17c0cb48e1 CLOUDSTACK-5089: fixed VPCDao to set the accountId field correctly 2013-11-07 15:40:25 -08:00
Nitin Mehta 544d1594f0 CLOUDSTACK-5038:
used cpu is getting bumped up when the over provisioning factor > 1. This was because we didnt record the overprovisioning factors of the vms which got deployed pre 4.2
Upgrade path will fix that by populating the cpu/mem overprovisioning factors for each of the vms in user_vm_details table using the global overprovisioning factor.
Reviewed by : bharat kumar <bharat.kumar@citrix.com>
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-11-05 16:35:07 -08:00
Likitha Shetty bc36aa026f CLOUDSTACK-5028. Vmware instance fails to start when the chain_info of any volume that belongs to the VM is longer than 255 characters.
If the VM has snapshots then the chain_info of a volume can be longer than 255 characters.
Increasing the column length of chain_info in VolumeVO to match the maximum length of type text(db schema type)
2013-11-05 13:20:24 +05:30
Kishan Kavala 72e4796550 CLOUDSTACK-4999 : Add upgrade path from 4.2.0 to 4.2.1 2013-10-30 15:29:53 +05:30
Bharat Kumar d6b3164ca0 CLOUDSTACK-4947 VM creation fails if the global config apply.allocation.algorithm.to.pods is set to true." 2013-10-25 15:00:04 +05:30
Alena Prokharchyk 3ae6e9e58e CLOUDSTACK-4649: added support to removeResourceDetail to remove details for UserVm/Templates 2013-10-24 10:03:51 -07:00
Wei Zhou f0a9237612 fix a bug in findAllChildren of domains
(cherry picked from commit db890bc71e)
2013-10-23 14:28:11 +02:00
Alena Prokharchyk c1131d1b7f CLOUDSTACK-4649: addResourceDetail - added support for userVm resource. Now "hypervisortoolsversion" get stored in user_vm_details table, and being returned as a part of listVirtualMachines call ("details" parameter) 2013-10-22 13:34:50 -07:00
Alena Prokharchyk 9d41fdfecf CLOUDSTACK-4649: allow to update template details with addResourceDetails API 2013-10-22 13:34:50 -07:00
Anthony Xu 9a27690093 CLOUDSTACK-4649:
xs 6.1/6.2 introduce the new virtual platform, so there are two virtual platforms, windows PV driver version must match virtual platforms,
this patch tracks PV driver versions in vm details and template details.

Anthony
2013-10-21 16:10:07 -07:00
Nitin Mehta f91b649b3b CLOUDSTACK-4882:
list Clusters/pods/zones API not accounting for reserved in the used capacity percentage.
Fix listCapacity cmd for reserved as well
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-10-16 15:01:33 -07:00
Kishan Kavala e88377a5e5 CLOUDSTACK-4095 : Remove region_id from Transaction. Read from db.properties whenever required 2013-10-16 19:37:13 +05:30
Harikrishna Patnala 4392a47d1d CLOUDSTACK-4707: "sourcetemplateid" field is not getting set for derived templates Template created from a volume or snapshot did not have the sourcetemplateid field set in vm_template table. 2013-10-10 12:19:54 +05:30
Alena Prokharchyk 34fecbf5e2 CLOUDSTACK-4784: 22x to 4.x upgrade - don't ignore redundant router network offering, when update ntwk_offering_serivce_map with PF/StaticNat/SourceNat services 2013-10-09 15:17:21 -07:00
Min Chen b63270f1d3 CLOUDSTACK-4816: Add global configure s3.multipart.enabled 2013-10-04 17:38:40 -07:00
Wei Zhou 7dc0dca9e6 add upgrade path from 4.2.0 to 4.2.1 2013-10-04 11:23:25 +02:00
Min Chen 143fb72e8b System vm not coming up in multizone upgraded enviornment if a system vm
template is register twice per zone.
2013-09-24 11:58:34 -07:00
Wei Zhou 38bbfdc89a CLOUDSTACK-4716: upgrade resource count (cpu,memory,primary_storage,secondary_storage) in the upgrade to 4.2 2013-09-23 14:14:01 +02:00
Alena Prokharchyk 798f34a49c CLOUDSTACK-4704: 41-42 db upgrade - populate vpc_service_map table with the services/providers supported by VPC 2013-09-19 13:15:05 -07:00
Prachi Damle f4e4be01ff CLOUDSTACK-4668: Upgrade to 4.2 fails with NullPointerException when hypervisor_type is null for a cluster entry
Changes:
- Care for null value during comparing the hypervisor_type
- Do not consider removed clusters
- Method rename according to coding conventions
2013-09-13 16:55:37 -07:00
Min Chen a096c96672 CLOUDSTACK-4661:[DB Upgrade] SecondaryStorage entry in host table before
upgrade is not marked as removed after migrating them to image_store
table.
2013-09-12 18:52:40 -07:00
Vijayendra Bhamidipati 4aa7b1990e 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 09:42:00 -07:00
Vijayendra Bhamidipati 85c5f51fd0 Revert "CLOUDSTACK-4645: There is no upgrade path from 4.1.1 to 4.2.0"
This reverts commit 1167057441.

Description:
    The fix can be much simpler - will check it in in subsequent commit.
2013-09-12 09:41:21 -07:00
Vijayendra Bhamidipati 1167057441 CLOUDSTACK-4645: There is no upgrade path from 4.1.1 to 4.2.0
Adding upgrade patch for 4.1.1 to 4.2.0
2013-09-11 11:46:59 -07:00
Kelven Yang 8ccff04722 CLOUDSTACK-4585: make run-time datastore folder migration, VM snapshot, bug in root disk controller type carried from previous version work under upgrade situation 2013-09-01 07:14:47 -07:00
Wei Zhou d9ba234d6c CLOUDSTACK-2319: fix incorrect account_id in event table for Revoke SecurityGroupRule commands 2013-08-30 11:13:59 +02:00
Vijayendra Bhamidipati 07d79c7ad6 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.
2013-08-29 09:21:23 -07:00
Prachi Damle 0b9b36cbca 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.
2013-08-29 14:37:02 -07:00
Wei Zhou 61ebfad449 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)
2013-08-29 12:46:47 +02:00
Wei Zhou 68b668ae8f CLOUDSTACK-4538: fix small typo 2013-08-29 11:32:34 +02:00
bharat kumar 4a7d7324d0 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>
2013-08-29 12:25:18 +05:30
Min Chen ad1633dda9 CLOUDSTACK-4430:[Automation][vmware] Failed to deploy vm, if one host is
down in a cluster.
2013-08-28 11:18:01 -07:00
Min Chen 13d9070d5e CLOUDSTACK-4520: [upgrade][vmware]ExtractVolumeCmd fails with NPE while
attempting to download a volume.
2013-08-27 13:57:04 -07:00
Sateesh Chodapuneedi 808183fdcc 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>
2013-08-27 16:54:29 +05:30
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
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 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