Commit Graph

151 Commits

Author SHA1 Message Date
Kelven Yang 2976d9c793 CLOUDSTACK-4802: Change VM start flow to better support VM snapshot on certian version of vSphere, (vSphere 5.0 Update 2). If we detect that VM has pending VM snapshot, we will fully honor VM disk info from vCenter, since in some version of vSphere (vSphere 5.0 U2) does not allow disk-editting when VM has pending snapshot. 2013-10-04 16:03:01 -07:00
animesh 21043bfe84 Updating pom.xml version numbers for release 4.2.1-SNAPSHOT
Signed-off-by: animesh <animesh@apache.org>
2013-10-03 17:13:17 -07:00
animesh 86c93637f5 Merging 4.2-forward into 4.2 2013-10-02 23:05:34 -07:00
Kelven Yang 4533d2d88f CLOUDSTACK-4790: Skip reserved VMware scsi device number for SCSI disks 2013-10-02 17:52:39 -07:00
Kelven Yang 94c8e28f8d CLOUDSTACK-4734: Validate and Fail-over to another VmwareContext object when it is from the pool 2013-09-27 15:24:16 -07:00
Kelven Yang 5e52a86a2a CLOUDSTACK-4659: Fix the regression caused by worker VM consolidation for GC purpose 2013-09-15 11:39:32 -07:00
Kelven Yang 670fc7e6ec CLOUDSTACK-4659: Add the missing feature back for GC VMware worker VMs 2013-09-13 16:26:55 -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
Sateesh Chodapuneedi f09afea067 CLOUDSTACK-4435 [VMWARE]System VM's are failed to start with Nexus enabled Zone
Since introducing pool of session contexts we no more have a dedicated context for each VMware hypervisor host.
Hence vsm credentials stored in session context cannot be retrieved always correctly. Fix is to register the vsm credentials after fetching context and the context gets recycled after use.

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

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:02:42 -07:00
Kelven Yang 34ee6f90bb CLOUDSTACK-4458: Volume attach/detach command needs to sent to hypervisor resource even when target VM is in Stopped state
(cherry picked from commit 995e193be2)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 15:59:25 -07:00
Kelven Yang 2b12088eab CLOUDSTACK-4519: reimplementdestroy-volume to take consideration of on-disk snapshot
(cherry picked from commit a316ffa27f)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 15:59:04 -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
Sateesh Chodapuneedi eaea8f8c5f CLOUDSTACK-4435 [VMWARE]System VM's are failed to start with Nexus enabled Zone
Since introducing pool of session contexts we no more have a dedicated context for each VMware hypervisor host.
Hence vsm credentials stored in session context cannot be retrieved always correctly. Fix is to register the vsm credentials after fetching context and the context gets recycled after use.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-29 14:52:20 +05:30
Kelven Yang 995e193be2 CLOUDSTACK-4458: Volume attach/detach command needs to sent to hypervisor resource even when target VM is in Stopped state 2013-08-28 18:38:12 -07:00
Kelven Yang a316ffa27f CLOUDSTACK-4519: reimplementdestroy-volume to take consideration of on-disk snapshot 2013-08-28 18:38:12 -07:00
Kelven Yang 85507c2366 CLOUDSTACK-4464,CLOUDSTACK-4529: use property collector to collect all information in one round, we have a few other places that need to do it the same way
(cherry picked from commit 4c6ec5f3c6)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 21:56:46 -07:00
Kelven Yang 4c6ec5f3c6 CLOUDSTACK-4464,CLOUDSTACK-4529: use property collector to collect all information in one round, we have a few other places that need to do it the same way 2013-08-27 17:37:53 -07:00
Kelven Yang a1fd39faee CLOUDSTACK-4529: use property collector to collect all information in one round
(cherry picked from commit 687e87faa7)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 16:57:05 -07:00
Kelven Yang 687e87faa7 CLOUDSTACK-4529: use property collector to collect all information in one round 2013-08-27 15:04:31 -07:00
Kelven Yang 21f631f13d CLOUDSTACK-3237: add disk chain sync logic to handle out-of-band chain changes that could happen in storage live migration and VM snapshot operations 2013-08-27 12:53:20 -07:00
Kelven Yang 046a8a889a CLOUDSTACK-3237: add disk chain sync logic to handle out-of-band chain changes that could happen in storage live migration and VM snapshot operations 2013-08-26 18:11:22 -07:00
Edison Su a23322bf20 Merge branch '4.2-forward' into 4.2 2013-08-26 16:18:12 -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
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
Sateesh Chodapuneedi a168a5fa2a CLOUDSTACK-3851 [VMWare] VM start fails with NPE while trying to retrieve cores per socket
If VMware host version is ESXi 4.1 and vCenter version is 5.0 or later, number of cores per socket of a VM running on ESXi 4.1 host would be undefined as it's not supported for versions prior to 5.0.
Hence expecting undefined/null value for that and handling it.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-20 13:28:14 +05:30
Kelven Yang b73c449914 CLOUDSTACK-4390, CLOUDSTACK-4358: Enable full-clone deployment by default for VMware. Apply keep-alive kick for all outstanding vCenter sessions 2013-08-18 23:13:00 -07:00
Kelven Yang e6d7cdf70f CLOUDSTACK-4357: don't cache ServiceContent and rootFolder in memory, the cache semantics break session keep-alive mechanism 2013-08-17 23:06:42 -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
Kelven Yang 9f84eb2f1f CLOUDSTACK-3568: finalize logging in the refactored code on new vCenter API management facility 2013-08-12 18:27:45 -07:00
Kelven Yang edaa1c8927 CLOUDSTACK-3568: Refactore CloudStack/vCenter API session management facility to avoid the situation that multiple API requests are sharing with the same vCenter API session 2013-08-12 16:24:57 -07:00
Min Chen 4a318a727c CLOUDSTACK-3568: Change WaitForTask implementation to use polling
instead of invoking non-thread safe VMWare API
PropertyCollector.waitForValues.
2013-08-09 17:16:04 -07:00
Sateesh Chodapuneedi 1076c267fa CLOUDSTACK-4181 [upgrade][2.2.14 to 4.2][vmware]After upgrade the system vms fail to start
number of cores per socket for ESXi4.1 is 1.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-08 08:56:29 +05:30
Kelven Yang faf9640983 CLOUDSTACK-3869: change default snapshot directory to VM folder 2013-08-07 17:44:40 -07:00
Kelven Yang 6951e77ed9 CLOUDSTACK-3869: make new folder structure to work with Snapshop commands 2013-08-07 17:44:40 -07:00
Kelven Yang 1d939930de CLOUDSTACK-3869: make new folder structure to work with Create/Delete/Attach/Detach commands 2013-08-07 17:44:40 -07:00
Kelven Yang 059e4b2ae0 CLOUDSTACK-3886: check in for review request https://reviews.apache.org/r/13008/ 2013-08-07 10:29:18 -07:00
Kelven Yang 68974a0d0e CLOUDSTACK-3869: Move VMware datastore folder structure policy management to central place 2013-08-05 13:40:57 -07:00
Mike Tutkowski 8f1799b71f Changes related to Review Board comments 2013-07-18 19:46:42 -06:00
Sateesh Chodapuneedi 25b0f58a69 CLOUDSTACK-3529 Unable to test file existence due to exception java.lang.RuntimeException
See if file being deleted is directory or file.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-07-16 22:33:52 +05:30
Vijayendra Bhamidipati 9c1e02ae5a CLOUDSTACK-3311: PVLAN - vmware dvswitch - stop/start nd reboot Virtual router FAIL
Description:

    Fix logic to check for secondary pvlan id already existing on vmware DVS, and
    fix int to Integer comparison.
