uninformative error when invalid instance id is entered
Bug #732902 reported by
Cam Macdonell
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Unassigned |
Bug Description
I accidentally ran
euca-terminate-
instead of i-1. The error is an uninformative "unknown error". Only after a few minutes did I notice my typo
The problem is in api/ec2/cloud.py at line 78, wrapping a try/except as follows will provide a more intuitive message
def ec2_id_
"""Convert an ec2 ID (i-[base 16 number]) to an instance id (int)"""
try:
id = int(ec2_
except ValueError:
raise exception.
return id
description: | updated |
description: | updated |
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This may have been fixed in another bug ticket? I am not able to reproduce the problem.
$ euca-terminate- instances i-1
InstanceNotFound: Instance i-00000001 not found