List Endpoint Template with serviceId not working as expected

Bug #897724 reported by Jenny Vo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Yogeshwar

Bug Description

I made call list Endpoint Template with service Id and it seems not working as expected.
please view below example:

as the result of list services:
{
   "OS-KSADM:services": [
            {
         "description": "openstack identity service",
         "type": "identity",
         "id": "7",
         "name": "identity"
      },
....

please notice that service type with name 'identity' has id '7'

I used this id to get list of endpoint template with service id=7

GET http://localhost:35357/v2.0/OS-KSCATALOG/endpointTemplates?serviceId=7 HTTP/1.1
Accept-Encoding: gzip,deflate
X-Auth-Token: 9da3dca9-a378-4234-8525-4b9d61b7684b
Accept: application/xml
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost:35357

The result seems return everything:
<endpointTemplates xmlns="http://docs.openstack.org/identity/api/ext/OS-KSCATALOG/v1.0">
   <endpointTemplate id="12" region="RegionTwo" name="identity" type="identity" publicURL="http://keystone.publicinternets.com/v2.0" adminURL="http://127.0.0.1:35357/v2.0" internalURL="http://127.0.0.1:5000/v2.0" enabled="true" global="true"/>
   <endpointTemplate id="11" region="RegionOne" name="identity" type="identity" publicURL="http://keystone.publicinternets.com/v2.0" adminURL="http://127.0.0.1:35357/v2.0" internalURL="http://127.0.0.1:5000/v2.0" enabled="true" global="true"/>
   <endpointTemplate id="10" region="RegionOne" name="cdn" type="object-store" publicURL="http://cdn.publicinternets.com/v1.1/%tenant_id%" adminURL="http://cdn.admin-nets.local/v1.1/%tenant_id%" internalURL="http://127.0.0.1:7777/v1.1/%tenant_id%" enabled="true"/>
   <endpointTemplate id="9" region="RegionOne" name="glance" type="image" publicURL="http://glance.publicinternets.com/v1.1/%tenant_id%" adminURL="http://nova.admin-nets.local/v1.1/%tenant_id%" internalURL="http://127.0.0.1:9292/v1.1/%tenant_id%" enabled="true"/>
   <endpointTemplate id="8" region="RegionOne" name="nova_compat" type="compute" publicURL="http://nova.publicinternets.com/v1.1/" adminURL="http://127.0.0.1:8774/v1.1" internalURL="http://localhost:8774/v1.1" enabled="true"/>
   <endpointTemplate id="7" region="RegionOne" name="nova" type="compute" publicURL="http://nova.publicinternets.com/v1.0/" adminURL="http://127.0.0.1:8774/v1.0" internalURL="http://localhost:8774/v1.0" enabled="true"/>
   <endpointTemplate id="6" region="RegionOne" name="swift" type="object-store" publicURL="http://swift.publicinternets.com/v1/AUTH_%tenant_id%" adminURL="http://swift.admin-nets.local:8080/" internalURL="http://127.0.0.1:8080/v1/AUTH_%tenant_id%" enabled="true"/>
   <endpointTemplate id="5" region="RegionOne" name="cdn" type="object-store" publicURL="http://cdn.publicinternets.com/v1.1/%tenant_id%" adminURL="http://cdn.admin-nets.local/v1.1/%tenant_id%" internalURL="http://127.0.0.1:7777/v1.1/%tenant_id%" enabled="true">
      <version id="1.1" info="http://127.0.0.1:7777/v1.1" list="http://127.0.0.1:7777/" xmlns="http://docs.openstack.org/identity/api/v2.0"/>
   </endpointTemplate>
   <endpointTemplate id="4" region="RegionOne" name="glance" type="image" publicURL="http://glance.publicinternets.com/v1.1/%tenant_id%" adminURL="http://nova.admin-nets.local/v1.1/%tenant_id%" internalURL="http://127.0.0.1:9292/v1.1/%tenant_id%" enabled="true"/>
   <endpointTemplate id="3" region="RegionOne" name="nova" type="compute" publicURL="http://nova.publicinternets.com/v1.1/" adminURL="http://127.0.0.1:8774/v1.1" internalURL="http://localhost:8774/v1.1" enabled="true"/>
</endpointTemplates>

Changed in keystone:
assignee: nobody → Yogeshwar (yogesh-srikrishnan)
importance: Undecided → Low
Revision history for this message
Yogeshwar (yogesh-srikrishnan) wrote :

I am implementing this call.This has not been implemented.However this call is part of the contract.

Changed in keystone:
status: New → In Progress
Changed in keystone:
milestone: none → essex-2
Revision history for this message
Ziad Sawalha (ziad-sawalha) wrote :
Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Revision history for this message
Jenny Vo (jenny-vo) wrote :

Test - Fixed

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