Fail to create an openstack instance: No valid host was found

asked 2019-01-22 03:07:44 -0500

najeh gravatar image

updated 2019-01-22 04:55:06 -0500

when i tried to create an instance it created with an error status :

openstack server show id_instance

{u'message': u'No valid host was found. ', u'code': 500, u'created': u'2019-01-22T08:59:53Z'}

using python api i got this error: Traceback (most recent call last): File "/root/application/openstackInstance.py", line 284, in <module> create_server()

File "/root/application/openstackInstance.py", line 276, in create_server testing_instance = conn.compute.wait_for_server(testing_instance)

File "/usr/lib/python2.7/dist-packages/openstack/compute/v2/_proxy.py", line 698, in wait_for_server self, server, status, failures, interval, wait)

File "/usr/lib/python2.7/dist-packages/openstack/resource.py", line 1141, in wait_for_status name=name, status=new_status))

openstack.exceptions.ResourceFailure: Server:4ab0bd20-152e-49f9-b1c3-884bbb03ef00 transitioned to failure state ERROR

root@controller:~# su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

Found 2 cell mappings. Skipping cell0 since it does not contain hosts. Getting computes from cell 'cell1': afa8f570-5a82-4e6e-af42-42583a3f1770 Found 0 unmapped computes in cell: afa8f570-5a82-4e6e-af42-42583a3f1770

ERROR in /var/log/nova/nova-compute.log :

2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager [req-757f5e8f-33c7-417b-991d-eb7b9d07a3e2 - - - - -] Error updating resources for node compute2.: ResourceProviderRetrievalFailed: Fail$ 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager Traceback (most recent call last): 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 7766, in _update_available_resource_for_node 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager rt.update_available_resource(context, nodename) 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 724, in update_available_resource 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager self._update_available_resource(context, resources) 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 274, in inner 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager return f(args, *kwargs) File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 747, in _update_available_resource 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager self._init_compute_node(context, resources) 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 564, in _init_compute_node 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager self._update(context, cn) 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/retrying.py", line 49, in wrapped_f 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager return Retrying(dargs, *dkw).call(f, args, *kw) 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/retrying.py", line 206, in call 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager return attempt.get(self._wrap_exception) 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/retrying.py", line 247, in get 2019-01-22 08:57:08.176 1617 ERROR nova.compute.manager six.reraise(self.value[0], self.value[1], self.value[2]) 2019-01-22 08:57:08.176 ... (more)

edit retag flag offensive close merge delete