← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1199309] Re: Ambiguous exception class for validate_ec2_id

 

Duplicated bug of https://bugs.launchpad.net/nova/+bug/1199308 was
created. Marked invalid as I couldn't see a duplicate option.

** Changed in: nova
     Assignee: Aswad Rangnekar (aswad-r) => (unassigned)

** Changed in: nova
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1199309

Title:
  Ambiguous exception class for validate_ec2_id

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  The validate_ec2_id() method is used to validate both the Instance ID as well as Volume ID for valid EC2 ID format. 
  However the exception class raised in both cases, if the respective ID were invalid is "InvalidInstanceIDMalformed".
  This is ambiguous and needs to be fixed such that a clearer exception is seen in the stack trace.

  The exception class InvalidInstanceIDMalformed in exception.py could
  be changed to something like InvalidEC2IDMalformed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1199309/+subscriptions