I can't launch instances on OpenStack

Bug #2025598 reported by ewrtr
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

Bug Description

I can't launch instances on OpenStack

Hi all, I manually installed all OpenStack services and components on Ubuntu 22.04, the installation of the services seems to have been successful, everything works except the instances, which as soon as I try to create one I get 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.connection.SSLError'> (HTTP 500) (Request-ID: req-46aedbe5-4081-4988-a1e2-4c2da4f83996).

I tried adding port 5000 via iptables but it didn't work much and neither did adding "/v3" before the auth_uri directive from nova.conf from [keystone_authtoken]
what am i doing wrong?, where could be the problem?
I'm on OpenStack Yoga

post my nova-api.log

Is the problem due to some misconfiguration or missing package?

Revision history for this message
ewrtr (sorecchione07) wrote :
Revision history for this message
Steven Relf (srelf) wrote :

Hey.

Looking at the nova-api.log you have posted, it looks like the database doesnt have the tables that nova-api is expecting.

2023-07-02 22:33:42.127 78080 ERROR oslo_service.service sqlite3.OperationalError: no such table: services

Did you run the nova-manage tasks to populate the databases?

There is one for nova, and one for nova-api.

https://docs.openstack.org/nova/latest/install/controller-install-ubuntu.html#install-and-configure-components

Steps 3,4,5,6,7

Revision history for this message
ewrtr (sorecchione07) wrote (last edit ):

Thanks for your information, but I don't need it as I found after a while another bug that explains, and I managed to fix it

I managed to fix this by simply commenting out all directives on [service_user] on nova.conf and restarting all nova and nova-compute services.

and by the way the error you told me in the log appeared before I installed Neutron, and it happened a long time before

2023-07-02 22:33:42.127 78080 ERROR oslo_service.service sqlite3.OperationalError: no such table: services
After installing Neutron that error never came back

Revision history for this message
Uggla (rene-ribaud) wrote :

Hello ewrtr,

Looking at your latest comment, it looks you manage to fix your issue.
So I guess you don't need further assistance. If yes can you confirm or better close this bug.

Changed in nova:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
Revision history for this message
Anoop Unni (anoopdesom) wrote :
Download full text (25.9 KiB)

2023-12-04 18:33:44.623 943 INFO nova.compute.claims [None req-0a881206-301f-4afa-8327-215c0f622acb 90d604a6f0b44afb85d4805b88e4d01c 7213168c18a64ef79ac2bbade35cd663 - - default default] [instance: c7fbc1d5-25cf-4ce1-bf5d-6249dc99c503] Claim successful on node node1
2023-12-04 18:33:44.860 943 INFO nova.virt.libvirt.driver [None req-0a881206-301f-4afa-8327-215c0f622acb 90d604a6f0b44afb85d4805b88e4d01c 7213168c18a64ef79ac2bbade35cd663 - - default default] [instance: c7fbc1d5-25cf-4ce1-bf5d-6249dc99c503] Ignoring supplied device name: /dev/vda. Libvirt can't honour user-supplied dev names
2023-12-04 18:33:44.955 943 INFO nova.virt.libvirt.driver [None req-0a881206-301f-4afa-8327-215c0f622acb 90d604a6f0b44afb85d4805b88e4d01c 7213168c18a64ef79ac2bbade35cd663 - - default default] [instance: c7fbc1d5-25cf-4ce1-bf5d-6249dc99c503] Creating image(s)
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager [None req-0a881206-301f-4afa-8327-215c0f622acb 90d604a6f0b44afb85d4805b88e4d01c 7213168c18a64ef79ac2bbade35cd663 - - default default] Instance failed network setup after 1 attempt(s): keystoneauth1.exceptions.http.Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-93bea61f-5ba4-4142-9e9c-a0a69c2309f7)
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager Traceback (most recent call last):
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 1965, in _allocate_network_async
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager nwinfo = self.network_api.allocate_for_instance(
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager File "/usr/lib/python3/dist-packages/nova/network/neutron.py", line 1216, in allocate_for_instance
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager created_port_ids = self._update_ports_for_instance(
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager File "/usr/lib/python3/dist-packages/nova/network/neutron.py", line 1352, in _update_ports_for_instance
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager with excutils.save_and_reraise_exception():
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 227, in __exit__
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager self.force_reraise()
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 200, in force_reraise
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager raise self.value
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager File "/usr/lib/python3/dist-packages/nova/network/neutron.py", line 1327, in _update_ports_for_instance
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager updated_port = self._update_port(
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager File "/usr/lib/python3/dist-packages/nova/network/neutron.py", line 583, in _update_port
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager port_response = port_client.update_port(port_id, port_req_body)
2023-12-04 18:33:45.392 943 ERROR nova.compute.manager File "/usr/lib/python3/dist-packages/...

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.