Commit Graph

856 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
Wei Zhou 175549f3ab CLOUDSTACK-4405: additional patch for bridge name and firewall rules issues after KVM upgrade to 4.2
There still exist two issues after Edison's commits.
(1) Migration from new hosts to old hosts failed.
The bridge name on old host is set to cloudVirBr* if network.bridge.name.schema is set to 3.0 in /etc/cloudstack/agent/agent.properties, but the actual bridge name is breth*-* after running cloudstack-agent-upgrade.
(2) all ports of vms (Basic zone, or Advanced zone with security groups) on old hosts are open, because the iptables rules are binding to device (bridge) name which is changed by cloudstack-agent-upgrade.

After this, the KVM upgrade steps :
a. Install 4.2 cloudstack agent on each kvm host
b. Run "cloudstack-agent-upgrade". This script will upgrade all the existing bridge name to new bridge name, and update related firewall rules.
c. install a libvirt hook:
    c1. mkdir /etc/libvirt/hooks
    c2. cp /usr/share/cloudstack-agent/lib/libvirtqemuhook /etc/libvirt/hooks/qemu
    c3. chmod +x /etc/libvirt/hooks/qemu
    c4. service libvirtd restart
    c5. service cloudstack-agent restart
2013-09-24 08:51:58 +02:00
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
Kelven Yang 92db2d1a44 CLOUDSTACK-4659: Vmware allows destroying VM that has pending tasks, worker VM GC actually relies on the assumption that Vmware is protected from that which is a false assumption. Recycle Worker VM only it is from previous session 2013-09-20 10:59:30 -07:00
Kelven Yang 16a2442c41 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 2013-09-19 23:18:26 -07:00
Kelven Yang ebc95375e2 Revert "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 reverts commit 8e0faaa406.
2013-09-19 23:05:17 -07:00
Kelven Yang 8e0faaa406 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 2013-09-19 22:19:22 -07:00
Marcus Sorensen 39f7ddbb8f CLOUDSTACK-3565 - fix for new libvirt behavior when defining NFS
pools that are already mounted in KVM hypervisor
2013-09-17 10:52:04 -06:00
frank 584bb9bc0c CLOUDSTACK-4689
UI:API: associate Profile to Blade may take longer in some cases, which will result in timeout
2013-09-16 16:11:03 -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
Min Chen 4ab2a741f6 Fix unit test failure of VmwareDatacenterApiUnitTest. 2013-09-14 18:26:28 -07:00
frank fe5468881a Add disassocating profile to UCS 2013-09-14 09:17:30 -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
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 d58044ccba Add Baremetal agent package back to RPM spec file 2013-09-12 14:14:23 -07:00
Devdeep Singh 9d7f894d10 CLOUDSTACK-4617. Add host succeeds but host goes to alert state and comes back to UP state
after a short while. Fixed the link local network creation part.
2013-09-12 16:21:13 +05:30
Edison Su c08254bc70 CLOUDSTACK-4641: fix create volume from snapshot timeout issue 2013-09-11 18:08:06 -07:00
Anthony Xu 5950d37e9f CLOUDSTACK-4649
use the same virtual hardware platform in XS 6.2 as that in XS 6.0.2
2013-09-11 17:16:25 -07:00
Anthony Xu 47c06e8252 CLOUDSTACK-4643
put host maintenance mode will not change XS master,
when you delete a host, and this host is master, master will be designated by CS
2013-09-11 15:46:41 -07:00
Wei Zhou 13a0619732 CLOUDSTACK-4610: fix incorrect value available_bytes of storage pool
(cherry picked from commit 5c141a46fc)
2013-09-10 11:42:34 +02:00
Edison Su f2c5b5fbfe CLOUDSTACK-4618: fix CLVM 2013-09-06 17:55:29 -07:00
Min Chen 80aa0d3608 CLOUDSTACK-4625:Snapshots and templates should be deleted from staging
storage after create template from snapshot on S3.
2013-09-06 17:27:30 -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 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
Edison Su ffc53e81e0 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 2013-08-30 18:06:27 -07:00
Chiradeep Vittal a98eb12549 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>
2013-08-30 14:30:04 -07:00
Kelven Yang e362f51f37 CLOUDSTACK-4362: always honor vCenter on-disk meta data to work with live migration better 2013-08-30 11:11:20 -07:00
Edison Su 3cca6502a1 CLOUDSTACK-4405: fix vm migration during the upgrade to 4.2 2013-08-29 16:45:26 -07:00
Kelven Yang 2848af8126 Fix the build cause by typo in a un-test check-in! 2013-08-29 16:18:36 -07:00
Edison Su 93bfe708d9 CLOUDSTACK-4459: fix silly bug, one more time 2013-08-29 14:24:53 -07:00
Wei Zhou 3121133c03 CLOUDSTACK-1192: GetVmDiskStatsCommand return null as disk I/O statistics does not support xen/vmware 2013-08-29 23:14:42 +02:00