Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Conflicting resource provider name

Dear all ...

I have a controller node with hostname 'ceph-node1' Curently, it's also function as a compute node.

[root@ceph-node1 ~]# openstack hypervisor list -f json
[
  {
    "Hypervisor Hostname": "ceph-node1", 
    "Host IP": "192.168.5.81", 
    "State": "up", 
    "ID": 3, 
    "Hypervisor Type": "QEMU"
  }
]

I also have a host with hostname 'nova-blade0101', this host will function only for compute node. Try to start openstack-nova-compute.service for the first time, but I got this error messages from the log.

2019-02-11 12:35:16.336 17965 ERROR nova.scheduler.client.report [req-d88d0b70-ec32-4e0d-8bfe-3b920d37d5d0 - - - - -] [req-ed36775b-1715-4a70-b709-83095a846f6c] Failed to create resource provider record in placement API for UUID 44c8d87b-50bd-47ae-8672-5f19d8be16f7. Got 409: {"errors": [{"status": 409, "request_id": "req-ed36775b-1715-4a70-b709-83095a846f6c", "detail": "There was a conflict when trying to complete your request.\n\n Conflicting resource provider name: nova-blade0101 already exists.  ", "title": "Conflict"}]}.
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager [req-d88d0b70-ec32-4e0d-8bfe-3b920d37d5d0 - - - - -] Error updating resources for node nova-blade0101.: ResourceProviderCreationFailed: Failed to create resource provider nova-blade0101


2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager Traceback (most recent call last):
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 7778, in _update_available_resource_for_node
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     rt.update_available_resource(context, nodename)
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 721, in update_available_resource
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     self._update_available_resource(context, resources)
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 274, in inner
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     return f(*args, **kwargs)
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 798, in _update_available_resource
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     self._update(context, cn)
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 68, in wrapped_f
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     return Retrying(*dargs, **dkw).call(f, *args, **kw)
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 223, in call
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     return attempt.get(self._wrap_exception)
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 261, in get
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     six.reraise(self.value[0], self.value[1], self.value[2])
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/retrying.py", line 217, in call
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 960, in _update
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     self._update_to_placement(context, compute_node)
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 912, in _update_to_placement
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     context, compute_node.uuid, name=compute_node.hypervisor_hostname)
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 35, in __run_method
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     return getattr(self.instance, __name)(*args, **kwargs)
2019-02-11 12:35:16.337 17965 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-02-11 12:35:16.337 17965 ERROR nova.compute.manager     parent_provider_uuid=parent_provider_uuid)
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 672, in _ensure_resource_provider
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     parent_provider_uuid=parent_provider_uuid)
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 74, in wrapper
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     return f(self, *a, **k)
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 606, in _create_resource_provider
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager     raise exception.ResourceProviderCreationFailed(name=name)
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager ResourceProviderCreationFailed: Failed to create resource provider nova-blade0101
2019-02-11 12:35:16.337 17965 ERROR nova.compute.manager

I check the hypervisor list at the controller node, it's shown up :

[root@ceph-node1 ~]# openstack hypervisor list -f json
[
  {
    "Hypervisor Hostname": "ceph-node1", 
    "Host IP": "192.168.5.81", 
    "State": "up", 
    "ID": 3, 
    "Hypervisor Type": "QEMU"
  }, 
  {
    "Hypervisor Hostname": "nova-blade0101", 
    "Host IP": "192.168.5.71", 
    "State": "up", 
    "ID": 7, 
    "Hypervisor Type": "QEMU"
  }
]

Kindly please tell what cause the error and if possible how to fix it.

Sincerely

-bino-