[Openstack] Glance and Keystone

Paras pradhan pradhanparas at gmail.com
Wed Feb 1 23:40:59 UTC 2012


I think i found the problem

Added/Edited the following to glance-api.conf

pipeline = authtoken keystone_shim registryapp

and

pipeline = versionnegotiation authtoken keystone_shim apiv1app


to glance-registry.conf

I am not geeting any errors now.


Paras.

On Wed, Feb 1, 2012 at 11:06 AM, Paras pradhan <pradhanparas at gmail.com> wrote:
> So this one?
>
> --
>
> root at server3:/home/localadmin/creds# curl -v -H "X-Auth-Token:
> 16afc976-4dfa-4175-a7ea-ec8446f636b3" 192.168.122.14:9292/v1.1/images
> * About to connect() to 192.168.122.14 port 9292 (#0)
> *   Trying 192.168.122.14... connected
> * Connected to 192.168.122.14 (192.168.122.14) port 9292 (#0)
>> GET /v1.1/images HTTP/1.1
>> User-Agent: curl/7.21.6 (x86_64-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3
>> Host: 192.168.122.14:9292
>> Accept: */*
>> X-Auth-Token: 16afc976-4dfa-4175-a7ea-ec8446f636b3
>>
> < HTTP/1.1 300 Multiple Choices
> < Content-Type: application/json
> < Content-Length: 216
> < Date: Wed, 01 Feb 2012 17:06:19 GMT
> <
> * Connection #0 to host 192.168.122.14 left intact
> * Closing connection #0
> {"versions": [{"status": "CURRENT", "id": "v1.1", "links": [{"href":
> "http://0.0.0.0:9292/v1/", "rel": "self"}]}, {"status": "SUPPORTED",
> "id": "v1.0", "links": [{"href": "http://0.0.0.0:9292/v1/", "rel":
> "self"}]}]}
> --
>
> Paras.
>
> On Wed, Feb 1, 2012 at 10:52 AM, Kiall Mac Innes <kiall at managedit.ie> wrote:
>> I think Jay  gave you the wrong command to try, he probably meant: (notice
>> the v2 changed to v1.1)
>>
>> curl -v -H "X-Auth-Token: 16afc976-4dfa-4175-a7ea-ec8446f636b3"
>> <GLANCE_API_HOST>:<GLANCE_API_PORT>/v1.1/images
>>
>> Thanks,
>> Kiall
>>
>>
>>
>> On Wed, Feb 1, 2012 at 4:29 PM, Paras pradhan <pradhanparas at gmail.com>
>> wrote:
>>>
>>> Got this
>>>
>>> --
>>>
>>> root at server3:/etc/nova# curl -v -H "X-Auth-Token:
>>> 16afc976-4dfa-4175-a7ea-ec8446f636b3" 192.168.122.14:9292/v2/images
>>> * About to connect() to 192.168.122.14 port 9292 (#0)
>>> *   Trying 192.168.122.14... connected
>>> * Connected to 192.168.122.14 (192.168.122.14) port 9292 (#0)
>>> > GET /v2/images HTTP/1.1
>>> > User-Agent: curl/7.21.6 (x86_64-pc-linux-gnu) libcurl/7.21.6
>>> > OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3
>>> > Host: 192.168.122.14:9292
>>> > Accept: */*
>>> > X-Auth-Token: 16afc976-4dfa-4175-a7ea-ec8446f636b3
>>> >
>>> < HTTP/1.1 300 Multiple Choices
>>> < Content-Type: application/json
>>> < Content-Length: 216
>>> < Date: Wed, 01 Feb 2012 16:29:25 GMT
>>> <
>>> * Connection #0 to host 192.168.122.14 left intact
>>> * Closing connection #0
>>> {"versions": [{"status": "CURRENT", "id": "v1.1", "links": [{"href":
>>> "http://0.0.0.0:9292/v1/", "rel": "self"}]}, {"status": "SUPPORTED",
>>> "id": "v1.0", "links": [{"href": "http://0.0.0.0:9292/v1/", "rel":
>>> "self"}]}]}
>>> --
>>>
>>> Paras.
>>>
>>> On Wed, Feb 1, 2012 at 10:22 AM, Jay Pipes <jaypipes at gmail.com> wrote:
>>> > If you do:
>>> >
>>> > curl -v -H "X-Auth-Token: 16afc976-4dfa-4175-a7ea-ec8446f636b3"
>>> > <GLANCE_API_HOST>:<GLANCE_API_PORT>/v2/images
>>> >
>>> > What is returned?
>>> >
>>> > -jay
>>> >
>>> >
>>> > On 02/01/2012 11:19 AM, Paras pradhan wrote:
>>> >>
>>> >> Didn't work
>>> >>
>>> >> here is the o/p
>>> >>
>>> >> root at server3:~# glance -A 16afc976-4dfa-4175-a7ea-ec8446f636b3 details
>>> >> Failed to show details. Got error:
>>> >> Internal Server error: Traceback (most recent call last):
>>> >>   File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 336,
>>> >> in handle_one_response
>>> >>     result = self.application(self.environ, start_response)
>>> >>   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in
>>> >> __call__
>>> >>     resp = self.call_func(req, *args, **self.kwargs)
>>> >>   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in
>>> >> call_func
>>> >>     return self.func(req, *args, **kwargs)
>>> >>   File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line
>>> >> 113, in __call__
>>> >>     response = req.get_response(self.application)
>>> >>   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1053,
>>> >> in get_response
>>> >>     application, catch_exc_info=False)
>>> >>   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1022,
>>> >> in call_application
>>> >>     app_iter = application(self.environ, start_response)
>>> >>   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in
>>> >> __call__
>>> >>     resp = self.call_func(req, *args, **self.kwargs)
>>> >>   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in
>>> >> call_func
>>> >>     return self.func(req, *args, **kwargs)
>>> >>   File "/usr/lib/python2.7/dist-packages/glance/common/wsgi.py", line
>>> >> 110, in __call__
>>> >>     response = self.process_request(req)
>>> >>   File "/usr/lib/python2.7/dist-packages/glance/common/context.py",
>>> >> line 104, in process_request
>>> >>     raise exception.NotAuthorized()
>>> >> NotAuthorized: None
>>> >>
>>> >> root at server3:~#
>>> >>
>>> >> Thanks
>>> >> Paras.
>>> >>
>>> >>
>>> >> On Tue, Jan 31, 2012 at 6:23 PM, Jay Pipes<jaypipes at gmail.com>  wrote:
>>> >>>
>>> >>> On 01/31/2012 06:00 PM, Paras pradhan wrote:
>>> >>>>
>>> >>>>
>>> >>>> Hi,
>>> >>>>
>>> >>>> How do I check if glance is working with keystone?
>>> >>>>
>>> >>>> This is what I've done so far and getting errors
>>> >>>>
>>> >>>> ----
>>> >>>> # glance -A details 16afc976-4dfa-4175-a7ea-ec8446f636b3
>>> >>>
>>> >>>
>>> >>>
>>> >>> Needs to be:
>>> >>>
>>> >>> glance -A  16afc976-4dfa-4175-a7ea-ec8446f636b3 details
>>> >>>
>>> >>> Cheers!
>>> >>> -jay
>>> >>>
>>> >>>
>>> >>> _______________________________________________
>>> >>> Mailing list: https://launchpad.net/~openstack
>>> >>> Post to     : openstack at lists.launchpad.net
>>> >>> Unsubscribe : https://launchpad.net/~openstack
>>> >>> More help   : https://help.launchpad.net/ListHelp
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~openstack
>>> Post to     : openstack at lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help   : https://help.launchpad.net/ListHelp
>>
>>




More information about the Openstack mailing list