Deregister image with invalid Id raises UnknownError

Bug #702580 reported by Tushar Patil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
John Tran

Bug Description

euca-deregister ami-invalidid gives error message
"UnknownError: An unknown error has occurred. Please try your request again."

Expected result: it should give error message something like
"Image %s could not be found"

On the contrary, euca-describe-images with invalid id doesn't show any error message.
It is better to be consistent and show some error message like "Image %s could not be found"

Related branches

Revision history for this message
Thierry Carrez (ttx) wrote :

objectstore throws Unhandled Error in that case, see attached stacktrace from nova-objectstore.log

Changed in nova:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :
Jay Pipes (jaypipes)
summary: - Degister image with invalid Id raises UnknownError
+ Deregister image with invalid Id raises UnknownError
description: updated
John Tran (jtran)
Changed in nova:
assignee: nobody → John Tran (jtran)
Revision history for this message
John Tran (jtran) wrote :

Submitted a fix and tests.

~/nova/lp702580$ euca-describe-images image1
NotFound: Image image1 not found

Revision history for this message
John Tran (jtran) wrote :

Posted wrong output ^. This bug is specifically addressing deregister output, via euca-deregister:

~/nova/lp702580$ euca-deregister image1
NotFound: Image image1 not found

Thierry Carrez (ttx)
Changed in nova:
status: Confirmed → In Progress
John Tran (jtran)
Changed in nova:
status: In Progress → Fix Committed
John Tran (jtran)
Changed in nova:
status: Fix Committed → In Progress
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-1
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-1 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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