diff options
| author | Armando Migliaccio <armando.migliaccio@eu.citrix.com> | 2012-02-17 16:17:44 +0000 |
|---|---|---|
| committer | Armando Migliaccio <armando.migliaccio@eu.citrix.com> | 2012-02-23 13:28:21 +0000 |
| commit | 939f082cc2fb0b71bb601f80e3ea95d0be355e4c (patch) | |
| tree | ec1d9ff36d598ea5f2338441a0ded1e92e19b63f /plugins | |
| parent | 0c6765a71ad5538a7569dbc03dd8fe95713dc818 (diff) | |
| download | nova-939f082cc2fb0b71bb601f80e3ea95d0be355e4c.tar.gz nova-939f082cc2fb0b71bb601f80e3ea95d0be355e4c.tar.xz nova-939f082cc2fb0b71bb601f80e3ea95d0be355e4c.zip | |
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
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
