Unable to establish connection to http:/controller:8774/v2.1/flavors/detail

Bug #1833207 reported by Jagatjot Singh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
keystoneauth
Invalid
Undecided
Unassigned

Bug Description

Openstack version - pike Installation process - multinode kolla

I am observing an error as Unable to establish connection to http://controller:8774/v2.1/flavors/detail. Also, it gives error as " keystoneauth1.exceptions.connection.ConnectFailure" However, this error is not regular and that is why I am not finding an exact solution. Can anybody help what can be the issue?

I tried changing the timeout values but still observing the errors.

Please find the log details below-
test_deploy_instance_with_new_network_and_associate_public_ip: keystoneauth1.exceptions.connection.ConnectFailure
Details
Unable to establish connection to http://x.x.x.x:8774/v2.1/flavors/detail
-------------------- >> begin captured logging << --------------------
2019-06-18 02:58:57,771 UTC - novaclient.v2.client - DEBUG - REQ: curl -g -i -X POST http://x.x.x.x:8774/v2.1/os-floating-ips -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}a5d86ad5acd12270ed853ac14def49fe4623de2a" -d '{"pool": "public-ext-net-01"}'
2019-06-18 02:58:59,812 UTC - novaclient.v2.client - DEBUG - RESP: [200] Content-Length: 156 Content-Type: application/json Openstack-Api-Version: compute 2.1 X-Openstack-Nova-Api-Version: 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Openstack-Request-Id: req-d1e60af2-c12f-470e-8be0-9b4ce3802fc6 X-Compute-Request-Id: req-d1e60af2-c12f-470e-8be0-9b4ce3802fc6 Date: Tue, 18 Jun 2019 02:59:55 GMT
RESP BODY: {"floating_ip": {"instance_id": null, "ip": "x.x.x.", "fixed_ip": null, "id": "50ea4ee8-9e15-450a-8655-9a10691199d0", "pool": "public-ext-net-01"}}

