Helper methods that check for hotplug support
authorDimitris Aragiorgis <dimara@grnet.gr>
Fri, 2 Aug 2013 19:54:46 +0000 (22:54 +0300)
committerDimitris Aragiorgis <dimara@grnet.gr>
Fri, 8 Nov 2013 08:11:54 +0000 (10:11 +0200)
commite506cce0bedaa3a71b9efc4af3d0da737f5c9790
tree7c99b355f00a8f835cc8e5c98f9a0ab646c41bce
parent3e4fdd7080bf730753a4c639a6e556f375a829d8
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>
lib/hypervisor/hv_kvm.py