cloudstack/plugins
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
..
acl/static-role-based Allow custom command role ACL files on classpath in Static Role API Checker. 2015-07-01 14:43:29 +02:00
affinity-group-processors Updating pom.xml version numbers for release 4.5.2-SNAPSHOT 2015-05-07 15:33:01 +02:00
alert-handlers Updating pom.xml version numbers for release 4.5.2-SNAPSHOT 2015-05-07 15:33:01 +02:00
api Updating pom.xml version numbers for release 4.5.2-SNAPSHOT 2015-05-07 15:33:01 +02:00
database/mysql-ha CLOUDSTACK-8656: debug messages on interupted exceptions 2015-07-30 16:03:10 +02:00
dedicated-resources Updating pom.xml version numbers for release 4.5.2-SNAPSHOT 2015-05-07 15:33:01 +02:00
deployment-planners Updating pom.xml version numbers for release 4.5.2-SNAPSHOT 2015-05-07 15:33:01 +02:00
event-bus coverity 1291768: file input stream not severe unless repetitive (property file usually aren't) 2015-07-09 21:30:23 +02:00
file-systems/netapp Updating pom.xml version numbers for release 4.5.2-SNAPSHOT 2015-05-07 15:33:01 +02:00
ha-planners/skip-heurestics Updating pom.xml version numbers for release 4.5.2-SNAPSHOT 2015-05-07 15:33:01 +02:00
host-allocators/random Merge branch 'PR-REVIEW-335' 2015-07-06 11:48:38 +05:30
hypervisors Merge pull request #696 from iwebhosting/rbd-live-resize 2015-08-26 16:00:01 +05:30
network-elements Use NSX specific RestClient in API implementation (NiciraNvpApi) 2015-08-25 17:36:17 +02:00
storage Merge pull request #654 from DaanHoogland/CLOUDSTACK-8656 2015-08-14 21:38:49 +02:00
storage-allocators/random Updating pom.xml version numbers for release 4.5.2-SNAPSHOT 2015-05-07 15:33:01 +02:00
user-authenticators More typos 2015-08-20 13:04:29 +01:00
pom.xml Updating pom.xml version numbers for release 4.5.2-SNAPSHOT 2015-05-07 15:33:01 +02:00