openstack nova ocmpute not creating instance?

廉价感情. 提交于 2019-12-11 15:44:38

问题


I can't get nova compute to create an instance of my project.

Could anyone help me debug the problem? If i create an instance on the web interface from openstack it doesn't appear, and nova-compute gives methis error

ERROR nova.compute.resource_tracker [None req-8c3ddc97-60a0-47c4-b4a6-3f22216896e9 None None] Skipping removal of all                                                                                                                        ocations for deleted instances: Failed to retrieve allocations for resource provider 310b0401-71cc-45e5-8c16-1ac9a337                                                                                                                        2654: {"errors": [{"status": 404, "request_id": "req-b5fee1dc-4572-47f6-9b57-c04a37876a1f", "detail": "The resource c                                                                                                                        ould not be found.\n\n Resource provider '310b0401-71cc-45e5-8c16-1ac9a3372654' not found: No resource provider with                                                                                                                         uuid 310b0401-71cc-45e5-8c16-1ac9a3372654 found  ", "title": "Not Found"}]}: ResourceProviderAllocationRetrievalFaile                                                                                                                        d: Failed to retrieve allocations for resource provider 310b0401-71cc-45e5-8c16-1ac9a3372654: {"errors": [{"status":                                                                                                                         404, "request_id": "req-b5fee1dc-4572-47f6-9b57-c04a37876a1f", "detail": "The resource could not be found.\n\n Resour                                                                                                                        ce provider '310b0401-71cc-45e5-8c16-1ac9a3372654' not found: No resource provider with uuid 310b0401-71cc-45e5-8c16-                                                                                                                        1ac9a3372654 found  ", "title": "Not Found"}]}
DEBUG nova.compute.resource_tracker [None req-8c3ddc97-60a0-47c4-b4a6-3f22216896e9 None None] Total usable vcpus: 2,                                                                                                                         total allocated vcpus: 0 {{(pid=2552) _report_final_resource_view /opt/stack/nova/nova/compute/resource_tracker.py:86                                                                                                                        4}}
INFO nova.compute.resource_tracker [None req-8c3ddc97-60a0-47c4-b4a6-3f22216896e9 None None] Final resource view: nam                                                                                                                        e=fancy-server phys_ram=7731MB used_ram=512MB phys_disk=292GB used_disk=0GB total_vcpus=2 used_vcpus=0 pci_stats=[]
ERROR nova.scheduler.client.report [None req-8c3ddc97-60a0-47c4-b4a6-3f22216896e9 None None] [req-107f53f3-eb6e-44a5-                                                                                                                        a4e4-b54215abc1fb] Failed to create resource provider record in placement API for UUID 310b0401-71cc-45e5-8c16-1ac9a3                                                                                                                        372654. Got 409: {"errors": [{"status": 409, "request_id": "req-107f53f3-eb6e-44a5-a4e4-b54215abc1fb", "detail": "The                                                                                                                        re was a conflict when trying to complete your request.\n\n Conflicting resource provider name: fancy-server already                                                                                                                         exists.  ", "title": "Conflict"}]}.
DEBUG oslo_concurrency.lockutils [None req-8c3ddc97-60a0-47c4-b4a6-3f22216896e9 None None] Lock "compute_resources" r                                                                                                                        eleased by "nova.compute.resource_tracker._update_available_resource" :: held 0.574s {{(pid=2552) inner /usr/local/li                                                                                                                        b/python2.7/dist-packages/oslo_concurrency/lockutils.py:285}}
ERROR nova.compute.manager [None req-8c3ddc97-60a0-47c4-b4a6-3f22216896e9 None None] Error updating resources for nod                                                                                                                        e fancy-server.: ResourceProviderCreationFailed: Failed to create resource provider fancy-server
ERROR nova.compute.manager Traceback (most recent call last):
ERROR nova.compute.manager   File "/opt/stack/nova/nova/compute/manager.py", line 7753, in _update_available_resource                                                                                                                        _for_node
ERROR nova.compute.manager     rt.update_available_resource(context, nodename, startup=startup)
ERROR nova.compute.manager   File "/opt/stack/nova/nova/compute/resource_tracker.py", line 725, in update_available_r                                                                                                                        esource
ERROR nova.compute.manager     self._update_available_resource(context, resources, startup=startup)
ERROR nova.compute.manager   File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 274, i                                                                                                                        n inner
ERROR nova.compute.manager     return f(*args, **kwargs)
ERROR nova.compute.manager   File "/opt/stack/nova/nova/compute/resource_tracker.py", line 802, in _update_available_                                                                                                                        resource
ERROR nova.compute.manager     self._update(context, cn, startup=startup)
ERROR nova.compute.manager   File "/usr/local/lib/python2.7/dist-packages/retrying.py", line 49, in wrapped_f
ERROR nova.compute.manager     return Retrying(*dargs, **dkw).call(f, *args, **kw)
ERROR nova.compute.manager   File "/usr/local/lib/python2.7/dist-packages/retrying.py", line 206, in call
ERROR nova.compute.manager     return attempt.get(self._wrap_exception)
ERROR nova.compute.manager   File "/usr/local/lib/python2.7/dist-packages/retrying.py", line 247, in get
ERROR nova.compute.manager     six.reraise(self.value[0], self.value[1], self.value[2])
ERROR nova.compute.manager   File "/usr/local/lib/python2.7/dist-packages/retrying.py", line 200, in call
ERROR nova.compute.manager     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
ERROR nova.compute.manager   File "/opt/stack/nova/nova/compute/resource_tracker.py", line 977, in _update
ERROR nova.compute.manager     self._update_to_placement(context, compute_node, startup)
ERROR nova.compute.manager   File "/opt/stack/nova/nova/compute/resource_tracker.py", line 916, in _update_to_placeme                                                                                                                        nt
ERROR nova.compute.manager     context, compute_node.uuid, name=compute_node.hypervisor_hostname)
ERROR nova.compute.manager   File "/opt/stack/nova/nova/scheduler/client/__init__.py", line 37, in __run_method
ERROR nova.compute.manager     return getattr(self.instance, __name)(*args, **kwargs)
ERROR nova.compute.manager   File "/opt/stack/nova/nova/scheduler/client/report.py", line 1011, in get_provider_tree_                                                                                                                        and_ensure_root
ERROR nova.compute.manager     parent_provider_uuid=parent_provider_uuid)
ERROR nova.compute.manager   File "/opt/stack/nova/nova/scheduler/client/report.py", line 676, in _ensure_resource_pr                                                                                                                        ovider
ERROR nova.compute.manager     parent_provider_uuid=parent_provider_uuid)
ERROR nova.compute.manager   File "/opt/stack/nova/nova/scheduler/client/report.py", line 78, in wrapper
ERROR nova.compute.manager     return f(self, *a, **k)
ERROR nova.compute.manager   File "/opt/stack/nova/nova/scheduler/client/report.py", line 610, in _create_resource_pr                                                                                                                        ovider
ERROR nova.compute.manager     raise exception.ResourceProviderCreationFailed(name=name)
ERROR nova.compute.manager ResourceProviderCreationFailed: Failed to create resource provider fancy-server
ERROR nova.compute.manager

link to extended code https://pastebin.com/mEsbq0zW

来源:https://stackoverflow.com/questions/52681327/openstack-nova-ocmpute-not-creating-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!