zoukankan      html  css  js  c++  java
  • openstack Train版 “nova-status upgrade check”报错:Forbidden: Forbidden (HTTP 403)

    部署openstack train版,在部署完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,deny
            Allow 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

  • 相关阅读:
    laravel 汇总数据
    Sway
    利用 Windows API Code Pack 修改音乐的 ID3 信息
    Windows Server 2012 R2 设置 NTP 服务
    Visual Studio "14" CTPs
    Win8.1 查看 “Windows 体验指数“
    json2csharp & json 格式化
    山寨版 WP8.1 Cortana 启动 PC
    Newtonsoft.Json WindowPhone7.1
    Cisco交换机基础命令 + Win Server08 R2 多网卡配置链路聚合
  • 原文地址:https://www.cnblogs.com/omgasw/p/12016839.html
Copyright © 2011-2022 走看看