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

  • 相关阅读:
    smarty中ifelse、foreach以及获取数组中键值名的一个实例
    smarty逻辑运算符
    python strip()函数 介绍
    (转)论python工厂函数与内建函数
    数据结构哈希表(转)
    哈希表算法的编写
    哈希表(转)
    平衡二叉树的旋转操作
    并查集详解(转)
    Java数组技巧攻略
  • 原文地址:https://www.cnblogs.com/omgasw/p/12016839.html
Copyright © 2011-2022 走看看