根據官方文檔:https://docs.openstack.org/nova/queens/install/controller-install-rdo.html,部署nova服務。html
到最後的幾步時,也就是同步api數據庫「Populate the nova-api database」時,出現報錯。node
[root@linux-node1 ~]# 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
根據報錯信息找到對應的文件,註釋第32五、32九、330、33一、332和333行的配置。python
[root@linux-node1 ~]# 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 # )
再次執行同步數據庫的命令:linux
[root@linux-node1 ~]# su -s /bin/sh -c "nova-manage api_db sync" nova
沒有再返回任何信息,說明這部分沒有問題。sql
這種報錯,想在百度上搜索出東西感受不太現實。既然報錯是說不支持,那索性就把不支持的語句註釋掉。數據庫
目前看,是沒有問題的。api