endpoint, service, region can not be updated when using kvs driver

Bug #1384112 reported by wanghong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
wanghong
Juno
Fix Released
Low
wanghong

Bug Description

region:
curl -i -H "X-Auth-Token:$TOKEN" -H "Content-Type:application/json" http://192.168.70.105:35357/v3/regions/ed5ff7d3e26c48aeaf1f2f9fb2a4ad7e -d '{"region":{"description":"xxx"}}' -X PATCH

{"error": {"message": "An unexpected error prevented the server from fulfilling your request: 'id' (Disable debug mode to suppress these details.)", "code": 500, "title": "Internal Server Error"}}

service:
curl -i -H "X-Auth-Token:$TOKEN" -H "Content-Type:application/json" http://192.168.70.105:35357/v3/services/f101743b55e54d2ba9cbf71d1f3456fc -d '{"service":{"type":"yy"}}' -X PATCH

{"error": {"message": "An unexpected error prevented the server from fulfilling your request: 'id' (Disable debug mode to suppress these details.)", "code": 500, "title": "Internal Server Error"}}

endpoint:
curl -i -H "X-Auth-Token:$TOKEN" -H "Content-Type:application/json" http://192.168.70.105:35357/v3/endpoints/bbe21bf654e442edb21716cc00fb1c58 -d '{"endpoint":{"zz":"tt"}}' -X PATCH

{"error": {"message": "An unexpected error prevented the server from fulfilling your request: 'region_id' (Disable debug mode to suppress these details.)", "code": 500, "title": "Internal Server Error"}}

wanghong (w-wanghong)
Changed in keystone:
assignee: nobody → wanghong (w-wanghong)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

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

Changed in keystone:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by wanghong (<email address hidden>) on branch: master
Review: https://review.openstack.org/130180
Reason: I made a mistake that use the same branch for two patches.

Changed in keystone:
status: In Progress → Confirmed
importance: Undecided → Low
wanghong (w-wanghong)
Changed in keystone:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/130180
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=211d008e4939326cc0e38ed1a9253fcffe01cb64
Submitter: Jenkins
Branch: master

commit 211d008e4939326cc0e38ed1a9253fcffe01cb64
Author: wanghong <email address hidden>
Date: Wed Oct 22 17:53:00 2014 +0800

    fix the wrong update logic of catalog kvs driver

    The update logic of catalog objects in kvs driver is wrong. Currently,
    it just overwrites the old one rather than update.

    Change-Id: I9fa582a71e1ad9b6fa06e2ffbff1472aeb975a54
    Closes-Bug: #1384112

Changed in keystone:
status: In Progress → Fix Committed
Changed in keystone:
milestone: none → kilo-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/153128

Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (stable/juno)

Reviewed: https://review.openstack.org/153128
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=a47575730c4738d1ec8b8fc9537a6f74a873457a
Submitter: Jenkins
Branch: stable/juno

commit a47575730c4738d1ec8b8fc9537a6f74a873457a
Author: wanghong <email address hidden>
Date: Wed Oct 22 17:53:00 2014 +0800

    fix the wrong update logic of catalog kvs driver

    The update logic of catalog objects in kvs driver is wrong. Currently,
    it just overwrites the old one rather than update.

    Change-Id: I9fa582a71e1ad9b6fa06e2ffbff1472aeb975a54
    Closes-Bug: #1384112
    (cherry picked from commit 211d008e4939326cc0e38ed1a9253fcffe01cb64)

Thierry Carrez (ttx)
Changed in keystone:
milestone: kilo-2 → 2015.1.0
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.