(2.10) Check if hotplug is supported in CheckPrereq
authorDimitris Aragiorgis <dimara@grnet.gr>
Wed, 30 Oct 2013 16:56:01 +0000 (18:56 +0200)
committerDimitris Aragiorgis <dimara@grnet.gr>
Tue, 17 Dec 2013 10:46:41 +0000 (12:46 +0200)
commitcaf747567520861afa7ffe658965906fc437fe87
tree3b13a95b18905772242d57f62caeb6c4895ffaf9
parent9de925214988ec109ee4709dafb914be9febba3a
(2.10) Check if hotplug is supported in CheckPrereq

Introduce new RPC hotplug_supported that invokes the corresponding
hypervisor's method which checks if hotplug is generally
supported. Call this RPC early in CheckPrereq() and abort if
hotplug is not supported. Currently only KVM hypervisor with
qemu versions > 1.0. Please note that this check is unaware of
target device and hotplug action. This latter check is still
done during hotplug_device() RPC.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>

Conflicts:
lib/cmdlib/instance.py
test/py/cmdlib/instance_unittest.py

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
lib/backend.py
lib/cmdlib/instance.py
lib/hypervisor/hv_base.py
lib/hypervisor/hv_kvm.py
lib/rpc_defs.py
lib/server/noded.py