'Openstack does not open listening port for deploying request via command line
I have successfully installed openstack via ./stack.sh after git clone https://opendev.org/openstack/devstack -b stable/queens (queens version)
But I cannot deploy any request to openstack server via command such as
openstack security group list
even I have already defined
export OS_AUTH_URL=http://10.0.2.15:5000/v3
The error shows up is
Failed to discover available identity versions when contacting http://10.0.2.15:35357/v3. Attempting to parse version from URL.
Unable to establish connection to http://10.0.2.15:35357/v3/auth/tokens: HTTPConnectionPool(host='10.0.2.15', port=35357): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4967ba4950>: Failed to establish a new connection: [Errno 111] Connection refused',))
I still can interact with openstack via web http://10.0.2.15 but I prefer to use command. When I check vi netstat, I did not see any listening port 5000 or even 35357 which I found in some other answer.
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 697/cupsd
tcp 0 0 127.0.0.1:42523 0.0.0.0:* LISTEN 21546/nova-api-meta
tcp 0 0 0.0.0.0:3260 0.0.0.0:* LISTEN 26148/tgtd
tcp 0 0 0.0.0.0:6080 0.0.0.0:* LISTEN 22126/python
tcp 0 0 0.0.0.0:9696 0.0.0.0:* LISTEN 11062/python
tcp 0 0 127.0.0.1:4038 0.0.0.0:* LISTEN 12803/python
tcp 0 0 0.0.0.0:8775 0.0.0.0:* LISTEN 21546/nova-api-meta
tcp 0 0 0.0.0.0:9191 0.0.0.0:* LISTEN 7865/python
tcp 0 0 127.0.0.1:60999 0.0.0.0:* LISTEN 8594/glance-apiuWSG
tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN 21250/beam
tcp 0 0 127.0.0.1:6633 0.0.0.0:* LISTEN 13100/python
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 12301/mysqld
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 15296/memcached
tcp 0 0 10.0.2.15:2379 0.0.0.0:* LISTEN 13889/etcd
tcp 0 0 127.0.0.1:6640 0.0.0.0:* LISTEN 15266/ovsdb-server
tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN 21206/epmd
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 1521/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 6792/sshd
tcp6 0 0 ::1:631 :::* LISTEN 697/cupsd
tcp6 0 0 :::3260 :::* LISTEN 26148/tgtd
tcp6 0 0 :::5672 :::* LISTEN 21250/beam
tcp6 0 0 :::2380 :::* LISTEN 13889/etcd
tcp6 0 0 :::80 :::* LISTEN 21650/apache2
tcp6 0 0 :::4369 :::* LISTEN 21206/epmd
tcp6 0 0 :::22 :::* LISTEN 6792/sshd
What is the missing steps that I need to do to enable listening port of openstack to send requests via commandline? Thanks.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|