500 error on 'nova host-update --status [enabled|disabled] when using xenapi aggregates'

Bug #944105 reported by Armando Migliaccio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
John Garbutt

Bug Description

Root cause is that the xenhost operation gets confused when executed in resource pools.

I thought I caught all cases, but clearly I didn't :(

Stacktrace is here:

nova-compute WARNING Task [Async.host.call_plugin] OpaqueRef:ec4b25a7-3e53-f7e1-c377-325c786bb29f status: failure ['XENAPI_PLUGIN_FAILURE', 'set_host_enabled', 'PluginError ', 'Error: Multiple matching hosts found. --multiple required to complete the operation\n']
nova-compute ERROR The call to set_host_enabled returned an error: ['XENAPI_PLUGIN_FAILURE', 'set_host_enabled', 'PluginError', 'Error: Multiple matching hosts found. --multip le required to complete the operation\n'].
nova-compute ERROR Exception during message handling
(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE: File "/usr/lib/python2.6/site-packages/nova/rpc/amqp.py", line 249, in _process_data
(nova.rpc): TRACE: rval = node_func(context=ctxt, **node_args)
(nova.rpc): TRACE: File "/usr/lib/python2.6/site-packages/nova/exception.py", line 126, in wrapped
(nova.rpc): TRACE: return f(*args, **kw)
(nova.rpc): TRACE: File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1424, in set_host_enabled
(nova.rpc): TRACE: return self.driver.set_host_enabled(host, enabled)
(nova.rpc): TRACE: File "/usr/lib/python2.6/site-packages/nova/virt/xenapi_conn.py", line 530, in set_host_enabled
(nova.rpc): TRACE: return self._host.set_host_enabled(host, enabled)
(nova.rpc): TRACE: File "/usr/lib/python2.6/site-packages/nova/virt/xenapi/host.py", line 98, in set_host_enabled
(nova.rpc): TRACE: return response.get("status", response)
(nova.rpc): TRACE: AttributeError: 'str' object has no attribute 'get'
(nova.rpc): TRACE:
nova-compute ERROR Returning exception 'str' object has no attribute 'get' to caller

Tags: xenserver
Changed in nova:
status: New → Confirmed
assignee: nobody → Citrix OpenStack development team (citrix-openstack)
Changed in nova:
assignee: Citrix OpenStack development team (citrix-openstack) → John Garbutt (johngarbutt)
status: Confirmed → In Progress
Changed in nova:
importance: Undecided → Medium
importance: Medium → Low
milestone: none → essex-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/4813
Committed: http://github.com/openstack/nova/commit/37a392dc4ccb96e26865ffc3708f46d76488a5f8
Submitter: Jenkins
Branch: master

commit 37a392dc4ccb96e26865ffc3708f46d76488a5f8
Author: John Garbutt <email address hidden>
Date: Wed Feb 29 15:50:14 2012 +0000

    Fixes bug 942556 and bug 944105

    Ensures the calls in the xenhost plugin work when the host is in
    a xenserver pool managed by the host aggregates feature.

    Change-Id: I51ca6b9f6d0e8d86d53afde5bf46cfabde17a44e

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-rc1 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.