Rohit Yadav
b1d0df16cf
CID-1116258: Guard _storagePools using synchronized in KVMStoragePoolManager
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-09-18 11:48:11 +02:00
Rohit Yadav
e1842a9d53
CID-1199715: Remove dead code from LibvirtStorageAdaptor
...
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-09-17 16:30:42 +02:00
Kishan Kavala
f0e82f340a
CLOUDSTACK-7543: Attach RBD disk for LXC during start. Moved rbd map code seperate method. When adding block device, qemu driver should not be used for LXC
2014-09-15 10:15:54 +05:30
Kishan Kavala
4f3de024de
Add script to ensure cgroups are not co-mounted in rhel7/lxc. If required, script will unmount co-mounted cgroups and remount them seperately
2014-09-11 14:34:40 +05:30
Kishan Kavala
41fdc418ff
CLOUDSTACK-7472: Disable kvmclock for LXC
2014-09-05 19:38:55 +05:30
Kishan Kavala
6f7c4863a2
CLOUDSTACK-7473: Vm migration is not supported for LXC. When host is put in maintenance mode, stop the Vms instead of migrating
2014-09-04 20:59:19 +05:30
Rajani Karuturi
17164c3c83
Fixed CLOUDSTACK-6942: LXC: optimize template copy to primary
...
saving LXC template as tar to primary and extracting it only when
required.
This would improve the template copy time.
Reviewed By: Kishan Kavala
2014-09-04 14:56:29 +05:30
Hugo Trippaers
dc3f0cbc63
Improve the handling of the findbug exclude files
2014-09-03 10:41:22 +02:00
Kishan Kavala
718fd5f39f
CLOUDSTACK-7445: Number whitespaces in "rbd showmapped" command varies in plain format. Use regex in grep to workaround.
2014-08-27 16:13:35 +05:30
Kishan Kavala
30ecf935e8
CLOUDSTACK-7315: Set LXC volumes format as DIR. Use rm command to delete LXC volumes. Libvirt delete volume does not handle directories
2014-08-26 13:57:48 +05:30
Kishan Kavala
656fc69f39
remove trailing comma in options sent to qemu-img
2014-08-22 15:39:04 +05:30
Wido den Hollander
ab7c1f34d6
kvm: Do not print the whole exception when pool is not found in libvirt
...
This causes the logs to be filled with Exceptions which aren't nice for
users to read
2014-08-20 14:00:29 +02:00
Wido den Hollander
1ed0fe4ee7
kvm: Throw a proper exception when pool could not be fetched from libvirt
...
Otherwise NULL is returned and leads to a NPE further up the chain.
2014-08-20 13:39:52 +02:00
Wido den Hollander
eeac81838f
kvm: Return capitalized NONE when no disk cache mode is set
...
This caused Instances not to start under rare circumstances
2014-08-18 23:58:50 +02:00
Edison Su
a1bee2cb61
measure how long it takes to create a snaphsot
2014-08-12 15:13:42 -07:00
Likitha Shetty
f803100813
CLOUDSTACK-6969. Data Volume Shrink operation failing with "Unexpected Exception".
...
For ResizeVolume API command -
1. If hypervisor resource throws an exception, handle the NPE thrown by the job framework.
2. Improve user error message in case of RuntimeException by throwing the exception instead of 'Unexpected Exception'.
2014-08-01 16:23:47 +05:30
Santhosh Edukulla
44709111a3
Added Coverity Fixes
2014-07-31 15:01:30 +05:30
Anthony Xu
330c4ba578
completed the new vmsync TODOs in the code.
...
removed old vmsync logic
2014-07-28 12:51:37 -07:00
Wido den Hollander
7542ffc482
CLOUDSTACK-6181: Set the correct flags when resizing RBD
2014-07-26 11:39:28 +02:00
Santhosh Edukulla
3f6d5e392f
Fixed Coverity Issues Reported
2014-07-25 16:43:29 +05:30
amoghvk
c804660c74
CLOUDSTACK-7168: Revert "Fixed Coverity Issues reported" that broke CI
...
This reverts commit 4523490d44 .
2014-07-23 11:37:36 -07:00
Wido den Hollander
173909e99d
CLOUDSTACK-6181: Allow RBD volumes to be resized
...
We don't need an external script to investigate the format of the RBD volume,
we only have to ask Libvirt to resize the volume and that will ask librbd to
do so.
2014-07-22 22:28:34 +02:00
Santhosh Edukulla
4523490d44
Fixed Coverity Issues reported
...
Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
2014-07-22 18:03:36 +05:30
Kishan Kavala
7d3f381d94
Set mapped device path while detaching rbd disk
2014-07-22 17:50:58 +05:30
Suresh Ramamurthy
03de9cc335
CLOUDSTACK-6845 : NuageVsp Network plugin
...
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2014-07-21 10:49:49 +02:00
Marcus Sorensen
849049a2f0
KVM: Allow changing VM video card via agent.properties. This change in
...
LibvirtVMDef can also be leveraged to add the option to service offering
or template hardware selection (as nic and disk types do).
2014-07-18 16:52:51 -06:00
Edison Su
9fb93fe5b3
CLOUDSTACK-7110: introduced by c1116142a3, if it's a data volume, mgt server doesn't send image format to agent
2014-07-18 12:03:10 -07:00
Hugo Trippaers
5651a13cfd
Remove duplicated code
2014-07-18 09:28:42 +02:00
amoghvk
3d8dd1c921
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cloudstack
2014-07-14 17:30:12 -07:00
Amogh Vasekar
09069fcc87
CLOUDSTACK-6358: Add missing patches in master for KVM
2014-07-14 16:51:55 -07:00
Edison Su
e1095b0110
revert the change made by commit: a600d840
2014-07-14 14:10:16 -07:00
ynojima
e7392cdac6
Remove "--output" option from qemu-img info command call
...
since the option is not supported by qemu-img in CentOS 6.3
2014-07-13 00:33:16 -06:00
Hugo Trippaers
b9145beab6
Fix CID 1116267 Don't modify the set while the iterator is still in use.
2014-07-04 16:48:28 +02:00
Santhosh Edukulla
a600d8408e
Fixed Resource Leaks, null dereferences, few other issues reported by coverity
2014-07-04 16:17:58 +05:30
Wido den Hollander
84cfb47281
kvm: Use getStoragePool after createStoragePool when we create a libvirt pool
...
This removes some redundant code
2014-05-28 10:34:20 +02:00
Marcus Sorensen
7ce3034299
CLOUDSTACK-6790: Disable PXE ROM for system vm nics
2014-05-27 16:52:26 -06:00
Marcus Sorensen
f3a0d257b8
CLOUDSTACK-6788: Add agent property to optionally disable kvmclock on guests
2014-05-27 16:16:41 -06:00
Wido den Hollander
48899e4c81
CLOUDSTACK-6783: Return a proper LibvirtStoragePool object after creating the pool
...
In situations where libvirt lost the storage pool the KVM Agent will re-create the
storage pool in libvirt.
This could be then libvirt is restarted for example.
The object returned internally was missing essential information like the sourceDir
aka the Ceph pool, the monitor IPs, cephx information and such.
In this case the first operation on this newly created pool would fail. All operations
afterwards would succeed.
2014-05-27 16:21:07 +02:00
Wido den Hollander
a7004db7c8
rbd: Create snapshot for cloning operations only when it is required
...
We used to create the snapshot after the copy from Secondary Storage,
but it could be that we never use the snapshot.
Now we check if the snapshot exists prior to performing the cloning operation
2014-05-02 11:55:34 +02:00
Wido den Hollander
3962577329
CLOUDSTACK-4549: Do not force RBD snapshot backups to RAW format
...
Since we use qemu-img to copy from RBD to Secondary Storage we no
longer have to force to RAW images, but can stick with QCOW2
When the snapshot backups are QCOW2 format they can easily be deployed
again when restoring from a backup
2014-05-01 21:03:11 +02:00
Wido den Hollander
c1116142a3
kvm: Better handle different volume formats when creating a volume
...
The KVMStorageProcessor no longer has a hardcoded if-statement which sets
RBD volumes to RAW, this is now handled in the LibvirtStorageAdapter
The Management Server still sends QCOW2 as format. That's a fix for later.
2014-05-01 21:03:11 +02:00
Murali Reddy
42b5e1858c
incorporate change in getGuestNicModel signature, while handling OVS in
...
OvsVifDriver
2014-04-25 15:41:02 +05:30
Murali Reddy
771abe4286
fix KVM plug-in for OVS tunnel network. Fix addreses two issues.
...
fix mismatch of ovs-host-setup, ovs_host_setup used Libvirt resource and
scripts
plug the nic to OVS bridges created for the tunnel network.
Conflicts:
plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/OvsVifDriver.java
2014-04-25 15:02:17 +05:30
Marcus Sorensen
6ca4e3acb6
CLOUDSTACK-6500: Make KVM agent aware of rootDiskController
...
and nicAdapter parameters passed in StartCommand, provided
by template details
2014-04-24 19:01:33 -06:00
Wido den Hollander
c9b22af6c7
kvm: Add more log lines around storage pool operations
2014-04-17 17:42:17 +02:00
Koushik Das
5e90b75c98
CLOUDSTACK-6402: Fix StopCommand so that VMs are not removed accidentally as part of vmsync
...
Added a new flag 'checkBeforeCleanup' to StopCommand based on which check is done to see if VM is running in HV host.
If VM is running then in this case it is not stopped and the operation bails out.
Also modified the MS code to call the StopCommand with appropriate value for the flag based on the context.
Currently it is only set to 'true' when called from the new vmsync logic based on powerstate of VM. For rest it
is set to 'false' meaning no change in behaviour.
2014-04-14 16:52:37 +05:30
Wido den Hollander
8d2baf8017
rbd: Use qemu-img to backup up a RBD snapshot to Secondary Storage
...
This reduces the amount of time and storage it takes dramatically. We no longer
do a full copy, but a sparse copy. The destination image is still in RAW
format, but we only copy over used blocks.
Qemu is also better in doing this then us doing it in Java code.
2014-04-11 14:00:08 +02:00
Marcus Sorensen
11f5bdd78d
CLOUDSTACK-6191 Add support for specifying volume provisioning
...
type (thin, sparse, fat) in disk/compute offerings.
Submitted-by: Yoshikazu Nojima <mail@ynojima.net>
Reviewed-by: Marcus Sorensen, Mike Tutowski
2014-04-10 09:23:04 -06:00
Wido den Hollander
4ba688f07d
kvm: Add more debugging information when a volume is deleted.
...
There was no clear reference of libvirt being instructed to remove
the volume
2014-04-10 14:33:49 +02:00
Kishan Kavala
85072cb6b9
CLOUDSTACK-6371: Set snapshot size in copycommand answer during snapshot backup
2014-04-10 14:45:14 +05:30