From 939f082cc2fb0b71bb601f80e3ea95d0be355e4c Mon Sep 17 00:00:00 2001 From: Armando Migliaccio Date: Fri, 17 Feb 2012 16:17:44 +0000 Subject: blueprint host-aggregates: host maintenance - xenapi implementation this changeset introduces the following: - refactoring around host-related operations for xenapi - increased test coverage - first cut at implementing host evacuation for a XS/XCP host Change-Id: I8509cdde95f6777ecfa928663b0c4bedbccf5d38 --- plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost b/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost index 8fcf9fee0..84962bf16 100644 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost @@ -253,7 +253,8 @@ def _power_action(action): result = _run_command("xe vm-shutdown --multiple power-state=running") if result: raise pluginlib.PluginError(result) - cmds = {"reboot": "xe host-reboot", "startup": "xe host-power-on", + cmds = {"reboot": "xe host-reboot", + "startup": "xe host-power-on", "shutdown": "xe host-shutdown"} result = _run_command(cmds[action]) # Should be empty string -- cgit