<pre>Hello.

I am trying to install and configure glance following "OpenStack Install and Deploy Manual”
(<a class="moz-txt-link-freetext" href="http://docs.openstack.org/trunk/openstack-compute/install/openstack-install-guide-trunk.pdf">http://docs.openstack.org/trunk/openstack-compute/install/openstack-install-guide-trunk.pdf</a>)

But I am stuck at the step "Verifying the ImageService Installation" on page23.
I had an error that glance was not able to find an endpoint in response from keystone as below.

(adminUser's $TOKEN is set by hand.)

root@server1:~# glance -d -v -A $TOKEN -R regionOne -k -S keystone -T openstackDemo --os_auth_url <a class="moz-txt-link-freetext" href="http://192.168.178.129:5000/v2.0">http://192.168.178.129:5000/v2.0</a> -I adminUser -K MYPASSWORD index
Traceback (most recent call last):
  File "/usr/bin/glance", line 1040, in <module>
    result = command(options, args)
  File "/usr/bin/glance", line 63, in wrapper
    ret = func(*args, **kwargs)
  File "/usr/bin/glance", line 551, in images_index
    print_header=True)
  File "/usr/bin/glance", line 497, in _images_index
    images = client.get_images(**parameters)
  File "/usr/lib/python2.7/dist-packages/glance/client.py", line 60, in get_images
    res = self.do_request("GET", "/images", params=params)
  File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 60, in wrapped
    self._authenticate(force_reauth=True)
  File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 394, in _authenticate
    auth_plugin.authenticate()
  File "/usr/lib/python2.7/dist-packages/glance/common/auth.py", line 128, in authenticate
    _authenticate(auth_url)
  File "/usr/lib/python2.7/dist-packages/glance/common/auth.py", line 120, in _authenticate
    self._v2_auth(token_url)
  File "/usr/lib/python2.7/dist-packages/glance/common/auth.py", line 247, in _v2_auth
    self.management_url = get_endpoint(resp_auth['serviceCatalog'])
  File "/usr/lib/python2.7/dist-packages/glance/common/auth.py", line 223, in get_endpoint
    raise exception.NoServiceEndpoint()
glance.common.exception.NoServiceEndpoint: Response from Keystone does not contain a Glance endpoint.

I confirmed that keystone is correctly installed and endpoints of glance are set.

root@server1:~# keystone endpoint-list
+----------------------------------+-----------+----------------------------------------------+----------------------------------------------+----------------------------------------------+
|                id                |   region  |                  publicurl                   |                 internalurl                  |                   adminurl                   |
+----------------------------------+-----------+----------------------------------------------+----------------------------------------------+----------------------------------------------+
| 4fa0681524dc4807b56c907a3cc2203b | RegionOne | <a class="moz-txt-link-freetext" href="http://192.168.178.129:9292/v1">http://192.168.178.129:9292/v1</a>               | <a class="moz-txt-link-freetext" href="http://192.168.178.129:9292/v1">http://192.168.178.129:9292/v1</a>               | <a class="moz-txt-link-freetext" href="http://192.168.178.129:9292/v1">http://192.168.178.129:9292/v1</a>               |
| c0e80036d2b14c6db26a47a757b9f840 | RegionOne | <a class="moz-txt-link-freetext" href="http://192.168.178.129:8776/v1%%28tenant_id%29s">http://192.168.178.129:8776/v1%(tenant_id)s</a>  | <a class="moz-txt-link-freetext" href="http://192.168.178.129:8776/v1/%%28tenant_id%29s">http://192.168.178.129:8776/v1/%(tenant_id)s</a> | <a class="moz-txt-link-freetext" href="http://192.168.178.129:8776/v1/%%28tenant_id%29s">http://192.168.178.129:8776/v1/%(tenant_id)s</a> |
| ce51e262118b4aef8c2809c050b88011 | RegionOne | <a class="moz-txt-link-freetext" href="http://192.168.178.129:5000/v2.0">http://192.168.178.129:5000/v2.0</a>             | <a class="moz-txt-link-freetext" href="http://192.168.178.129:5000/v2.0">http://192.168.178.129:5000/v2.0</a>             | <a class="moz-txt-link-freetext" href="http://192.168.178.129:35357/v2.0">http://192.168.178.129:35357/v2.0</a>            |
| d09341a714fb438c8778610383b2982b | RegionOne | <a class="moz-txt-link-freetext" href="http://192.168.178.129:8773/services/Cloud">http://192.168.178.129:8773/services/Cloud</a>   | <a class="moz-txt-link-freetext" href="http://192.168.178.129:8773/services/Cloud">http://192.168.178.129:8773/services/Cloud</a>   | <a class="moz-txt-link-freetext" href="http://192.168.178.129:8773/services/Admin">http://192.168.178.129:8773/services/Admin</a>   |
| ed4e0b7ad92e4faf83a42921ef475e04 | RegionOne | <a class="moz-txt-link-freetext" href="http://192.168.178.129:8774/v2/%%28tenant_id%29s">http://192.168.178.129:8774/v2/%(tenant_id)s</a> | <a class="moz-txt-link-freetext" href="http://192.168.178.129:8774/v2/%%28tenant_id%29s">http://192.168.178.129:8774/v2/%(tenant_id)s</a> | <a class="moz-txt-link-freetext" href="http://192.168.178.129:8774/v2/%%28tenant_id%29s">http://192.168.178.129:8774/v2/%(tenant_id)s</a> |
+----------------------------------+-----------+----------------------------------------------+----------------------------------------------+----------------------------------------------+

And I checked keystone returned a correct json response, by printing service_catalog in _v2_auth function of  “/usr/lib/python2.7/dist-packages/glance/common/auth.py”

Does anyone who had the same problem, or knows how to solve it?

Thanks.<br><br>Chihiro Watanabe<br> </pre>