Ask Your Question
0

Cannot get image list from Glance "Unable to establish connection:

asked 2014-09-18 12:38:34 -0600

jameschao gravatar image

updated 2014-09-18 18:48:10 -0600

smaffulli gravatar image

Hi,

My env is centos 6.5, python 2.7.8. I installed python-novaclient and python-glanceclient. I have source the openrc file and have the following envs

OS_REGION_NAME=xxxx
OS_TENANT_ID=yyyy
OS_PASSWORD=zzz
OS_AUTH_URL=https://keystone.example.com:5000/v2.0
OS_USERNAME=
OS_TENANT_NAME=

nova is working. I can have

$ nova list
+--------------------------------------+---------+--------+------------+-------------+------------------------------------------------------------------+
| ID  | Name    | Status | Task State | Power State |   Networks                                                         |
+--------------------------------------+---------+--------+------------+-------------+------------------------------------------------------------------+
| d28fa2f9-0e64-477b-9713-18bdd085ff92 | cloud2b | ACTIVE | -          | Running     | Public_AGILE=...

however I cannot have glance working

$ glance image-list
Unable to establish connection to http://localhost:5000/v2.0/tokens


$ echo "$OS_AUTH_URL"
https://keystone.example.com:5000/v2.0

$ keystone user-list
WARNING:keystoneclient.httpclient:Failed to retrieve management_url from token


$ keystone user-list --os-auth-url $OS_AUTH_URL
usage: keystone
...
keystone: error: unrecognized arguments: --os-auth-url https://keystone.example.com:5000/v2.0

I haven't configured ssl. However my question is, are nova and glance so different ? Why nova worked but glance failed? I have installed the clients via

$ sudo pip install python-novaclient python-glanceclient
edit retag flag offensive close merge delete

Comments

Did you actually configure SSL certificates and all to allow for "https" or did you just setup the endpoint as https? You need to follow through the whole guide and configure keystone correctly before moving to Nova/Glance.

mpetason gravatar imagempetason ( 2014-09-18 17:28:54 -0600 )edit

See what the difference is:

grep -i keystone /etc/nova/nova.conf

then

grep -i keystone /etc/glance/glance*
mpetason gravatar imagempetason ( 2014-09-18 17:42:39 -0600 )edit

... I can't find those files. I installed them through

sudo pip install python-novaclient python-glanceclient

jameschao gravatar imagejameschao ( 2014-09-18 17:55:35 -0600 )edit

Edit the question as you go on debugging: it makes the question readable. Comments are not as readable.

smaffulli gravatar imagesmaffulli ( 2014-09-18 18:44:09 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-09-18 16:02:41 -0600

mpetason gravatar image

See what this outputs:

keystone user-list

The error is about connecting to keystone on localhost port 5000. Check your configuration in nova to see what you are using for the AUTH_URL and then use the same for glance.

edit flag offensive delete link more
0

answered 2014-10-21 02:17:29 -0600

Having the same exact issue, I ended up in finding that I was not pointing the right identity port. You likely have to set :

OS_AUTH_URL=https://keystone.example.com:35357/v2.0

Up to recent versions of the glance client, the 5000 port was fine, as for every other single openstack client...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-18 12:38:34 -0600

Seen: 4,626 times

Last updated: Sep 18 '14