Ask Your Question
0

On Stein, "nova-status upgrade check" check failed [closed]

asked 2019-05-23 00:04:06 -0600

mystic gravatar image

updated 2019-05-23 20:31:53 -0600

[root@controller ~]# nova-status upgrade check

Error:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 515, in main
ret = fn(fn_args, *fn_kwargs)
File "/usr/lib/python2.7/site-packages/oslo_upgradecheck/upgradecheck.py", line 99, in check
result = func(self)
File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 160, in _check_placement
versions = self._placement_get("/")
File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 150, in _placement_get
return client.get(path, raise_exc=True).json()
File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 375, in get
return self.request(url, 'GET', *kwargs)
File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 237, in request
return self.session.request(url, method, *
kwargs)
File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 890, in request
raise exceptions.from_response(resp, method, url)
Forbidden: Forbidden (HTTP 403)

[root@controller ~]#
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by mystic
close date 2019-05-28 20:22:06.545978

1 answer

Sort by » oldest newest most voted
0

answered 2019-05-23 00:09:33 -0600

mystic gravatar image

I think it's a bug on Stein. It needs to edit the /etc/httpd/conf.d/00-placement-api.conf to add the following config inside <virtualhost *:8778=""> section.

<Directory /usr/bin>
<IfVersion >= 2.4>
    Require all granted
</IfVersion>
<IfVersion < 2.4>
    Order allow,deny
    Allow from all
</IfVersion>
</Directory>

But this info is not declared in the documentation.

edit flag offensive delete link more

Comments

This depends on how your cloud is deployed. For example, on my cloud nova-status upgrade check doesn't generate an error, and the placement config file is named 10-placement_wsgi.conf.

Perhaps Placement is not packaged correctly on Centos.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-23 00:14:55 -0600 )edit

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 ( 2019-05-23 01:16:16 -0600 )edit

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 ( 2019-05-23 01:19:19 -0600 )edit

I don’t want to split hairs, but the bug is in openstack-nova-placement-api-15.0.0-1.el7, which is the Red Hat package of the Placement service. It’s Red Hat’s packaging bug. Other distros’ packages are likely to be different.

Rocky and Stein Packstack on Centos don’t have this problem.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-23 01:47:44 -0600 )edit

Thanks a lot. I worked on rhel7.6.

mystic gravatar imagemystic ( 2019-05-23 03:56:38 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-05-23 00:04:06 -0600

Seen: 514 times

Last updated: May 23