openstack Stein版 “nova-status upgrade check”报错:Forbidden: Forbidden (HTTP 403)
部署openstack Stein版,在部署完nova项目时,进行检查,执行 nova-status upgrade check 返回报错信息如下:
[root@controller ~]# nova-status upgrade check
Error:
Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/nova/cmd/status.py”, line 398, in main
ret = fn(*fn_args, **fn_kwargs)
File “/usr/lib/python2.7/site-packages/oslo_upgradecheck/upgradecheck.py”, line 102, in check
result = func(self)
File “/usr/lib/python2.7/site-packages/nova/cmd/status.py”, line 164, in _check_placement
versions = self._placement_get("/")
File “/usr/lib/python2.7/site-packages/nova/cmd/status.py”, line 154, in _placement_get
return client.get(path, raise_exc=True).json()
File “/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py”, line 386, in get
return self.request(url, ‘GET’, **kwargs)
File “/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py”, line 248, in request
return self.session.request(url, method, **kwargs)
File “/usr/lib/python2.7/site-packages/keystoneauth1/session.py”, line 943, in request
raise exceptions.from_response(resp, method, url)
Forbidden: Forbidden (HTTP 403)
1.解决方法如下:
Due to a packaging bug, you must enable access to the Placement API by adding the following configuration to /etc/httpd/conf.d/00-nova-placement-api.conf:
<Directory /usr/bin><IfVersion >= 2.4>Require all granted</IfVersion><IfVersion < 2.4>Order allow,denyAllow from all</IfVersion>
</Directory>
Restart the httpd service:
#systemctl restart httpd
2.报错原因:
No, it’s a bug since queens version, which is still not fixed on Stein. https://bugzilla.redhat.com/show_bug.cgi?id=1430540 (placement) The following link is the queen’s nova installation. https://docs.openstack.org/nova/queens/install/controller-install-rdo.html (Nova)
mystic gravatar imagemystic (May 23 '19)
Maybe openstack thinks they had fixed the problem, so they removed the solution from the stein documentation. But, in fact, the problem still exists in the stein version.
mystic gravatar imagemystic (May 23 '19)
3.参考链接:
https://ask.openstack.org/en/question/122313/on-stein-nova-status-upgrade-check-check-failed/
https://docs.openstack.org/nova/queens/install/controller-install-rdo.html