** Changed in: nova Status: Confirmed => Fix Released -- 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/1072318
Title: Incorrect ec2 error code (DescribeKeyPairs) Status in OpenStack Compute (Nova): Fix Released Bug description: EC2 http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/api- error-codes.html defines error codes for certain situations. For instance the boto python library expect they are set correctly. https://github.com/boto/boto/blob/develop/boto/ec2/connection.py#L2100 The above function should return None when the keypair does not exists. Now it raise an exception with the 'EC2APIError' error Code: boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request <?xml version="1.0"?> <Response><Errors><Error><Code>EC2APIError</Code><Message>Could not find key pair(s): random-name</Message></Error></Errors><RequestID>req-c08b0aab-7437-4289-be12-c99977597812</RequestID></Response> Internally the Code must be 'InvalidKeyPair.NotFound' I have attached an example code for easier issue reproducing . Note: I think status code 404 describes better the situation than 400 openstack-nova-api-2012.2-1.fc18.noarch affected. Earlier versions affected too. Not tested with newer version (git). To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1072318/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp