Revision history [back]

click to hide/show revision 1
initial version

glance error no.111 connection refused

I'm installing OpenStack Rocky on Ubuntu 18.04 by following the installation guide. Ref: https://docs.openstack.org/glance/rocky/install/install-ubuntu.html

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      -

glance error no.111 connection refused

I'm installing OpenStack Rocky on Ubuntu 18.04 by following the installation guide. Ref: https://docs.openstack.org/glance/rocky/install/install-ubuntu.html

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      -

Output from "openstack endpoint list"

controller:~$ openstack endpoint list
+----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------+
| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                        |
+----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------+
| 0d2115e41fec4ee6b772188c933e0d7f | RegionOne | keystone     | identity     | True    | internal  | http://controller:5000/v3/ |
| 5c14f0959b7648e9a22442701e1802b6 | RegionOne | keystone     | identity     | True    | public    | http://controller:5000/v3/ |
| 7e18e9a214914925be0368459aec69f7 | RegionOne | keystone     | identity     | True    | admin     | http://controller:5000/v3/ |
| b1aeb5161cd44a29bd09f6a4717b67f8 | RegionOne | glance       | image        | True    | internal  | http://controller:9292     |
| c26124128a554ff585e48811c51ed9f8 | RegionOne | glance       | image        | True    | public    | http://controller:9292     |
| f07cf7351dea4a9a9eba6f3011e15234 | RegionOne | glance       | image        | True    | admin     | http://controller:9292     |
+----------------------------------+-----------+--------------+--------------+---------+-----------+----------------------------+