2019-06-18 02:58:59,812 UTC - novaclient.v2.client - DEBUG - POST call to compute for http://x.x.x.x:8774/v2.1/os-floating-ips used request id req-d1e60af2-c12f-470e-8be0-9b4ce3802fc6
2019-06-18 02:58:59,813 UTC - TestCase - DEBUG - Allocated IP x.x.x.x: 50ea4ee8-9e15-450a-8655-9a10691199d0
2019-06-18 02:59:05,780 UTC - TestCase - DEBUG - Created router fe6c8adf-b9a0-4448-8445-cea8140b36b3
2019-06-18 02:59:05,780 UTC - TestCase - DEBUG - {u'status': u'ACTIVE', u'external_gateway_info': {u'network_id': u'b5216ad0-0dbe-4dd1-aa9a-3b08dadecb0d', u'enable_snat': True, u'external_fixed_ips': [{u'subnet_id': u'656c4ade-52b2-4e20-ac61-27c5e622fb79', u'ip_address': u'x.x.x.x'}]}, u'availability_zone_hints': [], u'availability_zones': [], u'description': u'', u'tags': [], u'tenant_id': u'8368995edf4042da9df4fb3ddcd45d89', u'created_at': u'2019-06-18T02:59:53Z', u'admin_state_up': True, u'updated_at': u'2019-06-18T02:59:54Z', u'flavor_id': None, u'revision_number': 2, u'routes': [], u'project_id': u'8368995edf4042da9df4fb3ddcd45d89', u'id': u'fe6c8adf-b9a0-4448-8445-cea8140b36b3', u'name': u'testing_router_public_ip_20190618025859'}
2019-06-18 02:59:06,352 UTC - TestCase - DEBUG - Created network 634c5c4b-e0df-4495-b375-76adedad9cf8
2019-06-18 02:59:07,240 UTC - TestCase - DEBUG - Created subnet sub-testing_network_20190618025859
2019-06-18 02:59:07,240 UTC - TestCase - DEBUG - {u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2019-06-18T03:00:01Z', u'ipv6_address_scope': None, u'is_default': False, u'revision_number': 2, u'port_security_enabled': True, u'id': u'634c5c4b-e0df-4495-b375-76adedad9cf8', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'name': u'testing_network_20190618025859', u'admin_state_up': True, u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'634c5c4b-e0df-4495-b375-76adedad9cf8', u'tenant_id': u'8368995edf4042da9df4fb3ddcd45d89', u'created_at': u'2019-06-18T03:00:00Z', u'dns_nameservers': [u'8.8.8.8'], u'updated_at': u'2019-06-18T03:00:00Z', u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.250.137.2', u'end': u'10.250.137.254'}], u'gateway_ip': u'10.250.137.1', u'revision_number': 0, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.250.137.0/24', u'project_id': u'8368995edf4042da9df4fb3ddcd45d89', u'id': u'b41345ce-344a-492f-84e9-793d1e8c2f49', u'subnetpool_id': None, u'name': u'sub-testing_network_20190618025859'}, u'tenant_id': u'8368995edf4042da9df4fb3ddcd45d89', u'created_at': u'2019-06-18T03:00:01Z', u'mtu': 1450, u'ipv4_address_scope': None, u'shared': False, u'project_id': u'8368995edf4042da9df4fb3ddcd45d89'}
2019-06-18 02:59:09,598 UTC - TestCase - DEBUG - Linked subnet 'b41345ce-344a-492f-84e9-793d1e8c2f49' to router fe6c8adf-b9a0-4448-8445-cea8140b36b3
2019-06-18 02:59:09,599 UTC - novaclient.v2.client - DEBUG - REQ: curl -g -i -X GET http://x.x.x.x:8774/v2.1/flavors/detail -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}a5d86ad5acd12270ed853ac14def49fe4623de2a"
--------------------- >> end captured logging << ---------------------
Traceback
Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 318, in run
    testMethod()
  File "/var/lib/jenkins/workspace/fiware-health/fiware-region-sanity-tests/tests/fiware_region_with_networks_tests.py", line 489, in test_deploy_instance_with_new_network_and_associate_public_ip
    network_name=network_name, is_network_new=False)
  File "/var/lib/jenkins/workspace/fiware-health/fiware-region-sanity-tests/tests/fiware_region_with_networks_tests.py", line 64, in __deploy_instance_helper__
    flavor_id = self.nova_operations.get_any_flavor_id()
  File "/var/lib/jenkins/workspace/fiware-health/fiware-region-sanity-tests/commons/nova_operations.py", line 69, in get_any_flavor_id
    flavor_list = self.get_flavor_list()
  File "/var/lib/jenkins/workspace/fiware-health/fiware-region-sanity-tests/commons/nova_operations.py", line 60, in get_flavor_list
    flavor_list = self.client.flavors.list()
  File "/var/lib/jenkins/venv/fiware-region-sanity-tests/lib/python2.7/site-packages/novaclient/v2/flavors.py", line 132, in list
    return self._list("/flavors%s%s" % (detail, query_string), "flavors")
  File "/var/lib/jenkins/venv/fiware-region-sanity-tests/lib/python2.7/site-packages/novaclient/base.py", line 242, in _list
    resp, body = self.api.client.get(url)
  File "/var/lib/jenkins/venv/fiware-region-sanity-tests/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 187, in get
    return self.request(url, 'GET', **kwargs)
  File "/var/lib/jenkins/venv/fiware-region-sanity-tests/lib/python2.7/site-packages/novaclient/client.py", line 107, in request
    **kwargs)
  File "/var/lib/jenkins/venv/fiware-region-sanity-tests/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 344, in request
    resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
  File "/var/lib/jenkins/venv/fiware-region-sanity-tests/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 112, in request
    return self.session.request(url, method, **kwargs)
  File "/var/lib/jenkins/venv/fiware-region-sanity-tests/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
  File "/var/lib/jenkins/venv/fiware-region-sanity-tests/lib/python2.7/site-packages/keystoneclient/session.py", line 404, in request
    resp = send(**kwargs)
  File "/var/lib/jenkins/venv/fiware-region-sanity-tests/lib/python2.7/site-packages/keystoneclient/session.py", line 448, in _send_request
    raise exceptions.ConnectionRefused(msg)
ConnectFailure: Unable to establish connection to http://x.x.x.x:8774/v2.1/flavors/detail
-------------------- >> begin captured logging << --------------------
2019-06-18 02:58:57,771 UTC - novaclient.v2.client - DEBUG - REQ: curl -g -i -X POST http://x.x.x.x:8774/v2.1/os-floating-ips -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}a5d86ad5acd12270ed853ac14def49fe4623de2a" -d '{"pool": "public-ext-net-01"}'
2019-06-18 02:58:59,812 UTC - novaclient.v2.client - DEBUG - RESP: [200] Content-Length: 156 Content-Type: application/json Openstack-Api-Version: compute 2.1 X-Openstack-Nova-Api-Version: 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Openstack-Request-Id: req-d1e60af2-c12f-470e-8be0-9b4ce3802fc6 X-Compute-Request-Id: req-d1e60af2-c12f-470e-8be0-9b4ce3802fc6 Date: Tue, 18 Jun 2019 02:59:55 GMT
RESP BODY: {"floating_ip": {"instance_id": null, "ip": "x.x.x.x", "fixed_ip": null, "id": "50ea4ee8-9e15-450a-8655-9a10691199d0", "pool": "public-ext-net-01"}}

