'nova-manage logs errors' broken

Bug #948611 reported by Joe Gordon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Joe Gordon

Bug Description

'nova-manage logs errors' as listed in https://blueprints.launchpad.net/nova/+spec/lasterror throws an error when run in devstack

vagrant@devstack:~$ nova-manage logs errors
Command failed, please check log for more info
2012-03-07 01:01:23 CRITICAL nova [-] local variable 'error_found' referenced before assignment
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/local/bin/nova-manage", line 7, in <module>
(nova): TRACE: execfile(__file__)
(nova): TRACE: File "/opt/stack/nova/bin/nova-manage", line 2396, in <module>
(nova): TRACE: main()
(nova): TRACE: File "/opt/stack/nova/bin/nova-manage", line 2383, in main
(nova): TRACE: fn(*fn_args, **fn_kwargs)
(nova): TRACE: File "/opt/stack/nova/bin/nova-manage", line 2165, in errors
(nova): TRACE: if error_found == 0:
(nova): TRACE: UnboundLocalError: local variable 'error_found' referenced before assignment
(nova): TRACE:

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/5005

Changed in nova:
assignee: nobody → Joe Gordon (joe-gordon0)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/5005
Committed: http://github.com/openstack/nova/commit/61d49f9ddfcab9a25563fcd8f2bcc58272d7bc17
Submitter: Jenkins
Branch: master

commit 61d49f9ddfcab9a25563fcd8f2bcc58272d7bc17
Author: Joe Gordon <email address hidden>
Date: Tue Mar 6 17:13:52 2012 -0800

    Fix bug 948611. Fix 'nova-manage logs errors'

    Change-Id: Ica0de2bebfbadbaede698ae0e9db9bff208c358c

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