<p>Hi Hobuki,</p>
<p>What is the version of this documentation? <br>
I can't found this command in my own copy. Look like you have older version with many mistakes in it.</p>
<div class="gmail_quote">On May 15, 2012 10:07 AM, "Nobuki Hara" <<a href="mailto:nobuki.ism0115@gmail.com">nobuki.ism0115@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<pre>Hello.

I am trying to install and configure glance following "OpenStack Install and Deploy Manual”
(<a href="http://docs.openstack.org/trunk/openstack-compute/install/openstack-install-guide-trunk.pdf" target="_blank">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 href="http://192.168.178.129:5000/v2.0" target="_blank">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 href="http://192.168.178.129:9292/v1" target="_blank">http://192.168.178.129:9292/v1</a>               | <a href="http://192.168.178.129:9292/v1" target="_blank">http://192.168.178.129:9292/v1</a>               | <a href="http://192.168.178.129:9292/v1" target="_blank">http://192.168.178.129:9292/v1</a>               |
| c0e80036d2b14c6db26a47a757b9f840 | RegionOne | <a href="http://192.168.178.129:8776/v1%%28tenant_id%29s" target="_blank">http://192.168.178.129:8776/v1%(tenant_id)s</a>  | <a href="http://192.168.178.129:8776/v1/%%28tenant_id%29s" target="_blank">http://192.168.178.129:8776/v1/%(tenant_id)s</a> | <a href="http://192.168.178.129:8776/v1/%%28tenant_id%29s" target="_blank">http://192.168.178.129:8776/v1/%(tenant_id)s</a> |
| ce51e262118b4aef8c2809c050b88011 | RegionOne | <a href="http://192.168.178.129:5000/v2.0" target="_blank">http://192.168.178.129:5000/v2.0</a>             | <a href="http://192.168.178.129:5000/v2.0" target="_blank">http://192.168.178.129:5000/v2.0</a>             | <a href="http://192.168.178.129:35357/v2.0" target="_blank">http://192.168.178.129:35357/v2.0</a>            |
| d09341a714fb438c8778610383b2982b | RegionOne | <a href="http://192.168.178.129:8773/services/Cloud" target="_blank">http://192.168.178.129:8773/services/Cloud</a>   | <a href="http://192.168.178.129:8773/services/Cloud" target="_blank">http://192.168.178.129:8773/services/Cloud</a>   | <a href="http://192.168.178.129:8773/services/Admin" target="_blank">http://192.168.178.129:8773/services/Admin</a>   |
| ed4e0b7ad92e4faf83a42921ef475e04 | RegionOne | <a href="http://192.168.178.129:8774/v2/%%28tenant_id%29s" target="_blank">http://192.168.178.129:8774/v2/%(tenant_id)s</a> | <a href="http://192.168.178.129:8774/v2/%%28tenant_id%29s" target="_blank">http://192.168.178.129:8774/v2/%(tenant_id)s</a> | <a href="http://192.168.178.129:8774/v2/%%28tenant_id%29s" target="_blank">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>
<br>_______________________________________________<br>
Openstack-operators mailing list<br>
<a href="mailto:Openstack-operators@lists.openstack.org">Openstack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br></blockquote></div>