2019-06-18 02:58:59,812 UTC - novaclient.v2.client - DEBUG - POST call to compute for http://x.x.x.x:8774/v2.1/os-floating-ips used request id req-d1e60af2-c12f-470e-8be0-9b4ce3802fc6
2019-06-18 02:58:59,813 UTC - TestCase - DEBUG - Allocated IP x.x.x.x: 50ea4ee8-9e15-450a-8655-9a10691199d0
2019-06-18 02:59:05,780 UTC - TestCase - DEBUG - Created router fe6c8adf-b9a0-4448-8445-cea8140b36b3
2019-06-18 02:59:05,780 UTC - TestCase - DEBUG - {u'status': u'ACTIVE', u'external_gateway_info': {u'network_id': u'b5216ad0-0dbe-4dd1-aa9a-3b08dadecb0d', u'enable_snat': True, u'external_fixed_ips': [{u'subnet_id': u'656c4ade-52b2-4e20-ac61-27c5e622fb79', u'ip_address': u'x.x.x.x'}]}, u'availability_zone_hints': [], u'availability_zones': [], u'description': u'', u'tags': [], u'tenant_id': u'8368995edf4042da9df4fb3ddcd45d89', u'created_at': u'2019-06-18T02:59:53Z', u'admin_state_up': True, u'updated_at': u'2019-06-18T02:59:54Z', u'flavor_id': None, u'revision_number': 2, u'routes': [], u'project_id': u'8368995edf4042da9df4fb3ddcd45d89', u'id': u'fe6c8adf-b9a0-4448-8445-cea8140b36b3', u'name': u'testing_router_public_ip_20190618025859'}
2019-06-18 02:59:06,352 UTC - TestCase - DEBUG - Created network 634c5c4b-e0df-4495-b375-76adedad9cf8
2019-06-18 02:59:07,240 UTC - TestCase - DEBUG - Created subnet sub-testing_network_20190618025859
2019-06-18 02:59:07,240 UTC - TestCase - DEBUG - {u'status': u'ACTIVE', u'subnets': [], u'description': u'', u'tags': [], u'updated_at': u'2019-06-18T03:00:01Z', u'ipv6_address_scope': None, u'is_default': False, u'revision_number': 2, u'port_security_enabled': True, u'id': u'634c5c4b-e0df-4495-b375-76adedad9cf8', u'router:external': False, u'availability_zone_hints': [], u'availability_zones': [], u'name': u'testing_network_20190618025859', u'admin_state_up': True, u'subnet': {u'service_types': [], u'description': u'', u'enable_dhcp': True, u'tags': [], u'network_id': u'634c5c4b-e0df-4495-b375-76adedad9cf8', u'tenant_id': u'8368995edf4042da9df4fb3ddcd45d89', u'created_at': u'2019-06-18T03:00:00Z', u'dns_nameservers': [u'8.8.8.8'], u'updated_at': u'2019-06-18T03:00:00Z', u'ipv6_ra_mode': None, u'allocation_pools': [{u'start': u'10.250.137.2', u'end': u'10.250.137.254'}], u'gateway_ip': u'10.250.137.1', u'revision_number': 0, u'ipv6_address_mode': None, u'ip_version': 4, u'host_routes': [], u'cidr': u'10.250.137.0/24', u'project_id': u'8368995edf4042da9df4fb3ddcd45d89', u'id': u'b41345ce-344a-492f-84e9-793d1e8c2f49', u'subnetpool_id': None, u'name': u'sub-testing_network_20190618025859'}, u'tenant_id': u'8368995edf4042da9df4fb3ddcd45d89', u'created_at': u'2019-06-18T03:00:01Z', u'mtu': 1450, u'ipv4_address_scope': None, u'shared': False, u'project_id': u'8368995edf4042da9df4fb3ddcd45d89'}
2019-06-18 02:59:09,598 UTC - TestCase - DEBUG - Linked subnet 'b41345ce-344a-492f-84e9-793d1e8c2f49' to router fe6c8adf-b9a0-4448-8445-cea8140b36b3
2019-06-18 02:59:09,599 UTC - novaclient.v2.client - DEBUG - REQ: curl -g -i -X GET http://x.x.x.x:8774/v2.1/flavors/detail -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}a5d86ad5acd12270ed853ac14def49fe4623de2a"
--------------------- >> end captured logging << ---------------------

description: updated
Revision history for this message
Colleen Murphy (krinkle) wrote :

> ConnectFailure: Unable to establish connection to http://x.x.x.x:8774/v2.1/flavors/detail

This isn't a bug in keystoneauth, it's just saying it can't connect to nova. Check that nova is running and check the nova-api logs for errors.

Changed in keystoneauth:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.