Helper methods that check for hotplug support
authorDimitris Aragiorgis <dimara@grnet.gr>
Wed, 9 Oct 2013 14:45:30 +0000 (17:45 +0300)
committerThomas Thrainer <thomasth@google.com>
Thu, 24 Oct 2013 09:27:25 +0000 (11:27 +0200)
commit97cd9092843093284b42c3fd7ad8fe74a45c301b
tree82099d0a032f89419a354c1d5d56ab5718aaba7f
parenta7ccf635af62988cd4c17b7f9ddadf59f704605b
Helper methods that check for hotplug support

Hotplug is currently *not* supported for:

 - KVM < 1.0
 - existing devices in the cluster
 - python-fdsend module is not installed (NIC hotplug)
 - chroot (Disk hotplug)
 - security mode other than None (Disk hotplug)

For the above reasons raise HotplugError exception and
let masterd handle it.

TODO: modify CallHotplugCommand() so that it parses
monitor output and reports whether the command
succeeded or not.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
lib/hypervisor/hv_kvm.py