Unexpected API Error.

Bug #2053061 reported by kandoussi el mehdi
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

2024-02-13 20:01:27.785 2124 ERROR nova.api.openstack.wsgi keystoneauth1.exceptions.connection.SSLError: SSL exception connecting to https://controller:9292/v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
2024-02-13 20:01:27.785 2124 ERROR nova.api.openstack.wsgi
2024-02-13 20:01:27.794 2124 INFO nova.api.openstack.wsgi [req-7cd9c353-06b6-45c4-b294-5994b63094c0 a694ed41a63240a982b3110fde0248be 6e523b33312a4ac79590df56f886ceb2 - 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.connection.SSLError'>
2024-02-13 20:01:27.795 2124 INFO nova.osapi_compute.wsgi.server [req-7cd9c353-06b6-45c4-b294-5994b63094c0 a694ed41a63240a982b3110fde0248be 6e523b33312a4ac79590df56f886ceb2 - default default] 127.0.0.1 "POST /v2.1/6e523b33312a4ac79590df56f886ceb2/servers HTTP/1.1" status: 500 len: 651 time: 0.0623181
[root@controller nova(keystone)]# cat nova-api.log | grep SSLError
2024-02-13 19:29:52.080 24184 ERROR nova.api.openstack.wsgi [req-18342d99-d0c7-436b-a6c8-1c6fa8966ae9 a694ed41a63240a982b3110fde0248be 6e523b33312a4ac79590df56f886ceb2 - default default] Unexpected exception in API method: keystoneauth1.exceptions.connection.SSLError: SSL exception connecting to https://controller:9292/v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
2024-02-13 19:29:52.080 24184 ERROR nova.api.openstack.wsgi ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)
2024-02-13 19:29:52.080 24184 ERROR nova.api.openstack.wsgi urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
2024-02-13 19:29:52.080 24184 ERROR nova.api.openstack.wsgi raise SSLError(e, request=request)
2024-02-13 19:29:52.080 24184 ERROR nova.api.openstack.wsgi requests.exceptions.SSLError: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
2024-02-13 19:29:52.080 24184 ERROR nova.api.openstack.wsgi raise exceptions.SSLError(msg)
2024-02-13 19:29:52.080 24184 ERROR nova.api.openstack.wsgi keystoneauth1.exceptions.connection.SSLError: SSL exception connecting to https://controller:9292/v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
<class 'keystoneauth1.exceptions.connection.SSLError'>
2024-02-13 19:32:24.553 24184 ERROR nova.api.openstack.wsgi [req-9c284a0d-7109-4c9b-a74b-c653e030a6b6 a694ed41a63240a982b3110fde0248be 6e523b33312a4ac79590df56f886ceb2 - default default] Unexpected exception in API method: keystoneauth1.exceptions.connection.SSLError: SSL exception connecting to https://controller:9292/v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
2024-02-13 19:32:24.553 24184 ERROR nova.api.openstack.wsgi ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)
2024-02-13 19:32:24.553 24184 ERROR nova.api.openstack.wsgi urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
2024-02-13 19:32:24.553 24184 ERROR nova.api.openstack.wsgi raise SSLError(e, request=request)
2024-02-13 19:32:24.553 24184 ERROR nova.api.openstack.wsgi requests.exceptions.SSLError: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
2024-02-13 19:32:24.553 24184 ERROR nova.api.openstack.wsgi raise exceptions.SSLError(msg)
2024-02-13 19:32:24.553 24184 ERROR nova.api.openstack.wsgi keystoneauth1.exceptions.connection.SSLError: SSL exception connecting to https://controller:9292/v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
<class 'keystoneauth1.exceptions.connection.SSLError'>
2024-02-13 19:39:08.128 24184 ERROR nova.api.openstack.wsgi [req-9593a5a5-1ff8-4e96-baae-084e1a581247 a694ed41a63240a982b3110fde0248be 6e523b33312a4ac79590df56f886ceb2 - default default] Unexpected exception in API method: keystoneauth1.exceptions.connection.SSLError: SSL exception connecting to https://controller:9292/v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
2024-02-13 19:39:08.128 24184 ERROR nova.api.openstack.wsgi ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)
2024-02-13 19:39:08.128 24184 ERROR nova.api.openstack.wsgi urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
2024-02-13 19:39:08.128 24184 ERROR nova.api.openstack.wsgi raise SSLError(e, request=request)
2024-02-13 19:39:08.128 24184 ERROR nova.api.openstack.wsgi requests.exceptions.SSLError: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
2024-02-13 19:39:08.128 24184 ERROR nova.api.openstack.wsgi raise exceptions.SSLError(msg)
2024-02-13 19:39:08.128 24184 ERROR nova.api.openstack.wsgi keystoneauth1.exceptions.connection.SSLError: SSL exception connecting to https://controller:9292/v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
<class 'keystoneauth1.exceptions.connection.SSLError'>
2024-02-13 19:40:06.408 24184 ERROR nova.api.openstack.wsgi [req-85c28860-4f1b-4fef-99ba-60da3bae3b80 a694ed41a63240a982b3110fde0248be 6e523b33312a4ac79590df56f886ceb2 - default default] Unexpected exception in API method: keystoneauth1.exceptions.connection.SSLError: SSL exception connecting to https://controller:9292/v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
2024-02-13 19:40:06.408 24184 ERROR nova.api.openstack.wsgi ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)
2024-02-13 19:40:06.408 24184 ERROR nova.api.openstack.wsgi urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
2024-02-13 19:40:06.408 24184 ERROR nova.api.openstack.wsgi raise SSLError(e, request=request)
2024-02-13 19:40:06.408 24184 ERROR nova.api.openstack.wsgi requests.exceptions.SSLError: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))
2024-02-13 19:40:06.408 24184 ERROR nova.api.openstack.wsgi raise exceptions.SSLError(msg)
2024-02-13 19:40:06.408 24184 ERROR nova.api.openstack.wsgi keystoneauth1.exceptions.connection.SSLError: SSL exception connecting to https://controller:9292/v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c: HTTPSConnectionPool(host='controller', port=9292): Max retries exceeded with url: /v2/images/7b393dfb-e35d-4915-9da0-f532fecc349c (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)'),))

