action “create_endpoint" defined in openstack-identity can't support multi region scenario

Bug #1313690 reported by LeileiZhou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack + Chef
Fix Released
Medium
LeileiZhou

Bug Description

In action "create_endpoint" in openstack-identity, the logic is:
endpoint_uuid = identity_uuid new_resource, 'endpoint', 'service_id', service_uuid

Which only check when specific service has endpoint created, no action will be taken.

But for multi-region scenario as follows:
[root@c582f1-n34-vm7 ~]# keystone endpoint-list |grep 9292
| 309881fec0354bcb82f0f06f45807e8b | RegionOne | http://9.114.170.187:9292 | http://9.114.170.187:9292 | http://9.114.170.187:9292 | f9511a66e0484f3dbd1584065e8bab1c |
| 6757ebe34ab14f08836c746fc4248503 | regionTwo | http://9.114.170.197:9292 | http://9.114.170.197:9292 | http://9.114.170.197:9292 | f9511a66e0484f3dbd1584065e8bab1c |

After endpoint for "RegionOne" has been created, "regionTwo" will not have a chance to be created.

LeileiZhou (leileiz)
Changed in openstack-chef:
assignee: nobody → LeileiZhou (leileiz)
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to cookbook-openstack-identity (master)

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

Changed in openstack-chef:
status: New → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to cookbook-openstack-identity (master)

Reviewed: https://review.openstack.org/90779
Committed: https://git.openstack.org/cgit/stackforge/cookbook-openstack-identity/commit/?id=dd87c057414326a7f632b8eb18d9f4fc3a5bcea2
Submitter: Jenkins
Branch: master

commit dd87c057414326a7f632b8eb18d9f4fc3a5bcea2
Author: leileiz <email address hidden>
Date: Mon Apr 28 07:30:59 2014 -0400

    Add ability to override endpoint creation

    For new endpoint creation, only there's no endpoint with the
    same region name and service id existing, the creation will
    be executed.

    closes-Bug: #1313690

    Change-Id: Ib287f92f1ac9e75fb258381efe387a083d11efc6

Changed in openstack-chef:
status: In Progress → Fix Released
Changed in openstack-chef:
milestone: none → icehouse-rc1
importance: Undecided → Medium
Changed in openstack-chef:
milestone: icehouse-rc1 → icehouse-stable
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.