Commit Graph

808 Commits

Author SHA1 Message Date
Kelven Yang 8222eae21f Disable VMwareTools detection to avoid unreliable result caused by race-condition when VMwareTools is not ready in guest OS yet and the API is called. This is the corrected commit
(cherry picked from commit 16a2442c41)

Signed-off-by: animesh <animesh@apache.org>
2013-09-20 11:08:04 -07:00
frank 097ad0b5fe Add Baremetal agent package back to RPM spec file
(cherry picked from commit d58044ccba)

Signed-off-by: animesh <animesh@apache.org>
2013-09-13 11:26:27 -07:00
Edison Su 10a25789a6 CLOUDSTACK-4618: fix CLVM
(cherry picked from commit f2c5b5fbfe)

Signed-off-by: animesh <animesh@apache.org>
2013-09-13 11:24:33 -07:00
frank 6756df0c29 CloudStack CLOUDSTACK-4426
[VMware] [upgrade] system VM not coming up after upgrade from 3.0.4 to 4.2
(cherry picked from commit f21c8fa998)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 17:05:20 -07:00
frank 225fce17f1 CloudStack CLOUDSTACK-4426
[VMware] [upgrade] system VM not coming up after upgrade from 3.0.4 to 4.2
(cherry picked from commit c5139d6bc9)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 17:04:50 -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
Edison Su def926ca5e kvm upgrade issue from 2.2.14: 1. the uuid passed by mgt server is malformat, libvirt can't start vm. 2. the template path on primary storage is incorrect, which contains absolute path
(cherry picked from commit ffc53e81e0)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:31:22 -07:00
Chiradeep Vittal 655c3753b1 CLOUDSTACK-4575: Portable IP: disassociating a transferred public IP fails
The code is excessively complicated and convoluted.
 DisassociateIP ->
     Revoke Rule -> {FW, PF{incl SNAT}, LB, RA VPN} ->
        -> Send IpAssoc (false) to VR
     Send all config to VR again
        -> Send IpAssoc(false) to VR again  <---- fails here since it cannot find the VLAN for the IP since it is already gone
        -> Mark Ip as released

The workaround fix would be to not throw an exception in CitrixResourceBase if it is disassociate and the VLAN does not exist on the XS host.

Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>
(cherry picked from commit a98eb12549)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:28:07 -07:00
Kelven Yang 92f2360f61 CLOUDSTACK-4362: always honor vCenter on-disk meta data to work with live migration better
(cherry picked from commit e362f51f37)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:25:02 -07:00
Edison Su 1b684ac231 CLOUDSTACK-4405: fix vm migration during the upgrade to 4.2
(cherry picked from commit 3cca6502a1)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:17:38 -07:00
Kelven Yang 679aae78f3 Fix the build cause by typo in a un-test check-in!
(cherry picked from commit 2848af8126)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:16:56 -07:00
Edison Su 499bd9349f CLOUDSTACK-4459: fix silly bug, one more time
(cherry picked from commit 93bfe708d9)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:13:17 -07:00
Wei Zhou e3eefdf5a8 CLOUDSTACK-1192: GetVmDiskStatsCommand return null as disk I/O statistics does not support xen/vmware
(cherry picked from commit 3121133c03)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:12:46 -07:00
frank dced9723ff [Upgrade from 3.0.6 to 4.2][vmware] After upgrade the system vms fail to come up because "Secondary storage mount point" is pointing to a wrong location
when secondary storage is mounted as read-only, changing permission of files on it will fail. But we should still stick to current mount point instread of
returning a wrong mount point /mnt/sec
(cherry picked from commit db2d9703c1)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:12: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
Mike Tutkowski 3c58f9bb97 Trim IQN so that the format /iqn/lun becomes iqn.(cherry picked from commit cb9fc8bece)
Signed-off-by: animesh <animesh@apache.org>
2013-09-03 15:50:52 -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
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
Kelven Yang f2c8469c59 CLOUDSTACK-4518: make folder sync resilience with possible runtime situation
(cherry picked from commit 8326dfb76f)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 16:57:24 -07:00
Edison Su 2fdfd66f65 CLOUDSTACK-4459: one more try, bypass libvirt to find volume if libvirt call failed
(cherry picked from commit cfe3a0fee3)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 14:36:53 -07:00
Kelven Yang 4b4315ff71 CLOUDSTACK-4522: check before we do dynamic casting
(cherry picked from commit 8099a6e200)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 12:56:25 -07:00
Wido den Hollander bba9801cf7 CLOUDSTACK-4423: Do not always append .qcow2 to volume names when copying
Disk images are not always in the QCOW2 format, so don't assume that the
filename will always and in .qcow2
(cherry picked from commit 93b40b0ca6)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 12:55:51 -07:00
Bharat Kumar fa6da31e15 CLOUDSTACK-4498 we should not reserve memory and cpu for vmware VMs if the vmware.reserve.cpu and vmware.reserve.mem are set to false.
Conflicts:
	plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java

