Error communicating with http://controler:9292 [Errno 111] Connection refused

asked 2014-07-30 08:27:08 -0600

Robert gravatar image

updated 2014-07-30 13:59:57 -0600

smaffulli gravatar image

When I want to use glance CLI I get error:

Error communicating with http://controler:9292 [Errno 111] Connection refused

I have set up conf files as in this tutorial http://docs.openstack.org/icehouse/in... . I have also create glance user, glance database and grant all privileges on database.

I am runing icehouse. I have glance --version 0.12.0. I think there is no command service openstack-glance-api status -l.

root@controler:/home/controleruser# netstat -antp | grep 9292
root@controler:/home/controleruser# ps -ef |grep 1546
root    9438  27489 0 07:35 tty1 00:00:00 grep coloer --coloer=auto 1546 (/* colored red */)
root@controler:/home/controleruser# service openstack-galnce-api status -l
openstack-glance-api: unrecognized service
root@controler:/home/controleruser# $service glance-api status 
glance-api start/running, process 5067
root@controler:/home/controleruser#$service glance-api status-l
glance-api: unrecognized service

I have also noticed that I can not ping google.com or www.google.com . I get message unkown host, but I have not changed any of network configurations. Is this problem with the comunication with mysql database or?

I do not know what is the problem now.

edit retag flag offensive close merge delete

Comments

When I type netstat -antp | grep 9292 I get nothing. I would like to learn what exactly this error means?

Robert gravatar imageRobert ( 2014-07-30 09:31:22 -0600 )edit

It's a fair . You have a problem with service openstack-glance-api.
Run 2 commands
# iptables-save | grep 9292
# service openstack-glance-api status

dbaxps gravatar imagedbaxps ( 2014-07-30 10:00:37 -0600 )edit

Those instruction I have run are below. If I run iptables-save | grep 9292 I get nothing and If I run service glance-api status I get glance-api start/running, process 15568. As I mentioned before I can't ping google.com or www.google.com . I can ping my ESXI which is on 192.168.186.140. And I haven't made any configuration for networking.

Robert gravatar imageRobert ( 2014-07-30 10:11:09 -0600 )edit

1 answer

Sort by » oldest newest most voted
2

answered 2014-07-30 08:37:23 -0600

dbaxps gravatar image

updated 2014-07-30 14:01:31 -0600

smaffulli gravatar image

Check step by step:-

[root@icehouse1 ~(keystone_admin)]# netstat -antp | grep 9292
tcp        0      0 0.0.0.0:9292            0.0.0.0:*               LISTEN      1546/python         
[root@icehouse1 ~(keystone_admin)]# ps -ef | grep 1546
glance    1546     1  0 10:10 ?        00:00:00 /usr/bin/python /usr/bin/glance-api
glance    5151  1546  0 10:10 ?        00:00:03 /usr/bin/python /usr/bin/glance-api
glance    5152  1546  0 10:10 ?        00:00:03 /usr/bin/python /usr/bin/glance-api
root     25302  6653  0 17:35 pts/0    00:00:00 grep --color=auto 1546
[root@icehouse1 ~(keystone_admin)]# service openstack-glance-api status -l
Redirecting to /bin/systemctl status  -l openstack-glance-api.service
openstack-glance-api.service - OpenStack Image Service (code-named Glance) API server
   Loaded: loaded (/usr/lib/systemd/system/openstack-glance-api.service; enabled)
   Active: active (running) since Wed 2014-07-30 10:10:04 MSK; 7h ago
 Main PID: 1546 (glance-api)
   CGroup: /system.slice/openstack-glance-api.service
           ├─1546 /usr/bin/python /usr/bin/glance-api
           ├─5151 /usr/bin/python /usr/bin/glance-api
           └─5152 /usr/bin/python /usr/bin/glance-api

Jul 30 10:10:04 icehouse1.localdomain systemd[1]: Started OpenStack Image Service (code-named Glance) API server.

Make sure you have port 9292 via ipv4 iptables firewall open:

# iptables -A INPUT -p tcp --dport 9292 -j ACCEPT
# service iptables save
# service iptables restart
# service glance-api restart
# netstat -antp | grep 9292
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-07-30 08:27:08 -0600

Seen: 3,797 times

Last updated: Jul 30 '14