欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

packstack安装报错:Error: Systemd start for openstack-nova-scheduler failed!

程序员文章站 2022-04-30 23:29:31
...

根据报错得知 是Nova服务下的scheduler启动失败,对应的看下scheduler的日志是哪里出现问题,
查看/var/log/nova/nova-scheduler.log日志,(其他模块对应/var/log/nova/目录下对应名称)
可以看到报错信息

2021-03-31 13:26:35.666 24469 ERROR nova     context)
2021-03-31 13:26:35.666 24469 ERROR nova   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1337, in _handle_dbapi_exception
2021-03-31 13:26:35.666 24469 ERROR nova     util.raise_from_cause(newraise, exc_info)
2021-03-31 13:26:35.666 24469 ERROR nova   File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/compat.py", line 200, in raise_from_cause
2021-03-31 13:26:35.666 24469 ERROR nova     reraise(type(exception), exception, tb=exc_tb)
2021-03-31 13:26:35.666 24469 ERROR nova   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
2021-03-31 13:26:35.666 24469 ERROR nova     context)
2021-03-31 13:26:35.666 24469 ERROR nova   File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
2021-03-31 13:26:35.666 24469 ERROR nova     cursor.execute(statement, parameters)
2021-03-31 13:26:35.666 24469 ERROR nova   File "/usr/lib/python2.7/site-packages/pymysql/cursors.py", line 166, in execute
2021-03-31 13:26:35.666 24469 ERROR nova     result = self._query(query)
2021-03-31 13:26:35.666 24469 ERROR nova   File "/usr/lib/python2.7/site-packages/pymysql/cursors.py", line 322, in _query
2021-03-31 13:26:35.666 24469 ERROR nova     conn.query(q)
2021-03-31 13:26:35.666 24469 ERROR nova   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 841, in query
2021-03-31 13:26:35.666 24469 ERROR nova     self._affected_rows = self._read_query_result(unbuffered=unbuffered)
2021-03-31 13:26:35.666 24469 ERROR nova   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 1029, in _read_query_result
2021-03-31 13:26:35.666 24469 ERROR nova     result.read()
2021-03-31 13:26:35.666 24469 ERROR nova   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 1312, in read
2021-03-31 13:26:35.666 24469 ERROR nova     first_packet = self.connection._read_packet()
2021-03-31 13:26:35.666 24469 ERROR nova   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 991, in _read_packet
2021-03-31 13:26:35.666 24469 ERROR nova     packet.check_error()
2021-03-31 13:26:35.666 24469 ERROR nova   File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 393, in check_error
2021-03-31 13:26:35.666 24469 ERROR nova     err.raise_mysql_exception(self._data)
2021-03-31 13:26:35.666 24469 ERROR nova   File "/usr/lib/python2.7/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
2021-03-31 13:26:35.666 24469 ERROR nova     raise errorclass(errno, errval)
2021-03-31 13:26:35.666 24469 ERROR nova DBError: (pymysql.err.InternalError) (1054, u"Unknown column 'aggregates.uuid' in 'field list'") [SQL: u'SELECT aggregates.created_at AS aggregates_created_at, aggregates.updated_at AS aggregates_updated_at, aggregates.deleted_at AS aggregates_deleted_at, aggregates.deleted AS aggregates_deleted, aggregates.id AS aggregates_id, aggregates.uuid AS aggregates_uuid, aggregates.name AS aggregates_name, aggregate_hosts_1.created_at AS aggregate_hosts_1_created_at, aggregate_hosts_1.updated_at AS aggregate_hosts_1_updated_at, aggregate_hosts_1.deleted_at AS aggregate_hosts_1_deleted_at, aggregate_hosts_1.deleted AS aggregate_hosts_1_deleted, aggregate_hosts_1.id AS aggregate_hosts_1_id, aggregate_hosts_1.host AS aggregate_hosts_1_host, aggregate_hosts_1.aggregate_id AS aggregate_hosts_1_aggregate_id, aggregate_metadata_1.created_at AS aggregate_metadata_1_created_at, aggregate_metadata_1.updated_at AS aggregate_metadata_1_updated_at, aggregate_metadata_1.deleted_at AS aggregate_metadata_1_deleted_at, aggregate_metadata_1.deleted AS aggregate_metadata_1_deleted, aggregate_metadata_1.id AS aggregate_metadata_1_id, aggregate_metadata_1.`key` AS aggregate_metadata_1_key, aggregate_metadata_1.value AS aggregate_metadata_1_value, aggregate_metadata_1.aggregate_id AS aggregate_metadata_1_aggregate_id \nFROM aggregates LEFT OUTER JOIN aggregate_hosts AS aggregate_hosts_1 ON aggregates.id = aggregate_hosts_1.aggregate_id AND aggregate_hosts_1.deleted = %(deleted_1)s AND aggregates.deleted = %(deleted_2)s LEFT OUTER JOIN aggregate_metadata AS aggregate_metadata_1 ON aggregates.id = aggregate_metadata_1.aggregate_id AND aggregate_metadata_1.deleted = %(deleted_3)s AND aggregates.deleted = %(deleted_4)s \nWHERE aggregates.deleted = %(deleted_5)s'] [parameters: {u'deleted_5': 0, u'deleted_4': 0, u'deleted_3': 0, u'deleted_2': 0, u'deleted_1': 0}]

报错大意是要访问的授权库不存在,可以用mysql -u nova -p 进入查看是否有对应的库,查看外网社区文章有遇到对应问题的同学用同步数据库方式解决:
命令行运行:
nova-manage api_db sync
nova-manage db sync

再继续安装即可。