2013-07-15 16:07:58 -07:00
Hugo Trippaers 5bdbd72d6d CLOUDSTACK-728 Rewrite support for lswitch connected nics on both standard and distributed switches.
Fix the name of the interface id in extra config, so the nic is found up using the nic uuid instead of the vm id.

getVlanInfo should return null when the nic is plugged on a Lswitch network.

On a distributed portgroup all vms should be connected to a single
portgroup and set a specific vlan on the port. On a standard switch each nic should have its own portgroup with a dedicated vlan (not related to CS vlans)
2013-07-12 14:22:44 +02:00
Sateesh Chodapuneedi c02e38d670 CLOUDSTACK-3303 Vmware - Put a mechanism to disable hot add vcpu if the number of cores per socket is not 1 and virtual machine hardware version=7
Following Hotadd memory checks are included now.
1) Check if guest operating system supports memory hotadd
2) Check if virtual machine is using hardware version 7 or later before enabling memory hotadd

Following Hotadd CPU checks are included now.
1) Check if guest operating system supports cpu hotadd
2) Check if virtual machine is using hardware version 8 or later.
3) Check if virtual machine has only 1 core per socket. If hardware version is 7, then only 1 core per socket is supported. Hot adding multi-core vcpus is not allowed if hardware version is 7.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-07-10 18:14:06 +05:30
Sateesh Chodapuneedi 8cab35aa41 CLOUDSTACK-3304 [Vmware][Dynamic Scaling] - Enforce checks for maximum hotadd memory limit & memory increment size in CS
Retrieve maximum hotadd memory limit & hotadd memory increment size from running VM's configuration to validate dynamic scale memory limit while scaling up a VM.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-07-08 21:19:46 +05:30
Sateesh Chodapuneedi 574f782ab2 CLOUDSTACK-2592 [Automation]: Scale up VM on VMWARE without license doesn't throw appropriate error
Now ESXi server license would be fetched to see if HOTPLUG feature is license or not.
Throw Exception if the feature is not licensed.

Also added FeatureKeyConstants enum type to maintain list of various features to be checked whether licensed or not.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-07-08 12:53:38 +05:30
Sateesh Chodapuneedi 265c00dcfc CLOUDSTACK-3279 Need mechanism to detect if hotadd for cpu/memory is supported per a specific guest OS supported by VMware.
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-07-01 22:22:09 +05:30
Mike Tutkowski 99227f7b3e SolidFire plug-in and related changes
SolidFire plug-in

SolidFire plug-in related
2013-06-28 16:59:21 -06:00
Hugo Trippaers 98dc68d8c9 CLOUDSTACK-728 For Nicira NVP a specified port-group must be used,
instead of a dynamically configured one.

Refactor bits of the HypervisorHostHelper to better
support multiple BroadcastDomainTypes

Cleanup some parts of the code that was using tab indents and removed some dead code.
2013-06-26 15:41:52 -07:00
Sateesh Chodapuneedi c36a952f15 CLOUDSTACK-1767 VMWare DVS - cannot use untagged portgroups
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-06-25 19:43:20 +05:30
Sateesh Chodapuneedi b3927ffe96 CLOUDSTACK-1766 VmWare DVS vmware.ports.per.dvportgroup setting not used
Read the global configuration setting while configuring VmwareManager.
Also enabling autoExpand feature for supported distributed virtual switch versions.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-06-25 19:15:24 +05:30
Sateesh Chodapuneedi 3c88dd4f80 CLOUDSTACK-3151 [VMware] CloudStack does case sensitive processing of names of VMware objects.
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-06-24 11:06:16 +05:30