Ask Your Question
0

Glance registry failed to come-up. Identity service unable to communicate [closed]

asked 2013-12-03 03:23:40 -0500

shivaji gravatar image

updated 2013-12-04 19:47:14 -0500

dheeru gravatar image

I am getting error when I try to add image

[root@rstmgr01 images]# glance --os-username=admin --os-password=password --os-tenant-name=demo --os-auth-url=http://rstmgr01.rchland.ibm.com:5000/v2.0 image-create --name="Fedora1" --disk-format=qcow2 --container-format bare < Fedora-x86_64-19-20130627-sda.qcow2 Unable to communicate with identity service: {"error": {"message": "Invalid project", "code": 401, "title": "Not Authorized"}}. (HTTP 401)

[root@rstmgr01 images]# glance image-list Unable to communicate with identity service: {"error": {"message": "Invalid project", "code": 401, "title": "Not Authorized"}}. (HTTP 401)

[root@rstmgr01 images]# ls Fedora-x86_64-19-20130627-sda.qcow2 isd lost+found openstack sce31 sce_x vmcontrol

[root@rstmgr01 images]# glance image-create --is-public true --disk-format qcow2 --container-format bare --name "Fedora" < Fedora-x86_64-19-20130627-sda.qcow2 Unable to communicate with identity service: {"error": {"message": "Inva

Any idea what could be the reason

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2013-12-04 19:45:28.289109

4 answers

Sort by ยป oldest newest most voted
0

answered 2013-12-03 03:27:21 -0500

dheeru gravatar image

updated 2013-12-04 10:35:12 -0500

glance-registry was not strarting. It was giving access denied for sql like follows.
Error configuring registry database with supplied sql_connection. Got error: (OperationalError) (1045, "Access denied for user 'glance'@'rstmgr01.rchland.ibm.com' (using password: YES)") None None

We executed the following statements to clear this error.
mysql -uroot -p
drop glance;

Followed the instruction as given in following to link to create db.

http://docs.openstack.org/havana/install-guide/install/apt/content/glance-install.html After this registry started coming up.

glance-api was starting successfully always. 

Post this we are able to see the image creation going on.
===============================================
Can you check your identify service is running ?
What is your configuration in glance.conf ?

    Can you send the following details
    keystone user-list
    keystone tenant-list
    keystone role-list
    keystone endpoint-list
    keystone service-list
edit flag offensive delete link more
0

answered 2013-12-03 04:04:30 -0500

shivaji gravatar image