Signed-off-by: Jayapal <jayapal@apache.org>
(cherry picked from commit f701831713)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 12:55:14 -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
Edison Su 5878607970 CLOUDSTACK-4459:
Libvirt reports:
org.libvirt.LibvirtException: Storage volume not found: no storage vol
with matching name
in some cases, if the volume is created on one kvm host, while accessed
from other host.
It's possible due to concurrent access(read/write) storage.
The current fix is to try serveral times, and wait for 30 seconds for
each retry.
If the issue still there, then need to sync the storage pool access
2013-08-26 18:07:18 -07:00
Edison Su a23322bf20 Merge branch '4.2-forward' into 4.2 2013-08-26 16:18:12 -07:00
Mike Tutkowski 13a415fe8a Not everyone wants to use Mutual CHAP with VMware - make it optional. 2013-08-26 15:33:39 -06:00
Edison Su 38d8a84ebc CLOUDSTACK-4436: in case of older kvm host, we'd better try serveral times to make sure we passed cmdline parameters to system vms 2013-08-26 14:00:24 -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 3c69710778 CLOUDSTACK-4459: need to sychronize create storage pool, otherwise, we can create the same pool with the same uuid in parallel 2013-08-26 11:15:30 -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
Min Chen c6928f2f53 CLOUDSTACK-4480: Handle DestroyCommand in VmwareResource to evict
unused template from primary storage pool.
2013-08-23 14:36:11 -07:00
Wido den Hollander 829dbaccb4 CLOUDSTACK-4424: Download RBD volume created from snapshot
This failed due to a RAW -> QCOW2 conversion (again).

The current code still makes to much assumptions about everything always
being QCOW2 while that is not always true.
2013-08-23 16:23:17 +02:00
frank 8ae3de5331 CloudStack CLOUDSTACK-1365
UI support for baremetal PXE server

CloudStack CLOUDSTACK-1364
UI support for baremetal DHCP server
2013-08-22 17:27:27 -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
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 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
Min Chen 71bd669cb0 CLOUDSTACK-4433:[VMware]Registration of template using the downloaded
template URL is failing.
(cherry picked from commit 885a161b62)

Signed-off-by: animesh <animesh@apache.org>
2013-08-22 00:15:57 -07:00
Min Chen 885a161b62 CLOUDSTACK-4433:[VMware]Registration of template using the downloaded
template URL is failing.
2013-08-21 17:34:03 -07:00
Edison Su 9cfd434640 CLOUDSTACK-2729: another try to solve libvirt storage pool missing issue: if the storage pool is missing, then recreate it 2013-08-21 17:17:06 -07:00
Edison Su 42e4b74402 CLOUDSTACK-2729: another try to solve libvirt storage pool missing issue: if the storage pool is missing, then recreate it 2013-08-21 16:33:57 -07:00
Sateesh Chodapuneedi 9d49fe8c0f CLOUDSTACK-4414
Fixing detection of failure in cluster discovery before cleanup vsm device.
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-21 07:58:13 +05:30
Edison Su dfa81da53a delete snapshot_store_ref if the snapshot is in error state 2013-08-20 15:33:24 -07:00
Anthony Xu e2710f8bc5 CLOUDSTACK-4176
hot unplug NIC in VR when there is no ips on this NIC
Author:  Jayapal Reddy Uradi <jayapalreddy.uradi@citrix.com>

Reviewed-by: Anthony
2013-08-19 11:09:46 -07:00
Edison Su a2951b57b1 fix unit test 2013-08-19 10:29:21 -07:00
Rajesh Battala 6c593b0b16 fix for kvm test failure 2013-08-19 17:46:09 +05:30
Nitin Mehta 836ee4b139 CLOUDSTACK-4386
KVM - Create template from volume
Vmware - Create template from volume / Create template from snapshot
send the physical size in the copycommand which accordingly will populate template store ref and the usage_event tables with the right physical size
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-08-19 17:16:38 +05:30