diff options
| author | Armando Migliaccio <armando.migliaccio@eu.citrix.com> | 2012-02-15 21:17:06 +0000 |
|---|---|---|
| committer | Armando Migliaccio <armando.migliaccio@eu.citrix.com> | 2012-02-22 10:40:09 +0000 |
| commit | 424de7eea2588a3f4143e5874aac01d0dd1917e6 (patch) | |
| tree | e4bd0ae28998108e87ba4fbee51195f52634460f /plugins/xenserver | |
| parent | ae99fe81f542f3c8f4e509742afa3d5a87c7cadf (diff) | |
| download | nova-424de7eea2588a3f4143e5874aac01d0dd1917e6.tar.gz nova-424de7eea2588a3f4143e5874aac01d0dd1917e6.tar.xz nova-424de7eea2588a3f4143e5874aac01d0dd1917e6.zip | |
blueprint host-aggregates: improvements and clean-up
This changeset addresses a number of issues found during testing:
- avoid name conflicts during aggregate creation (see db/* changes)
- avoid masking of XenAPI.Failure if pool-join fails (see plugins/* changes)
- preserve VM placement decisions made during scheduling (see xenapi/vmops.py)
- ensure plugins are called on the right hosts in XS pools (see xenapi_con.py)
- stores master uuid in aggregate metadata for use in VM live migration and
raise InvalidAction rather than Aggregate error if we attempt to remove
a mster (see xenapi/pool.py and compute/manager.py)
- clean-up of unit tests
Change-Id: I881a94d87efe1e81bd4f86667e75f5cbee50ce91
Diffstat (limited to 'plugins/xenserver')
| -rw-r--r-- | plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost b/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost index 9a7ad84af..8fcf9fee0 100644 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost @@ -117,9 +117,9 @@ def _resume_compute(session, compute_ref, compute_uuid): logging.exception('Waited %d seconds for the slave to ' 'become available.' % (c * DEFAULT_SLEEP)) time.sleep(DEFAULT_SLEEP) - raise pluginlib.PluginError('Unrecoverable error: the host has ' - 'not come back for more than %d seconds' - % (DEFAULT_SLEEP * (DEFAULT_TRIES + 1))) + raise pluginlib.PluginError('Unrecoverable error: the host has ' + 'not come back for more than %d seconds' + % (DEFAULT_SLEEP * (DEFAULT_TRIES + 1))) def _get_host_uuid(): @@ -315,7 +315,7 @@ def host_data(self, arg_dict): """Runs the commands on the xenstore host to return the current status information. """ - host_uuid = _get_host_uuid() + host_uuid = arg_dict.get('host_uuid', _get_host_uuid()) cmd = "xe host-param-list uuid=%s" % host_uuid resp = _run_command(cmd) parsed_data = parse_response(resp) |