Revision history for this message
duc linh (haanhduc) wrote :

same error. Here is how to replicate the issue.
I'm follow the instruct from - https://www.server-world.info/en/note?os=Ubuntu_22.04&p=openstack_antelope&f=14

- when I run command:

openstack --insecure server create --flavor m1.large --image Ubuntu2204 --security-group secgroup01 --nic net-id=$netID --key-name mykey Ubuntu-2204

I've got the error

Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneauth1.exceptions.connection.SSLError'> (HTTP 500) (Request-ID: req-fddc915f-49bb-42cc-ab72-b794557349a8)

- Here is log:

2024-03-01 02:45:33.293 54683 WARNING oslo_config.cfg [None req-fddc915f-49bb-42cc-ab72-b794557349a8 cf2bda56971a427a9d651d63f466c64a d861ddd1833f465ab3a2bfbc173f5106 - - default default] Deprecated: Option "api_servers" from group "glance" is deprecated for removal (
2024-03-01 02:45:33.825 54683 ERROR nova.api.openstack.wsgi [None req-fddc915f-49bb-42cc-ab72-b794557349a8 cf2bda56971a427a9d651d63f466c64a d861ddd1833f465ab3a2bfbc173f5106 - - default default] Unexpected exception in API method: keystoneauth1.exceptions.connection.SSLError: SSL exception connecting to https://heroku:9292/v2/images/4787fcb5-de20-4b09-bfe8-b2b283d63f37: HTTPSConnectionPool(host='heroku', port=9292): Max retries exceeded with url: /v2/images/4787fcb5-de20-4b09-bfe8-b2b283d63f37 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1007)')))
2024-03-01 02:45:33.831 54683 INFO nova.api.openstack.wsgi [None req-fddc915f-49bb-42cc-ab72-b794557349a8 cf2bda56971a427a9d651d63f466c64a d861ddd1833f465ab3a2bfbc173f5106 - - 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.
2024-03-01 02:45:33.832 54683 INFO nova.osapi_compute.wsgi.server [None req-fddc915f-49bb-42cc-ab72-b794557349a8 cf2bda56971a427a9d651d63f466c64a d861ddd1833f465ab3a2bfbc173f5106 - - default default] 127.0.0.1 "POST /v2.1/d861ddd1833f465ab3a2bfbc173f5106/servers HTTP/1.1" status: 500 len: 651 time: 0.5597584

I'm using self-signed SSL

Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

As said by the exception, your certificates are invalid. Please double-check your configs.
This isn't a Nova bug, rather a configuration problem, closing the report.

Changed in nova:
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.