[root@rstmgr01 log]# keystone user-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------------------------------+----------+---------+---------------------+ | id | name | enabled | email | +----------------------------------+----------+---------+---------------------+ | 6539d2268d9d44ff8c1d3a60ac07a2c7 | admin | True | sbhosale@in.ibm.com | | f13880277de94d1ab14f86eb1c765744 | cinder | True | sbhosale@in.ibm.com | | bbc0c69328fc43aeb1e0d1269c0d4dec | glance | True | sbhosale@in.ibm.com | | b9224049bc634727bc16360f1c745919 | nova | True | sbhosale@in.ibm.com | | 88dab20a7706446fbb1e43d45dea0b88 | quantum | True | sbhosale@in.ibm.com | | b0b7b4e128eb4a8787a313b69479c33f | sbhosale | True | sbhosale@in.ibm.com | +----------------------------------+----------+---------+---------------------+ [root@rstmgr01 log]# keystone tenant-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------------------------------+---------+---------+ | id | name | enabled | +----------------------------------+---------+---------+ | b370cf14c4f4428d947056610c3282fe | admin | True | | f514cb4a1af6431091ab8bec66602933 | demo | True | | 6f0403fb7c6543089874d9ca7ce2dba6 | service | True | +----------------------------------+---------+---------+ [root@rstmgr01 log]# keystone role-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------------------------------+----------+ | id | name | +----------------------------------+----------+ | ca7f5abe379a4f2e8de6b1d05e1df360 | Member | | 9fe2ff9ee4384b1894a90878d3e92bab | _member_ | | 5d191d02816246969868e19bee56c3e4 | admin | +----------------------------------+----------+ [root@rstmgr01 log]# keystone endpoint-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------------------------------+-----------+-------------------------------------------------------+-------------------------------------------------------+-------------------------------------------------------+----------------------------------+ | id | region | publicurl | internalurl | adminurl | service_id | +----------------------------------+-----------+-------------------------------------------------------+-------------------------------------------------------+-------------------------------------------------------+----------------------------------+ | 0ae676196b2c47a08f4d96464493e4a0 | RegionOne | http://rstmgr01.rchland.ibm.com:8776/v1/$(tenant_id)s | http://rstmgr01.rchland.ibm.com:8776/v1/$(tenant_id)s | http://rstmgr01.rchland.ibm.com:8776/v1/$(tenant_id)s | 93a50d4bf8624554949967d7ccfeba28 | | 48de6d390a844a2ab8a8757db1e7f8ac | RegionOne | http://rstmgr01.rchland.ibm.com:9292 | http://rstmgr01.rchland.ibm.com:9292 | http://rstmgr01.rchland.ibm.com:9292 | a63286c42a7545a8ad6db44463c38624 | | 54412bdb2f2447448670c2c5f52e7f52 | RegionOne | http://rstmgr01.rchland.ibm.com:8773/services/Cloud | http://rstmgr01.rchland.ibm.com:8773/services/Cloud | http://rstmgr01.rchland.ibm.com:8773/services/Admin | 6fb578cf573b42569ae709493499eb2e | | 55f9eaafe8774cc2adccc3c230c263a2 | RegionOne | http://rstmgr01.rchland.ibm.com:5000/v2.0 | http://rstmgr01.rchland.ibm.com:5000/v2.0 | http://rstmgr01.rchland.ibm.com:35357/v2.0 | b2ff70dd83d94000a66ec888d88a2ab4 | | 6acbd4ffea9f40bc8ba5cc296ef887a0 | RegionOne | http://10.10.10.10:8776/v1/$(tenant_id)s | http://10.10.10.10:8776/v1/$(tenant_id)s | http://10.10.10.10:8776/v1/$(tenant_id)s | 1f6d4fb4b4cd4ffea2922f983169e0ae | | 7d48915a29654484b10b65f6091937f3 | RegionOne | http://10.10.10.10:8773/services/Cloud | http://10.10.10.10:8773/services/Cloud | http://10.10.10.10:8773/services/Admin | da7f93391b41429ab7b59e6acd0c3d60 | | 85ddf90e9d264257a0a8c4a080331fca | RegionOne | http://10.10.10.10:8774/v2/$(tenant_id)s | http://10.10.10.10:8774/v2/$(tenant_id)s | http://10.10.10.10:8774/v2/$(tenant_id)s | 05926b1e128b4a84bc346237f34da4ce | | 9d91a3ebd35847c484f4d8fd2fef6765 | RegionOne | http://10.10.10.10:5000/v2.0 | http://10.10.10.10:5000/v2.0 | http://10.10.10.10:35357/v2.0 | beb9a806b48b41919c3a07898055d6ea | | d14af17bbab3445c98cc96ec8160a004 | RegionOne | http://rstmgr01.rchland.ibm.com:8774/v2/$(tenant_id)s | http://rstmgr01.rchland.ibm.com:8774/v2/$(tenant_id)s | http://rstmgr01.rchland.ibm.com:8774/v2/$(tenant_id)s | ec3b99fb80f54f1987daabf9bc4b085f | | e5973c33ef3743179b5020bc79129159 | RegionOne | http://10.10.10.10:9292 | http://10.10.10.10:9292 | http://10.10.10.10:9292 | 7dd8388eb46c4174bed36840b3bf28aa | +----------------------------------+-----------+-------------------------------------------------------+-------------------------------------------------------+-------------------------------------------------------+----------------------------------+ [root@rstmgr01 log]# ketstone user-list -bash: ketstone: command not found [root@rstmgr01 log]# keystone endpoint-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------------------------------+-----------+-------------------------------------------------------+-------------------------------------------------------+-------------------------------------------------------+----------------------------------+ | id | region | publicurl | internalurl | adminurl | service_id | +----------------------------------+-----------+-------------------------------------------------------+-------------------------------------------------------+-------------------------------------------------------+----------------------------------+ | 0ae676196b2c47a08f4d96464493e4a0 | RegionOne | http://rstmgr01.rchland.ibm.com:8776/v1/$(tenant_id)s | http://rstmgr01.rchland.ibm.com:8776/v1/$(tenant_id)s | http://rstmgr01.rchland.ibm.com:8776/v1/$(tenant_id)s | 93a50d4bf8624554949967d7ccfeba28 | | 48de6d390a844a2ab8a8757db1e7f8ac | RegionOne | http://rstmgr01.rchland.ibm.com:9292 | http://rstmgr01.rchland.ibm.com:9292 | http://rstmgr01.rchland.ibm.com:9292 | a63286c42a7545a8ad6db44463c38624 | | 54412bdb2f2447448670c2c5f52e7f52 | RegionOne | http://rstmgr01.rchland.ibm ... (more)

edit flag offensive delete link more
0

answered 2013-12-03 13:44:06 -0500

shivaji gravatar image

Thanks Dheeru for resolving my issue on glance registry

edit flag offensive delete link more
0

answered 2013-12-04 18:42:31 -0500

shivaji gravatar image

I would like to give Special Thanks to Dheeru who worked with me for couple of hours to resolve the isssue. My Glance setup is working fine now.

Thank U Dheeru

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-12-03 03:23:40 -0500

Seen: 632 times

Last updated: Dec 04 '13