Public bug reported: Description =========== When i updated the resource class 'CUSTOM_A' with name 'CUSTOM_B', which resource class 'CUSTOM_B' exists, the prompt returned by Placement API was 'Resource class already exists: CUSTOM_A'. But it should be 'CUSTOM_B' that already exists.
Steps to reproduce ================== * POST http://**IP**/placement/resource_classes { "name": "CUSTOM_A" } * POST http://**IP**/placement/resource_classes { "name": "CUSTOM_B" } * PUT http://172.23.28.30/placement/resource_classes/CUSTOM_A { "name": "CUSTOM_B" } Expected result =============== Response: { "errors": [ { "status": 409, "request_id": "req-111941ae-839c-4e3e-92fb-eb76a692567c", "detail": "There was a conflict when trying to complete your request.\n\n Resource class already exists: CUSTOM_B ", "title": "Conflict" } ] } Actual result ============= { "errors": [ { "status": 409, "request_id": "req-111941ae-839c-4e3e-92fb-eb76a692567c", "detail": "There was a conflict when trying to complete your request.\n\n Resource class already exists: CUSTOM_A ", "title": "Conflict" } ] } Environment =========== 1. nova version [root@controller nova]# git log commit 50d402821be7476eb58ccd791c50d8ed801e85eb Author: Matt Riedemann <[email protected]> Date: Wed Feb 8 10:23:14 2017 -0500 Consider startup scenario in _get_compute_nodes_in_db 2. Which hypervisor did you use? devstack + libvirt + kvm ** Affects: nova Importance: Undecided Assignee: Eric Xie (eric-xie) Status: In Progress ** Changed in: nova Status: New => In Progress ** Changed in: nova Assignee: (unassigned) => Eric Xie (eric-xie) -- 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/1663163 Title: Improper prompt when update existed resource class Status in OpenStack Compute (nova): In Progress Bug description: Description =========== When i updated the resource class 'CUSTOM_A' with name 'CUSTOM_B', which resource class 'CUSTOM_B' exists, the prompt returned by Placement API was 'Resource class already exists: CUSTOM_A'. But it should be 'CUSTOM_B' that already exists. Steps to reproduce ================== * POST http://**IP**/placement/resource_classes { "name": "CUSTOM_A" } * POST http://**IP**/placement/resource_classes { "name": "CUSTOM_B" } * PUT http://172.23.28.30/placement/resource_classes/CUSTOM_A { "name": "CUSTOM_B" } Expected result =============== Response: { "errors": [ { "status": 409, "request_id": "req-111941ae-839c-4e3e-92fb-eb76a692567c", "detail": "There was a conflict when trying to complete your request.\n\n Resource class already exists: CUSTOM_B ", "title": "Conflict" } ] } Actual result ============= { "errors": [ { "status": 409, "request_id": "req-111941ae-839c-4e3e-92fb-eb76a692567c", "detail": "There was a conflict when trying to complete your request.\n\n Resource class already exists: CUSTOM_A ", "title": "Conflict" } ] } Environment =========== 1. nova version [root@controller nova]# git log commit 50d402821be7476eb58ccd791c50d8ed801e85eb Author: Matt Riedemann <[email protected]> Date: Wed Feb 8 10:23:14 2017 -0500 Consider startup scenario in _get_compute_nodes_in_db 2. Which hypervisor did you use? devstack + libvirt + kvm To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1663163/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

