nova-manage floating list crashes if an instance is missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| OpenStack Compute (nova) |
Low
|
Vish Ishaya |
Bug Description
Running "nova-manage floating list" on one of our clusters, I get an uncaught InstanceNotFound exception. Now, I guess this might be a DB problem on our side, but I also think that nova-manage should catch it and not crash out.
2012-03-26 03:13:48 CRITICAL nova [req-4cf3eb24-
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "./nova-manage", line 2202, in <module>
(nova): TRACE: main()
(nova): TRACE: File "./nova-manage", line 2189, in main
(nova): TRACE: fn(*fn_args, **fn_kwargs)
(nova): TRACE: File "./nova-manage", line 683, in list
(nova): TRACE: instance = db.instance_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return IMPL.instance_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return f(*args, **kwargs)
(nova): TRACE: File "/usr/lib/
(nova): TRACE: raise exception.
(nova): TRACE: InstanceNotFound: Instance 6727 could not be found.
(nova): TRACE:
Changed in nova: | |
assignee: | nobody → Michael Still (mikalstill) |
status: | New → In Progress |
Mark McLoughlin (markmc) wrote : | #2 |
This could be related to bug #939580 - it would cause disassociate_
I'm not sure the code should handle this - we should be able to make assertions about the consistency of data in the DB
Michael Still (mikal) wrote : | #3 |
I strongly feel that nova-manage should not crash in this instance. It hampers the ability of ops people to manage the cluster if the tools don't work. Sure, flag the error, but keep running.
tags: | added: essex-rc-potential |
Changed in nova: | |
importance: | Undecided → Low |
Fix proposed to branch: milestone-proposed
Review: https:/
Changed in nova: | |
assignee: | Michael Still (mikalstill) → Vish Ishaya (vishvananda) |
Reviewed: https:/
Committed: http://
Submitter: Jenkins
Branch: master
commit 37dad352a172031
Author: Michael Still <email address hidden>
Date: Mon Mar 26 14:37:48 2012 +1100
Handle instances being missing while listing floating IPs
This resolves bug 964950, which is a nova-manage crash while
listing floating IPs when an instance has gone missing.
Change-Id: Ib628356608bc0c
Changed in nova: | |
status: | In Progress → Fix Committed |
Reviewed: https:/
Committed: http://
Submitter: Jenkins
Branch: milestone-proposed
commit 8d2a755552d2168
Author: Michael Still <email address hidden>
Date: Mon Mar 26 14:37:48 2012 +1100
Handle instances being missing while listing floating IPs
This resolves bug 964950, which is a nova-manage crash while
listing floating IPs when an instance has gone missing.
Change-Id: Ib628356608bc0c
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | none → 2012.1 |
Fix proposed to branch: master /review. openstack. org/5799
Review: https:/