Ask Your Question
0

Issue with nova image-list? [closed]

asked 2014-03-03 01:18:43 -0500

ebyenjoys gravatar image

Hello,

I am following the http://docs.openstack.org/havana/inst...

I got two nodes-192.168.1.70(keystone),192.168.1.75(nova)

I am getting the following errror when i run the nova image list in my nova node.

root@ubuntu:~# nova image-list
OS Password: 
ERROR: HTTPConnectionPool(host='192.168.1.70', port=8774): Max retries exceeded with url: /v2/348606d3fcee4d70b4797c81716c8c11/images/detail (Caused by <class 'socket.error'>: [Errno 111] Connection    refused)

I dunno the above error makes sense or not,the host(192.168.1.70) is keystone and it is oblivious that the port 8774 is not running in it as it is intended for nova.

I have the following outputs for those commands run from my nova node.

root@ubuntu:~# service nova-api status
nova-api start/running, process 778

root@ubuntu:~# keystone user-list
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+----------------------------------+---------+---------+-------+
|                id                |   name  | enabled | email |
+----------------------------------+---------+---------+-------+
| c623f84a16364b2e9b39d85bdb88dd4a |  admin  |   True  |       |
| bc1f3ab5bb384122b997303c0a956d48 |   eby   |   True  |       |
| 0d7f1e224f4441cea8042ac6ef654e98 |  glance |   True  |       |
| ddd1c5d76ca34d8c9ba968b83e7b1eed | glance1 |   True  |       |
| c09d8bf822ff4e8e9aeffd8552ea9a62 |   nova  |   True  |       |
+----------------------------------+---------+---------+-------+

root@ubuntu:~# keystone tenant-list
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+----------------------------------+------------+---------+
|                id                |    name    | enabled |
+----------------------------------+------------+---------+
| 0df50196499b4e3e8ffe9d98bc49516d |   admin    |   True  |
| a2d15ebe04f64ffeac57dc107c228fba | eby-tenant |   True  |
| 348606d3fcee4d70b4797c81716c8c11 |  service   |   True  |
+----------------------------------+------------+---------+

root@ubuntu:~# keystone endpoint-list
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+----------------------------------+-----------+-------------------------------------------+-------------------------------------------+-----------------------------  --------------+----------------------------------+
|                id                |   region  |                 publicurl                 |                internalurl                |                  adminurl                 |            service_id            |
+----------------------------------+-----------+-------------------------------------------+-------------------------------------------+-----------------------------  --------------+----------------------------------+
| 3697ff14e3cb40fb935dcbd45ffd112e | regionOne |          http://192.168.1.60:9292         |           http://192.168.1.60:9292         |          http://192.168.1.60:9292         | af728ad3d517458381235602f7f54b08 |
| 3b68dceefa604effa64f7fb22aba8b78 | regionOne | http://192.168.1.70:8774/v2/%(tenant_id)s |  http://192.168.1.70:8774/v2/%(tenant_id)s | http://192.168.1.70:8774/v2/%(tenant_id)s |  7370673fe5e447f19fc57c39bca1c8b3 |
| 536895602c284518951101da93d37999 | regionOne |          http://192.168.1.65:9292         |           http://192.168.1.65:9292         |          http://192.168.1.65:9292         | cbc9695cec004841b122a389405af96a |
| 746d6c6b436949b89c347cbf1723e7de | regionOne | http://192.168.1.70:8774/v2/%(tenant_id)s |  http://192.168.1.70:8774/v2/%(tenant_id)s | http://192.168.1.70:8774/v2/%(tenant_id)s |  a8f1e3504a554cf790ed039d9194a5c5 |
| 8ad2804b63454fe5a5f4363a03cd206d | regionOne |       http://192.168.1.70:5000/v2.0       |       http://192.168.1.70:5000/v2.0       |       http://192.168.1.70:35357/v2.0      | f20e84999a934d93b53c3bb1ce1865b3 |
| 94f9e326390e40fb9f8c5d0e54e31fc1 | regionOne |          http://192.168.1.60:9292         |          http://192.168.1.60:9292         |          http://192.168.1.60:9292         | 48d46adbb3214c6a8b2d1dfb1efe3c67 |
| 98d237fe2af94c4486efd90525684345 | regionOne |          http://192.168.1.60:9292         |          http://192.168.1.60:9292         |          http://192.168.1.60:9292         | 9057b7241d0e4e75b3cc69051ee2007f |
| fc482e5a1bcf42f9a09617e9ce4e18ee | regionOne | http://192.168.1.75:8774/v2/%(tenant_id)s | http://192.168.1.75:8774/v2/%(tenant_id)s | http://192.168.1.75:8774/v2/%(tenant_id)s | f940e796d34e4c109a2267d18e5919b2 |
+----------------------------------+-----------+-------------------------------------------+-------------------------------------------+----------------------------- --------------+----------------------------------+

root@ubuntu:~# netstat -ntlup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:6080            0.0.0.0:*               LISTEN      783/python      
tcp        0      0 0.0.0.0:8773            0.0.0.0:*               LISTEN      778/python      
tcp        0      0 0.0.0.0:8774            0.0.0.0:*               LISTEN      778/python      
tcp        0      0 0.0.0.0:8775            0.0.0.0:*               LISTEN      778/python      
tcp ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2014-03-03 11:58:30.675164

Comments

eby ping me on gmail. We will kill you and your issue as well :)

dheeru gravatar imagedheeru ( 2014-03-03 01:36:30 -0500 )edit

Do you have 4 glance services? (These are the IDs from your keystone endpoint-list: 9057b7241d0e4e75b3cc69051ee2007f, 48d46adbb3214c6a8b2d1dfb1efe3c67, cbc9695cec004841b122a389405af96a, af728ad3d517458381235602f7f54b08)

JICarretero gravatar imageJICarretero ( 2014-03-03 01:48:58 -0500 )edit

Yes it was a mistake from my side. I did deleted all of them and created a new one.

ebyenjoys gravatar imageebyenjoys ( 2014-03-03 23:04:48 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-03-03 11:56:08 -0500

dheeru gravatar image

updated 2014-03-03 17:47:38 -0500

smaffulli gravatar image

I had long 4 hours marathon chat session with eby. He has three nodes. He has installed node-1:keystone, node-2:glance and node-3:nova services. It was complete mix-up of configuration of keystone , glance and nova. He had define many glance endpoints and compute endpoints. We cleaned up all those and created fresh endpoints. Configured the appropriate keystone and glance host configuration. Everything is working super now.

Here is my blog (sample configuration) if you have installed keystone, glance and controller on different nodes. http://virtual2privatecloud.com/opens...

edit flag offensive delete link more

Comments

Thanks a ton sir,it was awesome and really appreciate for sharing your valuable time for me :)

ebyenjoys gravatar imageebyenjoys ( 2014-03-03 12:04:16 -0500 )edit
2

answered 2014-03-03 11:56:31 -0500

ebyenjoys gravatar image

Issue got solved and all credits goes to Dheeru sir.

i did added the following in my default section of nova.conf in nova node and all went awesome.

glance_host = 192.168.1.60
glance_api_servers=192.168.1.60:9292
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-03-03 01:18:43 -0500

Seen: 391 times

Last updated: Mar 03 '14