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