Remove XEN_CMD from constants, adjust to PowercycleNode
authorHelga Velroyen <helgav@google.com>
Thu, 6 Jun 2013 16:41:01 +0000 (18:41 +0200)
committerHelga Velroyen <helgav@google.com>
Wed, 12 Jun 2013 07:18:37 +0000 (09:18 +0200)
commit8ef418bb92fab256f5013d1be37f96e862ac137d
tree4c79a944a4ad9f69435b62c1765d8fbae835fe79
parent398fd4f6560ee66eceaf6969c56f755f0b4f29c1
Remove XEN_CMD from constants, adjust to PowercycleNode

This patch extend the RPC to powercycle a node by a
hvparams parameter. This parameter is used by the
xen hypervisor to determine which xen command to use.
The respective LU is adjusted as well.

Since this was the last operation depending on the
constants.XEN_CMD, it is removed eventually.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
13 files changed:
lib/backend.py
lib/cmdlib/instance_operation.py
lib/cmdlib/node.py
lib/constants.py
lib/hypervisor/hv_base.py
lib/hypervisor/hv_chroot.py
lib/hypervisor/hv_fake.py
lib/hypervisor/hv_kvm.py
lib/hypervisor/hv_lxc.py
lib/hypervisor/hv_xen.py
lib/rpc_defs.py
lib/server/noded.py
test/py/ganeti.hypervisor.hv_xen_unittest.py