cinder-volume-usage-audit broken

Bug #1315259 reported by Sam Morrison
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

It seems this script is broken again.

Maybe there should be a test for this? It seems like it breaks regularly

https://bugs.launchpad.net/cinder/+bug/1053502
https://bugs.launchpad.net/cinder/+bug/1069601
https://bugs.launchpad.net/cinder/+bug/1130266

/opt/cinder/bin/cinder-volume-usage-audit
Starting volume usage audit
Creating usages for 2014-05-02 05:00:00 until 2014-05-02 06:00:00
2014-05-02 16:35:58.729 19817 DEBUG cinder.openstack.common.lockutils [req-3049c9de-ac68-49d8-b2c4-ff63e7b80553 - - - - -] Got semaphore "dbapi_backend" for method "__get_backend"... inner /opt/cinder/cinder/openstack/common/lockutils.py:191
Found 1 volumes
2014-05-02 16:35:59.022 19817 DEBUG cinder [req-3049c9de-ac68-49d8-b2c4-ff63e7b80553 - - - - -] Send exists notification for <volume_id: aad2e9b1-d374-4a22-8fd1-b05b3c7f8c8b> <project_id 094ae1e2c08f4eddb444a9d9db71ab40> <{'audit_period_ending': '2014-05-02 06:00:00', 'audit_period_beginning': '2014-05-02 05:00:00'}> <module> /opt/cinder/bin/cinder-volume-usage-audit:121
2014-05-02 16:35:59.023 19817 ERROR cinder [req-3049c9de-ac68-49d8-b2c4-ff63e7b80553 - - - - -] Failed to send exists notification for volume aad2e9b1-d374-4a22-8fd1-b05b3c7f8c8b.
Traceback (most recent call last):
  File "/opt/cinder/bin/cinder-volume-usage-audit", line 125, in <module>
    'exists', extra_usage_info=extra_info)
  File "/opt/cinder/cinder/volume/utils.py", line 68, in notify_about_volume_usage
    rpc.get_notifier("volume", host).info(context, 'volume.%s' % event_suffix,
  File "/opt/cinder/cinder/rpc.py", line 149, in get_notifier
    assert NOTIFIER is not None
AssertionError

Found 0 snapshots
Volume usage audit completed

Revision history for this message
Mike Perez (thingee) wrote :
tags: added: icehouse-backport-potential
Revision history for this message
Ondergetekende (kvdveer) wrote :

This one fixes the same issue, but it is already merged, which might help with a backport.

https://review.openstack.org/#/c/92318/

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.