cloudstack/plugins/hypervisors
Rohit Yadav e2a0d18a84 Merge pull request #696 from iwebhosting/rbd-live-resize
Default to notify only script to handle non-CLVM/QCOW cases.This relates to [CLOUDSTACK-8732](https://issues.apache.org/jira/browse/CLOUDSTACK-8732)

Before this commit the call to `getResizeScriptType` would throw an exception (earlier versions returned `null`, which was fine) - this caused the RBD case to fail. By changing the default to notify only we fix the case for any non-CLVM and non-QCOW cases, too.

This is RBD for now, but this should extend to new storage types supported by Libvirt natively in future.

This is my first attempted contribution: I can see a case for adding RBD logic to the actual getResizeScriptType call, too, but I felt that putting it `LibvirtResizeVolumeCommandWrapper.java` kept the special-casing of RBD (and comments about that) in one place.

### Caveat:

With Libvirt 1.2.2 this actually doesn't do the right thing - but it does do what the documentation *says* should be the right thing, so I'm going to test if this is a Libvirt bug which is fixed in a later version.

(To make it work I need to execute something like:

    virsh blockresize --path vda --size 100G i-7-44-VM

where vda is the path as far as the *guest* is concerned, and not an `rbd/` path - which *should* work, but doesn't.)

* pr/696:
  Default to notify only script to handle non-CLVM/QCOW cases.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-26 16:00:01 +05:30
..
baremetal Refactored Nic.java for readability. 2015-08-18 14:04:48 +02:00
hyperv Refactored NicProfile.java for readability. 2015-08-17 14:12:10 +02:00
kvm Merge pull request #696 from iwebhosting/rbd-live-resize 2015-08-26 16:00:01 +05:30
ovm Fix findbugs DM_BOXED_PRIMITIVE_FOR_PARSING in OvmResourceBase.java 2015-06-22 10:50:48 +02:00
ovm3 Specify all dependency versions in pom.xml 2015-06-22 13:01:19 +02:00
simulator CLOUDSTACK-8656: class in json specified not found 2015-08-14 16:29:21 +02:00
ucs Fix findbugs warning in UcsManagerImpl.java Integer was being created to assign value to int 2015-06-15 12:09:37 +03:00
vmware CLOUDSTACK-8602. MigrateVirtualMachineWithVolume leaves old chain data for volume. Update chain info of a volume after migration. 2015-08-26 15:15:53 +05:30
xenserver Add UUIDs to constructors (fixing syntax error from 2a6c7f3) 2015-08-24 14:12:49 +05:30