天天看點

queens版本openstack部署nova報錯解決

  根據官方文檔:https://docs.openstack.org/nova/queens/install/controller-install-rdo.html,部署nova服務。

  到最後的幾步時,也就是同步api資料庫“Populate the nova-api database”時,出現報錯。

[[email protected] ~]# su -s /bin/sh -c "nova-manage api_db sync" nova
/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py:332: NotSupportedWarning: Configuration option(s) ['use_tpool'] not supported
  exception.NotSupportedWarning      

  根據報錯資訊找到對應的檔案,注釋第325、329、330、331、332和333行的配置。

[[email protected] ~]# sed -n '325,333p' /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py
#        if not_supported:
            # would like to raise ValueError here, but there are just
            # too many unrecognized (obsolete?) configuration options
            # coming in from projects
#            warnings.warn(
#                "Configuration option(s) %r not supported" %
#                sorted(not_supported),
#                exception.NotSupportedWarning
#            )      

  再次執行同步資料庫的指令:

[root@linux-node1 ~]# su -s /bin/sh -c "nova-manage api_db sync" nova      

  沒有再傳回任何資訊,說明這部分沒有問題。

  這種報錯,想在百度上搜尋出東西感覺不太現實。既然報錯是說不支援,那索性就把不支援的語句注釋掉。

  目前看,是沒有問題的。

轉載于:https://blog.51cto.com/gagarin/2124735