openstack创建实例计算节点报错,compute的nova-compute.log如下 403 Forbidden, You don't have permission to access /resource_providers on this server
Failed to retrieve resource provider tree from placement API for UUID a4c9bc7f-8006-4b0e-b426-0feb30d4a939. 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>
Error updating resources for node compute.: ResourceProviderRetrievalFailed: Failed to get resource provider with UUID a4c9bc7f-8006-4b0e-b426-0feb30d4a939
openstack计算节点没权限
配置计算机的/etc/httpd/conf.d/00-nova-placement-api.conf配置文件
添加下边配置:
<Directory /usr/bin>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
之后重启计算节点和控制节点openstack服务即可。