Ask Your Question
0

no valid host was found when lunching new instance

asked 2018-12-02 02:06:36 -0500

yasharne gravatar image

I have installed openstack rocky with packstack. I have a controller node, compute node, network node and storage node.

When I want to lunch a new instance (with cirros), I get this error:

Error: Failed to perform requested operation on instance "test0", the instance has an error status: Please try again later [Error: No valid host was found. ].

here is the output of nova service-list:

+--------------------------------------+------------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
| Id                                   | Binary           | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |
+--------------------------------------+------------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
| ca6dd0a7-1278-4e42-8cec-8785e3f8ce87 | nova-conductor   | controller | internal | enabled | up    | 2018-12-02T05:38:03.000000 | -               | False       |
| d1c50908-e10c-437f-82be-6f39cba9bbe3 | nova-scheduler   | controller | internal | enabled | up    | 2018-12-02T05:38:03.000000 | -               | False       |
| 45c7ab7f-7d87-4ccf-940b-80a6b7bc0647 | nova-consoleauth | controller | internal | enabled | up    | 2018-12-02T05:38:07.000000 | -               | False       |
| 9bc71327-f30e-43bc-8ac1-2f14b8c3e9f8 | nova-compute     | compute    | nova     | enabled | up    | 2018-12-02T05:38:03.000000 | -               | False       |
+--------------------------------------+------------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+

output of neutron agent-list:

+--------------------------------------+--------------------+---------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host    | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+---------+-------------------+-------+----------------+---------------------------+
| 4720b675-8b10-4fe8-906c-8635371c2138 | L3 agent           | network | nova              | :-)   | True           | neutron-l3-agent          |
| 4832cfdb-4753-48f5-8037-778fd314a4b4 | Metadata agent     | network |                   | :-)   | True           | neutron-metadata-agent    |
| 4a7071c6-32d7-40ff-be71-8fd7da52fe97 | Open vSwitch agent | compute |                   | :-)   | True           | neutron-openvswitch-agent |
| 62ed3331-2bd2-4005-87ff-08caa3035562 | DHCP agent         | network | nova              | :-)   | True           | neutron-dhcp-agent        |
| ba9666b6-2ba7-472c-b448-8c4a8277cb11 | Open vSwitch agent | network |                   | :-)   | True           | neutron-openvswitch-agent |
| f712ddb6-736a-413d-8aef-9458ea0696b7 | Metering agent     | network |                   | :-)   | True           | neutron-metering-agent    |
+--------------------------------------+--------------------+---------+-------------------+-------+----------------+---------------------------+

and output of nova hypervisor-stats:

+----------------------+-------+
| Property             | Value |
+----------------------+-------+
| count                | 0     |
| current_workload     | 0     |
| disk_available_least | 0     |
| free_disk_gb         | 0     |
| free_ram_mb          | 0     |
| local_gb             | 0     |
| local_gb_used        | 0     |
| memory_mb            | 0     |
| memory_mb_used       | 0     |
| running_vms          | 0     |
| vcpus                | 0     |
| vcpus_used           | 0     |
+----------------------+-------+

I have installed rocky and the vm wich compute node is installed on has 8 gb of ram, two processors and 20 gb of storage

How can I solve this?

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
0

answered 2018-12-03 15:22:05 -0500

imrankhan-099 gravatar image

I faced similar issue and restarting nova-compute resolved the issue. However as we use salt and reclass I updated the nova reclass which at the backend updates all the files related to nova and then restarted nova-compute which resolved my issue.

edit flag offensive delete link more
0

answered 2018-12-03 01:45:32 -0500

I would check the packstack answer file. Did you happen to install ironic aswell?? In that case you will get into trouble as I did. Not sure if it's a bug of packstack

edit flag offensive delete link more
0

answered 2018-12-02 02:26:16 -0500

novainfinite gravatar image

no valid host not relevent to neutron. this is because nova-compute or nova-scheduler do not work properly. restart nova-comoute service and see the status and the log of it

edit flag offensive delete link more

Comments

Oh yes, it can be related to incorrect network configuration. If the instance can’t be networked, it can’t be launched.

It is true that the first step is checking the Nova logs, especially the scheduler and placement logs. nova-status upgrade check may provide clues as well.

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-02 02:37:30 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-12-02 02:06:36 -0500

Seen: 112 times

Last updated: Dec 02 '18