[Openstack] Glance cannot authenticate

Viktor Viking viktor.viking.se at gmail.com
Wed May 1 19:22:16 UTC 2013


Hi Razique,

Thank you for the tip. My problem was misconfiguration of
admin_user/admin_password at /etc/glance/glance-api.conf.

Best,
Viktor


On Tue, Apr 30, 2013 at 10:15 PM, Razique Mahroua <razique.mahroua at gmail.com
> wrote:

> ok problem solved here.
> As I was using an HA cluster between two nodes, I forgot to add a link
> between the public IP of my APIs and the glance services - so Glance was
> running on one node as the IP was running on the other one
> You can use tcpdump in order to diagnose when it fails :
> $ tcpdump -nvv -s0 -A -o ethX (eth1 in my case) tcp and port 5000
>
> regards
>
> *Razique Mahroua** - **Nuage & Co*
> razique.mahroua at gmail.com
> Tel : +33 9 72 37 94 15
>
>
> Le 30 avr. 2013 à 19:31, Razique Mahroua <razique.mahroua at gmail.com> a
> écrit :
>
> Funny,
> I'm facing the same issue today - are glance api/ registry conf files good
> ? (especially the [paste_deploy] flavor=keystone for both api and registry)
> what $ nova -debug image-show outputs?
>
>
>
> *Razique Mahroua** - **Nuage & Co*
> razique.mahroua at gmail.com
> Tel : +33 9 72 37 94 15
>
> <NUAGECO-LOGO-Fblan_petit.jpg>
>
> Le 30 avr. 2013 à 18:03, Viktor Viking <viktor.viking.se at gmail.com> a
> écrit :
>
> Dear Openstackers,
>
> I'm facing authentication problems when running glance commands (e.g.,
> glance image-list)
>
> I have my environment variables set in the following way:
>
> OS_REGION_NAME=RegionOne
> OS_PASSWORD=openstack
> OS_AUTH_URL=http://192.168.0.1:5000/v2.0
> OS_USERNAME=admin
> OS_TENANT_NAME=demo
>
> With these env variables set, I can run "keystone endpoint-list" and I seehttp://192.168.0.1:5000/v2.0"
> as my publicurl for the keystone endpoint. So far so good. This also proves
> the user=admin, pass=openstack, tenant=demo are correct.
>
> The problem happens when I try to use glance (for anything). "glance
> image-list" for example returns an exception plus:
>
> NotAuthenticated : 401 Unauthorized
> This server could not verify that you are authorized to access the
> document you requested. Either you supplied the wrong credentials (e.g.,
> bad password), or your browser does not understand how to supply the
> credentials required.
> Authentication required
> (HTTP 500)
>
> I don't have SERVICE_TOKEN variables set.
>
> I have seen this https://answers.launchpad.net/keystone/+question/212102but it didn't solve my problem either.
>
> Does anyone have a clue that might enlighten me?
>
> Thank you,
> Viktor
>
>
>
> _______________________________________________
> 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
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130501/cc3bc595/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NUAGECO-LOGO-Fblan_petit.jpg
Type: image/jpeg
Size: 10122 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130501/cc3bc595/attachment.jpg>


More information about the Openstack mailing list