- compute node error
2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager [req-9a2e9ab8-59c2-42a9-96d4-3213fe0195f1 – – – – -] Error updating resources for node node.: nova.exception.ResourceProviderCreationFailed: Failed to create resource provider node 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager Traceback (most recent call last): 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/compute/manager.py”, line 9936, in _update_available_resource_for_node 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager self.rt.update_available_resource(context, nodename, 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/compute/resource_tracker.py”, line 896, in update_available_resource 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager self._update_available_resource(context, resources, startup=startup) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py”, line 360, in inner 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager return f(*args, **kwargs) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/compute/resource_tracker.py”, line 1008, in _update_available_resource 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager self._update(context, cn, startup=startup) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/compute/resource_tracker.py”, line 1260, in _update 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager self._update_to_placement(context, compute_node, startup) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/retrying.py”, line 49, in wrapped_f 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager return Retrying(*dargs, **dkw).call(f, *args, **kw) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/retrying.py”, line 206, in call 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager return attempt.get(self._wrap_exception) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/retrying.py”, line 247, in get 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager six.reraise(self.value[0], self.value[1], self.value[2]) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/six.py”, line 703, in reraise 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager raise value 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/retrying.py”, line 200, in call 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager attempt = Attempt(fn(*args, **kwargs), attempt_number, False) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/compute/resource_tracker.py”, line 1190, in _update_to_placement 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager prov_tree = self.reportclient.get_provider_tree_and_ensure_root( 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/scheduler/client/report.py”, line 857, in get_provider_tree_and_ensure_root 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager self._ensure_resource_provider( 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/scheduler/client/report.py”, line 644, in _ensure_resource_provider 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager created_rp = self._create_resource_provider( 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/scheduler/client/report.py”, line 74, in wrapper 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager return f(self, *a, **k) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/scheduler/client/report.py”, line 576, in _create_resource_provider 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager raise exception.ResourceProviderCreationFailed(name=name) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager nova.exception.ResourceProviderCreationFailed: Failed to create resource provider node |
- db에서 resource provider uuid, nova uuid 확인
MariaDB [(none)]> use nova; Database changed MariaDB [nova]> use placement Database changed |
- nova compute_node uuid와 resource_provider uuid 확인 후 uuid reource_provider uuid 수정
MariaDB [placement]> update resource_providers set uuid=’aaad40c7-1bad-4de8-b5f7-118bae99c712‘ where name=’node’ and uuid=’5087e695-0fdb-4f07-b5aa-a60f3e90c1a8‘;
MariaDB [placement]> select * from resource_providers where name=’node’; |
- resource_provider uuid 변경 후 log 확인 ( error x ) -> 정상적으로 서비스 가능
2022-11-10 02:43:02.899 17232 INFO nova.scheduler.client.report [req-11487eb2-159c-4abc-962c-1d1ec154709a – – – – -] [req-098c889a-a50a-4e2b-99b7-377c18f24d8a] Created resource provider record via placement API for resource provider with UUID 5087e695-0fdb-4f07-b5aa-a60f3e90c1a8 and name node. 2022-11-10 02:43:02.903 17232 INFO nova.virt.libvirt.host [req-11487eb2-159c-4abc-962c-1d1ec154709a – – – – -] kernel doesn’t support AMD SEV |
- resource_provider uuid 값을 수정하고도 아래와 같은 error 발생
2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager Traceback (most recent call last): 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/compute/manager.py”, line 9936, in _update_available_resource_for_node 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager self.rt.update_available_resource(context, nodename, 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/compute/resource_tracker.py”, line 896, in update_available_resource 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager self._update_available_resource(context, resources, startup=startup) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py”, line 360, in inner 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager return f(*args, **kwargs) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/compute/resource_tracker.py”, line 1008, in _update_available_resource 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager self._update(context, cn, startup=startup) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/compute/resource_tracker.py”, line 1260, in _update 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager self._update_to_placement(context, compute_node, startup) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/retrying.py”, line 49, in wrapped_f 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager return Retrying(*dargs, **dkw).call(f, *args, **kw) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/retrying.py”, line 206, in call 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager return attempt.get(self._wrap_exception) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/retrying.py”, line 247, in get 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager six.reraise(self.value[0], self.value[1], self.value[2]) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/six.py”, line 703, in reraise 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager raise value 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/retrying.py”, line 200, in call 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager attempt = Attempt(fn(*args, **kwargs), attempt_number, False) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/compute/resource_tracker.py”, line 1190, in _update_to_placement 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager prov_tree = self.reportclient.get_provider_tree_and_ensure_root( 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/scheduler/client/report.py”, line 857, in get_provider_tree_and_ensure_root 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager self._ensure_resource_provider( 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/scheduler/client/report.py”, line 644, in _ensure_resource_provider 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager created_rp = self._create_resource_provider( 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/scheduler/client/report.py”, line 74, in wrapper 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager return f(self, *a, **k) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager File “/usr/lib/python3/dist-packages/nova/scheduler/client/report.py”, line 576, in _create_resource_provider 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager raise exception.ResourceProviderCreationFailed(name=name) 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager nova.exception.ResourceProviderCreationFailed: Failed to create resource provider node 2022-11-10 02:42:29.070 17102 ERROR nova.compute.manager |
- node에 할당되어있는 oid 확인
root@con:~# token=`openstack token issue -f value -c id` root@con:~# echo $token root@con:~# curl http://controller:port/resource_providers -H “x-auth-token: $token” | python -m json.tool |
- 해당 oid 삭제
root@con:~# curl http://controller:port/resource_providers/0a7ec534-50b4-42c6-a832-6a350cae5f7e -H “x-auth-token: $token” -X DELETE root@con:~# curl http://controller:port/resource_providers -H “x-auth-token: $token” | python -m json.tool | grep node |
- node에 해당되어있는 instances 실제 host(node-2)의 id로 변경 (0a7ec534-50b4-42c6-a832-6a350cae5f7e uuid의 host확인 후 작업)
MariaDB [placement]> select * from resource_providers where name=’node-2′; MariaDB [placement]> select * from resource_providers where name=’node’; MariaDB [placement]> select * from allocations where consumer_id=’0a7ec534-50b4-42c6-a832-6a350cae5f7e’; MariaDB [placement]> update allocations set resource_provider_id=’337179′ where consumer_id=’0a7ec534-50b4-42c6-a832-6a350cae5f7e’; MariaDB [nova_api]> select * from allocations where consumer_id=’0a7ec534-50b4-42c6-a832-6a350cae5f7e’; |
- 수정 후 서비스 재시작
root@node:~# systemctl start nova-compute.service neutron-l3-agent.service neutron-metadata-agent.service neutron-openvswitch-agent.service 2022-11-10 02:43:02.899 17232 INFO nova.scheduler.client.report [req-11487eb2-159c-4abc-962c-1d1ec154709a – – – – -] [req-098c889a-a50a-4e2b-99b7-377c18f24d8a] Created resource provider record via placement API for resource provider with UUID 5087e695-0fdb-4f07-b5aa-a60f3e90c1a8 and name node. |