Openstack queen instance creation error - No valid host was found.
Hi,
I have Del R603 Server with 16 CPU 64GB RAM and 600GB - 3NOS HDD.
I have 2 interfaces em1 and em2 having the network interface as 10.211.5.111 and 10.211.15.111.
I have installed the packstack queen using the following command.
systemctl stop firewalld
systemctl disable firewalld
systemctl stop NetworkManager
systemctl disable NetworkManager
yum upgrade -y
yum install -y centos-release-openstack-queen
yum install -y openstack-packstack
yum install -y python-openstackclient
Using the Answer file i have installed the openstack. Installation completed successfully. Now when I try to create a Instance and its giving error as No valid host was found.
Message New - Error - in compute.log
2018-07-06 18:31:57.096 3227 ERROR nova.scheduler.client.report [req-37c7a3df-ad11-41f5-8f34-e144a1a008e4 - - - - -] [req-877fa231-f216-4a58-aa88-ca0cbacf4bee] Failed to create resource provider record in placement API for UUID 3c73b479-32a0-4ae2-a46c-ba35cda98d54. Got 409: {"errors": [{"status": 409, "request_id": "req-877fa231-f216-4a58-aa88-ca0cbacf4bee", "detail": "There was a conflict when trying to complete your request.\n\n Conflicting resource provider name: openstack already exists. ", "title": "Conflict"}]}.
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager [req-37c7a3df-ad11-41f5-8f34-e144a1a008e4 - - - - -] Error updating resources for node openstack.: ResourceProviderCreationFailed: Failed to create resource provider openstack
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager Traceback (most recent call last):
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 7284, in update_available_resource_for_node
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager rt.update_available_resource(context, nodename)
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 680, in update_available_resource
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager self._update_available_resource(context, resources)
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 274, in inner
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager return f(*args, **kwargs)
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 704, in _update_available_resource
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager self._init_compute_node(context, resources)
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 561, in _init_compute_node
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager self._update(context, cn)
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 878, in _update
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager inv_data,
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 68, in set_inventory_for_provider
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager parent_provider_uuid=parent_provider_uuid,
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method
2018-07-06 18:31:57.097 3227 ERROR nova.compute.manager return getattr ...
This error means that you don't have enough resources, usually RAM or Storage, to run the instance. Wrong CPU architecture is another possibility.
How did you launch the instance?
Thanks a lot for replying. But this is the first VM that I am creating after the Pack stack is installed. Resources wise we have 16CPU and 64 GB RAM and 1.6T disk visible in Openstack Console.
And we are creating a VM with 2 CPU, 10GB RAM and 50 GB HDD.
On the same server we have OCATA installed and everything was working fine. we were able to create multiple instances. But now i have newly installed queen after flashing the server again with the same OS.
I am suspecting some configuration issue, Can you kindly help.
Enable debug logging for Nova and check the Nova scheduler log, perhaps also the Placement log. One of the two logs should tell you which scheduling filter(s) reject(s) the instance.
Error in the nova-compute.log ERROR nova.scheduler.client.report [req-37c7a3df-ad11-41f5-8f34-e144a1a008e4 - - - - -] [req-ead2866f-9a4e-4cee-9151-026d69a6a136] Failed to create resource provider record in placement API for UUID 3c73b479-32a0-4ae2-a46c-ba35cda98d54. Got 409: {"errors": [{"status":