when i am trying to launch an instance iam getting this error : "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'keystoneauth1.exceptions.discovery.DiscoveryFailure'> (HTTP 500) (Request-ID: req-ad89f44b-50c5-47b1-b1fb-d6f05bc36298)"

Bug #2024579 reported by hedil sfar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

I did all the steps leading to launch an instance (the environment and the minimal configuration for yoga )
my architecture is composed of 2 nodes controller node and compute node as mentioned i used openstack yoga and kvm as hypervisor and here is the error in the yoga api log:
2023-06-21 13:48:46.271 104498 ERROR nova.api.openstack.wsgi keystoneauth1.exceptions.discovery.DiscoveryFailure: Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. Unable to establish connection to https://controller/identity: HTTPSConnectionPool(host='controller', port=443): Max retries exceeded with url: /identity (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbb95bf5630>: Failed to establish a new connection: [Errno 111] ECONNREFUSED'))
2023-06-21 13:48:46.271 104498 ERROR nova.api.openstack.wsgi
2023-06-21 13:48:46.273 104498 INFO nova.api.openstack.wsgi [req-ad89f44b-50c5-47b1-b1fb-d6f05bc36298 29fda688d1644bb0b7ad1f94bd81741c 1d3c9ac33d3142d29960fbc4958ba548 - default default] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneauth1.exceptions.discovery.DiscoveryFailure'>
2023-06-21 13:48:46.274 104498 INFO nova.osapi_compute.wsgi.server [req-ad89f44b-50c5-47b1-b1fb-d6f05bc36298 29fda688d1644bb0b7ad1f94bd81741c 1d3c9ac33d3142d29960fbc4958ba548 - default default] 10.0.0.5 "POST /v2.1/servers HTTP/1.1" status: 500 len: 658 time: 0.0212469

Revision history for this message
MattiaQuadrini (mattiaquadrini) wrote :

Try to remove all lines under the [service_user] sections in the nova.conf both at the controller and at the compute. Otherwise you have to configure NOVA with security access.

Revision history for this message
Alex Garzon (alex94g) wrote :

Same here, I was using port 5000 into os_auth_url definition in admin-openrc file

I fixed it by adding port 5000 and putting "http" instead "https" to the auth_url in [service_user] section in nova.conf, like this:

/etc/nova/nova.conf

[user_service]

......

original: auth_url = https://controller/identity

amended: auth_url = http://controller:5000/identity

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.