500 error with duplicate key pairs

Bug #902162 reported by Nachi Ueno
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Nirmal Ranganathan

Bug Description

500 error with duplicate key pairs
This must be 400 Bad Request.

URI:https://servers.api.openstack.com/v1.1/{tenantId}/os-keypairs
Method:POST
API:/v1.1/{tenantId}/os-keypairs

Parameter:

keyname=test38116997634 <- This name is already registered.

Responsce.

resp={'date': 'Thu, 01 Dec 2011 02:52:16 GMT', 'status': '500', 'content-length': '133', 'content-type': 'application/json; charset=UTF-8'}
body={"cloudServersFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

Rohit Karajgi (rohitk)
summary: - 500 error with depilated key pairs
+ 500 error with duplicate key pairs
description: updated
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
status: New → Confirmed
Changed in nova:
assignee: nobody → Nirmal Ranganathan (rnirmal)
Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/3699

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/3699
Committed: http://github.com/openstack/nova/commit/999db21e1a5a0944535e0fb0fd2478ab1647d85b
Submitter: Jenkins
Branch: master

commit 999db21e1a5a0944535e0fb0fd2478ab1647d85b
Author: Nirmal Ranganathan <email address hidden>
Date: Thu Feb 2 14:19:57 2012 -0600

    Throw an user error on creating duplicate keypairs
    Fixes bug 902162

    Change-Id: I1b73943aab338bde90b4d47bc015964e9981af5d

Changed in nova:
status: In Progress → Fix Committed
Brian Waldon (bcwaldon)
Changed in nova:
milestone: none → essex-4
no longer affects: openstack-qa
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-4 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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