Ask Your Question
0

--os-compute-api-version 2.11 or later is required [closed]

asked 2019-05-14 05:39:12 -0500

Spoorthi Vaidya gravatar image

When i run

openstack compute service set --up compute nova-compute

i get following output:

--os-compute-api-version 2.11 or later is required

openstack compute service list outputs:-

+----+----------------+------------+----------+---------+-------+----------------------------+
| ID | Binary         | Host       | Zone     | Status  | State | Updated At                 |
+----+----------------+------------+----------+---------+-------+----------------------------+
|  1 | nova-scheduler | controller | internal | enabled | up    | 2019-05-14T10:34:47.000000 |
|  7 | nova-conductor | controller | internal | enabled | up    | 2019-05-14T10:34:44.000000 |
| 17 | nova-compute   | compute    | nova     | enabled | down  | 2019-05-14T07:56:44.000000 |
+----+----------------+------------+----------+---------+-------+----------------------------+

when i try to restart nova-compute using

systemctl start openstack-nova-compute.service i got output:-

Failed to start openstack-nova-compute.service: Unit not found.

So i tried to make state up through the command

openstack compute service set --up compute nova-compute

but got the above output please help me.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Spoorthi Vaidya
close date 2019-05-14 11:41:38.989461

1 answer

Sort by » oldest newest most voted
1

answered 2019-05-14 07:16:50 -0500

This will solve the error message about the API version:

openstack --os-compute-api-version 2.11 compute service set --up compute nova-compute

But if the service doesn't run, this command doesn't help.

To help you restart nova-compute, I would need to know how the cloud is deployed. Or perhaps you can find out what the systemd service is called by listing all services and finding nova-compute among them, for example

systemctl list-units | grep compute

This helps only if the systemd service contains "compute" in its name/

edit flag offensive delete link more

Comments

systemctl list-units | grep compute

the above command dint give me any output.

Spoorthi Vaidya gravatar imageSpoorthi Vaidya ( 2019-05-14 09:42:46 -0500 )edit

after following the guide for installing te neutron service, im getting this error... How can i restart the nova-compute service now? there is no error visible in nova-compute.log too...please help me out.

Spoorthi Vaidya gravatar imageSpoorthi Vaidya ( 2019-05-14 09:45:44 -0500 )edit

If there is no service for nova-compute, it's not installed. Are you running the systemctl commands on the compute node? If yes, run systemctl list-units and check each output line.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-14 10:18:04 -0500 )edit

Yes, im using systemctl related commands. Before it used to run correctly, even the firewall is disabled. Then should i again delete nova service related databases and install everything again?

Spoorthi Vaidya gravatar imageSpoorthi Vaidya ( 2019-05-14 10:28:10 -0500 )edit

I am puzzled that the nova-compute service existed earlier and has disappeared. I can’t tell you how that happened and don’t have a suggestion how to make it reappear, except reinstalling nova-compute. No need to rebuild the database.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-14 10:42:53 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-05-14 05:39:12 -0500

Seen: 24 times

Last updated: May 14