vm_vdi_cleaner.py fails to launch with NOTIFIER is not None AssertionError

Bug #1279942 reported by Jesse Keating
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Philip Marc Schwartz

Bug Description

I believe this has something to do with oslo messaging, in that it's attempting to set up a NOTIFIER and TRANSPORT for nova messaging, and failing.

vm_vdi_cleaner.py -v --command=list-vdis --config-file /etc/nova/nova.conf
Traceback (most recent call last):
  File "/tmp/vm_vdi_cleaner.py", line 328, in <module>
    main()
  File "/tmp/vm_vdi_cleaner.py", line 302, in main
    xenapi = xenapi_driver.XenAPIDriver(virtapi.VirtAPI())
  File "/opt/rackstack/current/nova/lib/python2.6/site-packages/nova/virt/xenapi/driver.py", line 159, in __init__
    self._host = host.Host(self._session, self.virtapi)
  File "/opt/rackstack/current/nova/lib/python2.6/site-packages/nova/virt/xenapi/host.py", line 43, in __init__
    self._conductor_api = conductor.API()
  File "/opt/rackstack/current/nova/lib/python2.6/site-packages/nova/conductor/__init__.py", line 26, in API
    return api(*args, **kwargs)
  File "/opt/rackstack/current/nova/lib/python2.6/site-packages/nova/conductor/api.py", line 58, in __init__
    self._manager = utils.ExceptionHelper(manager.ConductorManager())
  File "/opt/rackstack/current/nova/lib/python2.6/site-packages/nova/conductor/manager.py", line 83, in __init__
    *args, **kwargs)
  File "/opt/rackstack/current/nova/lib/python2.6/site-packages/nova/manager.py", line 75, in __init__
    self.notifier = rpc.get_notifier(self.service_name, self.host)
  File "/opt/rackstack/current/nova/lib/python2.6/site-packages/nova/rpc.py", line 138, in get_notifier
    assert NOTIFIER is not None
AssertionError

This is with master as of bf0c24c070219a38af690ae1412a91703da78a86

Changed in nova:
assignee: nobody → Philip Marc Schwartz (philip-schwartz)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/73711

Changed in nova:
status: New → In Progress
Mark McLoughlin (markmc)
Changed in nova:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/73711
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b506529ca25753c9508cd6a54f2c2d1c426d235c
Submitter: Jenkins
Branch: master

commit b506529ca25753c9508cd6a54f2c2d1c426d235c
Author: Philip Schwartz <email address hidden>
Date: Fri Feb 14 15:46:33 2014 -0500

    Fix break in vm_vdi_cleaner after oslo changes.

    Added missing imports along with adding a call to config.parser_args as needed
    to allow vm_vdi_cleaner to work against current master.

    Corrected spelling error in comment.

    Change-Id: I4d30d0f7f9718cb29fb8c4c18e9e6fa23f3496ef
    Closes-Bug: #1279942

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → icehouse-3
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-3 → 2014.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.