Incorrect EC2 error code (CreateKeyPair) Duplicate

Bug #1072762 reported by Attila Fazekas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Unassigned

Bug Description

On KeyPair duplication attempt CreateKeyPair requests must return with the " InvalidKeyPair.Duplicate" error code instead of the 'KeyPairExists' according to the http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/api-error-codes.html.

Note: The doc does not specifies exactly the which code to use from the 400-series . I guess 409 can be used here.

Test System version: openstack-nova-api-2012.2-1.fc18

Tags: ec2
Michael Still (mikal)
Changed in nova:
status: New → Triaged
importance: Undecided → Low
Joe Gordon (jogo)
tags: added: ec2
John Tran (jtran)
information type: Public → Public Security
Thierry Carrez (ttx)
information type: Public Security → Public
Revision history for this message
Attila Fazekas (afazekas) wrote :

The error code issues are more general than I expected:
https://blueprints.launchpad.net/nova/+spec/ec2-error-codes

Chuck Short (zulcss)
Changed in nova:
status: Triaged → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-3 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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