compute nova日志报错403

nova 报错 403 没有权限

 

2022-08-11 09:13:54.985 1130 ERROR nova.scheduler.client.report [req-53c51f27-48af-4577-9bf4-09d175a9f9ed - - - - -] [None] Failed to retrieve resource provider tree from placement API for UUID 974d23ee-725d-48f3-80c0-111a9f7e2619. Got 403: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /resource_providers
on this server.</p>
</body></html>


2022
-08-11 09:13:54.985 1130 ERROR nova.compute.manager [req-53c51f27-48af-4577-9bf4-09d175a9f9ed - - - - -] Error updating resources for node compute1.: ResourceProviderRetrievalFailed: Failed to get resource provider with UUID 974d23ee-725d-48f3-80c0-111a9f7e2619 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager Traceback (most recent call last): 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 8785, in _update_available_resource_for_node 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager startup=startup) 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 887, in update_available_resource 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager self._update_available_resource(context, resources, startup=startup) 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 328, in inner 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager return f(*args, **kwargs) 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 972, in _update_available_resource 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager self._update(context, cn, startup=startup) 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 1237, in _update 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager self._update_to_placement(context, compute_node, startup) 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 68, in wrapped_f 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager return Retrying(*dargs, **dkw).call(f, *args, **kw) 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 223, in call 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager return attempt.get(self._wrap_exception) 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 261, in get 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager six.reraise(self.value[0], self.value[1], self.value[2]) 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 217, in call 2022-08-11 09:13:54.985 1130 ERROR nova.compute.manager attempt = Attempt(fn(*args, **kwargs), attempt_number, False)

 

openstack计算节点没权限

配置计算机的/etc/httpd/conf.d/00-nova-placement-api.conf配置文件

添加下边配置:

 

 

重启 controller http 和 openstack-nova-api.service 服务

systemctl restart openstack-nova-api.service
systemctl restart httpd

 

posted @ 2022-08-11 11:17  fengjian1585  阅读(334)  评论(0编辑  收藏  举报