Ask Your Question
0

Instance created with error status in Mitaka

asked 2019-05-09 02:56:54 -0500

Spoorthi Vaidya gravatar image

updated 2019-05-10 23:52:13 -0500

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.

edit retag flag offensive close merge delete

Comments

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.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-09 07:00:17 -0500 )edit

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?

Spoorthi Vaidya gravatar imageSpoorthi Vaidya ( 2019-05-10 23:49:34 -0500 )edit

I have another error in the 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

Can please help me out by replying to both the comments

Spoorthi Vaidya gravatar imageSpoorthi Vaidya ( 2019-05-10 23:50:42 -0500 )edit

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.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-11 00:45:18 -0500 )edit

no valid host was found is a consequence of ResourceProviderCreationFailed. After fixing ResourceProviderCreationFailed, this error is likely to go away as well.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-11 00:47:11 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-05-11 01:45:35 -0500

updated 2019-05-11 01:50:05 -0500

In short, you installed OpenStack Rocky, but used a Mitaka tutorial to do so. Consequently you did not install the Placement service, which lead to your present error.

My advice: Start from scratch and follow the installation tutorial on docs.openstack.org. The tutorial will give you the choice of Pike, Queens, Rocky or Stein:

image description

edit flag offensive delete link more

Comments

Thank you very much.....can please provide me the link of the guide.? so that there wont be any fault again.. please.

Spoorthi Vaidya gravatar imageSpoorthi Vaidya ( 2019-05-11 01:52:54 -0500 )edit

Should i start from first???? should i destory the present cloud and start from first?

Spoorthi Vaidya gravatar imageSpoorthi Vaidya ( 2019-05-11 01:53:46 -0500 )edit
1

The link to the guide is in my answer. Yes, start from scratch. I.e., re-install RHEL or Centos. Whatever is installed on your server right now is probably incompatible with Pike/Queens/Rocky/Stein. In the best case, you'd get installation errors. In the worst, hard-to-understand errors after weeks.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-11 01:57:50 -0500 )edit

Thank you very much for the help.

Spoorthi Vaidya gravatar imageSpoorthi Vaidya ( 2019-05-11 02:03:09 -0500 )edit

So when i start from first, after running this command yum install https://rdoproject.org/repos/rdo-release.rpm (https://rdoproject.org/repos/rdo-rele...) i need to check which cloud version is it by running nova-manage --version and then follow the guide according to version am i right?

Spoorthi Vaidya gravatar imageSpoorthi Vaidya ( 2019-05-11 02:31:03 -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: 2019-05-09 02:56:54 -0500

Seen: 36 times

Last updated: May 11