Instance created with error status in Mitaka
Hi, i have installed OpenStack mitaka on RHEL using following guide https://docs.openstack.org/mitaka/install-guide-rdo/launch-instance.html#launch-instance (https://docs.openstack.org/mitaka/ins...) .
I have created a provider-network as per the guide. when i create instance , the instance is launched with error status.
[root@controller openstackusr]# openstack server list
+--------------------------------------+------+--------+----------+--------+---------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+------+--------+----------+--------+---------+
| dda5200d-6c28-4aaa-9eee-093932bd804f | Spo | ERROR | | cirros | s2 |
| 1777ddc3-95ef-4df7-b6c4-d5928ff05159 | s1 | ERROR | | cirros | m1.nano |
+--------------------------------------+------+--------+----------+--------+---------+
I found following error in nova-compute.log
2019-05-09 13:17:22.346 8911 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 35, in __run_method
2019-05-09 13:17:22.346 8911 ERROR nova.compute.manager return getattr(self.instance, __name)(*args, **kwargs)
2019-05-09 13:17:22.346 8911 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 1006, in get_provider_tree_and_ensure_root
2019-05-09 13:17:22.346 8911 ERROR nova.compute.manager parent_provider_uuid=parent_provider_uuid)
2019-05-09 13:17:22.346 8911 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 680, in _ensure_resource_provider
2019-05-09 13:17:22.346 8911 ERROR nova.compute.manager name=name or uuid)
2019-05-09 13:17:22.346 8911 ERROR nova.compute.manager ResourceProviderCreationFailed: Failed to create resource provider compute
2019-05-09 13:17:22.346 8911 ERROR nova.compute.manager
I have another error in nova-conductor.log
NoValidHost: No valid host was found.
: NoValidHost_Remote: No valid host was found.
2019-05-09 14:16:49.328 13597 WARNING nova.scheduler.utils [req-bb1fe83c-b9e0-4bce-853b-d205e45c392b 44ee5d6905d945ce9e14e84a5d23e710 0a8a8f1e49f3466b8333f3a2af315682 - 549e83b1fc8f4baf8138127bf714d760 549e83b1fc8f4baf8138127bf714d760] [instance: 21a1246a-0a61-4be3-adec-89b4bb20828b] Setting instance to ERROR state.: NoValidHost_Remote: No valid host was found.
Please help me out.
Why Mitaka? It's past EOL.
By the way, the ResourceProviderCreationFailed exception may indicate that the code wants to create a record in the Placement service, which doesn't exist yet in Mitaka. Are you trying to install a newer Nova release using Mitaka instructions? That would explain it.
So if i delete the nova_api database then problem will be solved? since nova_api database has resource provider database.
Will that solve the problem?
I have another error in the nova-conductor.log
Can please help me out by replying to both the comments
If I remember well, Mitaka was the first release that separated the nova and nova-api databases. If you delete either of them, you break your cloud beyond repair. Instead, check which OpenStack release you installed, and if it is Newton or later, check if the Placement service is installed.
no valid host was found is a consequence of ResourceProviderCreationFailed. After fixing ResourceProviderCreationFailed, this error is likely to go away as well.