glance error no.111 connection refused

asked 2018-12-15 13:10:17 -0600

anonymous user

Anonymous

updated 2018-12-15 16:02:21 -0600

I'm installing OpenStack Rocky on Ubuntu 18.04 by following the installation guide. Ref: https://docs.openstack.org/glance/roc...

After I installed glance and trying to import Cirros image into glance, OpenStack client returned error no. 111 (Connection Refused).


Full Error Message:

controller:~$ openstack image create "cirros"   --file cirros-0.4.0-x86_64-disk.img   --disk-format qcow2 --container-format bare   --public
Error finding address for http://controller:9292/v2/schemas/image: HTTPConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/schemas/image (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0e4da5fd10>: Failed to establish a new connection: [Errno 111] Connection refused',))

After I checked opened port by using "netstat -ntap", I found that glance on port 9292 is not listening. And firewall is not enable.

controller:~$ netstat -tapn
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:4369            0.0.0.0:*               LISTEN      -                   
tcp        0      0 127.0.0.1:5939          0.0.0.0:*               LISTEN      -                   
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      -                   
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      -                   
tcp        0      0 0.0.0.0:9191            0.0.0.0:*               LISTEN      -                   
tcp        0      0 0.0.0.0:25672           0.0.0.0:*               LISTEN      -                   
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      -                   
tcp        0      0 127.0.0.1:4369          127.0.0.1:55081         ESTABLISHED -                   
tcp        0      0 192.168.11.90:38012     37.252.244.147:5938     ESTABLISHED -                   
tcp        0      0 127.0.0.1:5939          127.0.0.1:44956         ESTABLISHED -                   
tcp        0      0 127.0.0.1:55081         127.0.0.1:4369          ESTABLISHED -                   
tcp        0      0 10.81.1.3:58340         10.81.1.3:3306          ESTABLISHED -                   
tcp        0      0 127.0.0.1:5939          127.0.0.1:45000         ESTABLISHED -                   
tcp        0      0 10.81.1.3:3306          10.81.1.3:58338         ESTABLISHED -                   
tcp        0      0 127.0.0.1:44956         127.0.0.1:5939          ESTABLISHED 2215/               
tcp        0      0 127.0.0.1:45000         127.0.0.1:5939          ESTABLISHED 3706/TeamViewer_Des 
tcp        0      0 10.81.1.3:58338         10.81.1.3:3306          ESTABLISHED -                   
tcp        0      0 10.81.1.3:36232         37.252.229.164:5938     ESTABLISHED -                   
tcp        0      0 10.81.1.3:4369          10.81.1.3:53627         TIME_WAIT   -                   
tcp        0      0 127.0.0.1:5939          127.0.0.1:45002         ESTABLISHED -                   
tcp        0      0 127.0.0.1:45002         127.0.0.1:5939          ESTABLISHED 3743/TeamViewer_Des 
tcp        0      0 10.81.1.3:3306          10.81.1.3:58340         ESTABLISHED -                   
tcp6       0      0 :::80                   :::*                    LISTEN      -                   
tcp6       0      0 :::4369                 :::*                    LISTEN      -                   
tcp6       0      0 ::1:631                 :::*                    LISTEN      -                   
tcp6       0      0 :::5672                 :::*                    LISTEN      -                   
tcp6       0      0 :::5000                 :::*                    LISTEN ...
(more)
edit retag flag offensive close merge delete

Comments

Is Glance running? If not, find error messages in the Glance log.

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-15 16:01:26 -0600 )edit

Hi,

Glance is running.

I found myself misconfig for keystone_authtoken.username and keystone_authtoken.password. I put them in the wrong section.

Now, my glance is functional.

codesonteen gravatar imagecodesonteen ( 2018-12-16 02:38:57 -0600 )edit