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

  • 相关阅读:
    miniSpartan6, another Spartan 6 Kit
    XuLA/XuLA2
    Papilio Pro Boards
    STM32 Hardware Development
    Configuring spartan 6 using mcu and spi flash
    STM32 IO口双向问题
    [Projet] Module NFC
    Spartan-6 FPGA Configuration
    TRF7970A IC Communication Interface
    电动门/汽车遥控器拷贝机
  • 原文地址:https://www.cnblogs.com/omgasw/p/12016839.html
Copyright © 2011-2022 走看看