Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Wrong Keystone os_auth_url being used for Stein nova client calls

Installed Stein controller/ compute
CentOS 7.6

Everything but Nova Client calls working. So I am seeing this in nova-api.log

openstack server list

==> nova-api.log <==

2019-05-14 15:02:27.899 22856 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.httpconnection object="" at="" 0x7f394e3855d0="">: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)): ConnectFailure: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.httpconnection object="" at="" 0x7f394e3855d0="">: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)) 2019-05-14 15:02:27.901 22856 INFO nova.osapi_compute.wsgi.server [-] 192.168.128.181 "GET /v2.1/servers/detail HTTP/1.1" status: 503 len: 498 time: 0.0042300

I have no idea where it is getting this endpoint from http://127.0.0.1:35357 ?

Port 35357 has been deprecated. Anyone any idea what I've missed? I've pretty much grepped the file system for 35357, without discovering where this is coming from.

env | grep OS
OS_PROJECT_DOMAIN_ID=default
OS_REGION_NAME=RegionOne
OS_USER_DOMAIN_NAME=Default
OS_PROJECT_NAME=admin
OS_IDENTITY_API_VERSION=3
OS_PASSWORD=admin
OS_AUTH_URL=http://controller:5000/v3
OS_USERNAME=admin
OS_INTERFACE=public
OS_PROJECT_DOMAIN_NAME=Default

Same error when using Horizon

/etc/openstack-dashboard/local_settings

OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST

cat /etc/hosts

192.168.128.181 controller

Wrong Keystone os_auth_url being used for Stein nova client calls

Installed Stein controller/ compute
CentOS 7.6

Everything but Nova Client calls working. So I am seeing this in nova-api.log

openstack server list

==> nova-api.log <==

2019-05-14 15:02:27.899 22856 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.httpconnection object="" at="" 0x7f394e3855d0="">: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)): ConnectFailure: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.httpconnection object="" at="" 0x7f394e3855d0="">: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)) 2019-05-14 15:02:27.901 22856 INFO nova.osapi_compute.wsgi.server [-] 192.168.128.181 "GET /v2.1/servers/detail HTTP/1.1" status: 503 len: 498 time: 0.0042300

I have no idea where it is getting this endpoint from http://127.0.0.1:35357 ?

Port 35357 has been deprecated. Anyone any idea what I've missed? I've pretty much grepped the file system for 35357, without discovering where this is coming from.

env | grep OS
OS_PROJECT_DOMAIN_ID=default
OS_REGION_NAME=RegionOne
OS_USER_DOMAIN_NAME=Default
OS_PROJECT_NAME=admin
OS_IDENTITY_API_VERSION=3
OS_PASSWORD=admin
OS_AUTH_URL=http://controller:5000/v3
OS_USERNAME=admin
OS_INTERFACE=public
OS_PROJECT_DOMAIN_NAME=Default

Same error when using Horizon

/etc/openstack-dashboard/local_settings

OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST

cat /etc/hosts

192.168.128.181 controller

nova.conf (unused sections omitted)

[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:openstack@controller
my_ip = 192.168.128.181
use_neutron = true
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[api]
auth_strategy = keystone
[api_database]
connection = mysql+pymysql://nova:nova@controller/nova_api
[database]
connection = mysql+pymysql://nova:nova@controller/nova
[glance]
api_servers = http://controller:9292
[keystone]
auth_url = http://controller:5000/v3
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = nova
[keystone_authtoken]
[libvirt]
virt_type = kvm
[neutron]
url = http://controller:9696
auth_url = http://controller:5000
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = neutron
service_metadata_proxy = true
metadata_proxy_shared_secret = openstack
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[placement]
region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:5000/v3
username = placement
password = placement
[placement_database]
connection = mysql+pymysql://placement:placement@controller/placement
[scheduler]
discover_hosts_in_cells_interval = 300
[vnc]
enabled = true
server_listen = $my_ip
server_proxyclient_address = $my_ip

Wrong Keystone os_auth_url being used for Stein nova client calls

Installed Stein controller/ compute
CentOS 7.6

Everything but Nova Client calls working. So I am seeing this in nova-api.log

openstack server list

==> nova-api.log <==

2019-05-14 15:02:27.899 22856 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.httpconnection object="" at="" 0x7f394e3855d0="">: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)): ConnectFailure: Unable to establish connection to http://127.0.0.1:35357: HTTPConnectionPool(host='127.0.0.1', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.httpconnection object="" at="" 0x7f394e3855d0="">: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)) 2019-05-14 15:02:27.901 22856 INFO nova.osapi_compute.wsgi.server [-] 192.168.128.181 "GET /v2.1/servers/detail HTTP/1.1" status: 503 len: 498 time: 0.0042300

I have no idea where it is getting this endpoint from http://127.0.0.1:35357 ?

Port 35357 has been deprecated. Anyone any idea what I've missed? I've pretty much grepped the file system for 35357, without discovering where this is coming from.

env | grep OS
OS_PROJECT_DOMAIN_ID=default
OS_REGION_NAME=RegionOne
OS_USER_DOMAIN_NAME=Default
OS_PROJECT_NAME=admin
OS_IDENTITY_API_VERSION=3
OS_PASSWORD=admin
OS_AUTH_URL=http://controller:5000/v3
OS_USERNAME=admin
OS_INTERFACE=public
OS_PROJECT_DOMAIN_NAME=Default

Same error when using Horizon

/etc/openstack-dashboard/local_settings

OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST

cat /etc/hosts

192.168.128.181 controller

nova.conf (unused sections omitted)

[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:openstack@controller
my_ip = 192.168.128.181
use_neutron = true
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[api]
auth_strategy = keystone
[api_database]
connection = mysql+pymysql://nova:nova@controller/nova_api
[database]
connection = mysql+pymysql://nova:nova@controller/nova
[glance]
api_servers = http://controller:9292
(re-edited to chow my mistake) > [keystone]
auth_url = http://controller:5000/v3
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = nova
[keystone_authtoken]
[libvirt]
virt_type = kvm
[neutron]
url = http://controller:9696
auth_url = http://controller:5000
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = neutron
service_metadata_proxy = true
metadata_proxy_shared_secret = openstack
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[placement]
region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:5000/v3
username = placement
password = placement
[placement_database]
connection = mysql+pymysql://placement:placement@controller/placement
[scheduler]
discover_hosts_in_cells_interval = 300
[vnc]
enabled = true
server_listen = $my_ip
server_proxyclient_address = $my_ip

[libvirt]