Commit Graph

306 Commits

Author SHA1 Message Date
Marcus Sorensen
bb01aad377 CLOUDSTACK-6103: Pass VM iso information along with
PrepareForMigrationCommand, so that destination hypervisor can
mount pool. This further exposed an issue for KVM where iso
was not getting cleaned up upon successful migration, fixed as well.
2014-02-14 00:50:45 -07:00
Wei Zhou
79f609ca19 Commit 3a999e7 changed the return values for the Script.execute function, this introduced a bug in the openvswitch bridge detection code.
Hugo fixed it in master by commit c024a9382 and 725bed43b
2014-01-03 09:10:44 +01:00
Abhinandan Prateek
e65dbbc3cf Revert "Updating pom.xml version numbers for release 4.2.1"
This reverts commit 1b2b58fe35.
2013-12-16 15:42:51 +05:30
Abhinandan Prateek
1b2b58fe35 Updating pom.xml version numbers for release 4.2.1
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-12-16 15:36:37 +05:30
Abhinandan Prateek
2bdd288605 Revert "Updating pom.xml version numbers for release 4.2.1"
This reverts commit cc662445a5.
2013-12-13 11:53:40 +05:30
Abhinandan Prateek
cc662445a5 Updating pom.xml version numbers for release 4.2.1
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-12-13 11:46:08 +05:30
Abhinandan Prateek
3c561c6d79 Revert "Updating pom.xml version numbers for release 4.2.1"
This reverts commit 6ba071b159.
2013-12-03 17:46:18 +05:30
Abhinandan Prateek
6ba071b159 Updating pom.xml version numbers for release 4.2.1
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-12-03 17:41:35 +05:30
Abhinandan Prateek
92254a5a2f Revert "Updating pom.xml version numbers for release 4.2.1"
This reverts commit 7fb9dcb131e1d2d5a7c87e0aab2929b772bcd008.
2013-12-03 17:16:18 +05:30
Abhinandan Prateek
e8c3c650a7 Updating pom.xml version numbers for release 4.2.1
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-12-03 17:16:17 +05:30
Wei Zhou
5cada5ddf2 CLOUDSTACK-5293: get vm disk statistics only from DISK (not for ISO/FLOPPY)
(cherry picked from commit d473d5a36a)
2013-11-29 11:18:01 +01:00
Abhinandan Prateek
4cb311530c Revert "Updating pom.xml version numbers for release 4.2.1"
This reverts commit 0b9eadaf14.
2013-11-12 21:17:27 +05:30
Abhinandan Prateek
0b9eadaf14 Updating pom.xml version numbers for release 4.2.1
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-11-12 21:15:01 +05:30
Wei Zhou
86976fb298 CLOUDSTACK-5076: fix wrong bridge name in vm domain xml desc after upgrade from 4.0 or before to 4.2 2013-11-08 14:36:48 +01:00
Wei Zhou
a33f0e7bdd check Linux bridge status before remove it 2013-11-07 11:06:42 +01:00
Edison Su
4f9af26bea CLOUDSTACK-5065: isExternalSnapshot should return true for CLVM and RBD only 2013-11-06 15:32:32 -08:00
Edison Su
89206094ae CLOUDSTACK-5022 - [Automation] Failed to create volume from snapshot in KVM 2013-11-01 13:43:07 -07:00
Wei Zhou
4b8d636ce6 remove unused file lock codes from LibvirtStorageAdaptor.java 2013-10-30 15:13:14 +01: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
Marcus Sorensen
903d0c0920 CLOUDSTACK-2823: This affects Ubuntu as well, since qemu version is 1.0.0
I don't think host kernel version has any bearing on it. Original code
was tested with CentOS 6.3 and 6.4, but it seems to succeed or fail per-host,
e.g. a fast host might work and a slow host might not. I was getting intermittent
failures with ubuntu 12.04.3 prior to this patch.
2013-10-16 00:25:04 -06: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
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
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
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
Edison Su
c08254bc70 CLOUDSTACK-4641: fix create volume from snapshot timeout issue 2013-09-11 18:08:06 -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
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
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
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
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
Edison Su
3cca6502a1 CLOUDSTACK-4405: fix vm migration during the upgrade to 4.2 2013-08-29 16:45:26 -07:00
Edison Su
93bfe708d9 CLOUDSTACK-4459: fix silly bug, one more time 2013-08-29 14:24:53 -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
Edison Su
6b4aed2aca CLOUDSTACK-3535: fix regression introduced in 5d9fa5d42e 2013-08-27 18:08:33 -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
Edison Su
cfe3a0fee3 CLOUDSTACK-4459: one more try, bypass libvirt to find volume if libvirt call failed 2013-08-27 14:16:23 -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
Wido den Hollander
93b40b0ca6 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
2013-08-27 18:35:23 +02:00
Edison Su
816772a001 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:11:25 -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
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
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
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
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