Nova-scheduler服务启动失败:一直在启动中

Nova-scheduler服务因数据库同步失败而无法启动。错误日志显示为数据库连接丢失。通过检查和解决数据库连接问题,重新启动服务后,服务成功启动。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Nova-scheduler服务启动失败
在这里插入图片描述
原因:查看日志文件:是数据库同步的问题,数据库没同步成功
[root@controller02 nova]# tail -n 50 nova-scheduler.log
2019-06-04 14:43:51.423 41873 ERROR nova File
“/usr/lib/python2.7/site-packages/nova/objects/aggregate.py”, line 533, in get_all
2019-06-04 14:43:51.423 41873 ERROR nova _get_all_from_db(context)]
2019-06-04 14:43:51.423 41873 ERROR nova File
“/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py”, line 987, in wrapper
2019-06-04 14:43:51.423 41873 ERROR nova with self._transaction_scope(context):
2019-06-04 14:43:51.423 41873 ERROR nova File “/usr/lib64/python2.7/contextlib.py”, line 17, in enter
2019-06-04 14:43:51.423 41873 ERROR nova return self.gen.next()
2019-06-04 14:43:51.423 41873 ERROR nova File
“/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py”, line 1037, in
_transaction_scope
2019-06-04 14:43:51.423 41873 ERROR nova context=context) as resource:
2019-06-04 14:43:51.423 41873 ERROR nova File “/usr/lib64/python2.7/contextlib.py”, line 17, in enter
2019-06-04 14:43:51.423 41873 ERROR nova return self.gen.next()
2019-06-04 14:43:51.423 41873 ERROR nova File “/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py”, line 640, in _session
2019-06-04 14:43:51.423 41873 ERROR nova bind=self.connection, mode=self.mode)
2019-06-04 14:43:51.423 41873 ERROR nova File
“/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py”, line 404, in _create_session
2019-06-04 14:43:51.423 41873 ERROR nova self._start()
2019-06-04 14:43:51.423 41873 ERROR nova File
“/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py”, line 491, in _start
2019-06-04 14:43:51.423 41873 ERROR nova engine_args, maker_args)
2019-06-04 14:43:51.423 41873 ERROR nova File
“/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py”, line 515, in _setup_for_connection
2019-06-04 14:43:51.423 41873 ERROR nova sql_connection=sql_connection,
**engine_kwargs)
2019-06-04 14:43:51.423 41873 ERROR nova File
“/usr/lib/python2.7/site-packages/debtcollector/renames.py”, line 43, in decorator
2019-06-04 14:43:51.423 41873 ERROR nova return wrapped(*args, **kwargs)
2019-06-04 14:43:51.423 41873 ERROR nova File
“/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py”, line 184, in create_engine
2019-06-04 14:43:51.423 41873 ERROR nova test_conn = _test_connection(engine,
max_retries, retry_interval)
2019-06-04 14:43:51.423 41873 ERROR nova File
“/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py”, line 370, in
_test_connection
2019-06-04 14:43:51.423 41873 ERROR nova six.reraise(type(de_ref), de_ref)
2019-06-04 14:43:51.423 41873 ERROR nova File “”, line 2, in reraise
2019-06-04 14:43:51.423 41873 ERROR nova DBConnectionError: (pymysql.err.OperationalError) (2013, ‘Lost connection to MySQL server during query’) (Background on this error at: http://sqlalche.me/e/e3q8)
2019-06-04 14:43:51.423 41873 ERROR nova
2019-06-04 14:44:11.984 46626 INFO oslo_service.periodic_task [-] Skipping periodic task _discover_hosts_in_cells because its interval is negative
2019-06-04 14:45:12.876 46626 WARNING oslo_db.sqlalchemy.engines
[req-7d9b8e0d-e715-46aa-941a-b0c88db65b30 - - - - -] SQL connection failed. 10 attempts left.:
DBConnectionError: (pymysql.err.OperationalError) (2013, ‘Lost connection to MySQL server
during query’) (Background on this error at: http://sqlalche.me/e/e3q8)
2019-06-04 14:46:23.853 46626 WARNING oslo_db.sqlalchemy.engines
[req-7d9b8e0d-e715-46aa-941a-b0c88db65b30 - - - - -] SQL connection failed. 9 attempts left.:
DBConnectionError: (pymysql.err.OperationalError) (2013, ‘Lost connection to MySQL server
during query’) (Background on this error at: http://sqlalche.me/e/e3q8)
2019-06-04 14:47:33.877 46626 WARNING oslo_db.sqlalchemy.engines
[req-7d9b8e0d-e715-46aa-941a-b0c88db65b30 - - - - -] SQL connection failed. 8 attempts left.:
DBConnectionError: (pymysql.err.OperationalError) (2013, ‘Lost connection to MySQL server
during query’) (Background on this error at: http://sqlalche.me/e/e3q8)
2019-06-04 14:48:43.905 46626 WARNING oslo_db.sqlalchemy.engines
[req-7d9b8e0d-e715-46aa-941a-b0c88db65b30 - - - - -] SQL connection failed. 7 attempts left.:
DBConnectionError: (pymysql.err.OperationalError) (2013, ‘Lost connection to MySQL server
during query’) (Background on this error at: http://sqlalche.me/e/e3q8)
2019-06-04 14:49:53.930 46626 WARNING oslo_db.sqlalchemy.engines
[req-7d9b8e0d-e715-46aa-941a-b0c88db65b30 - - - - -] SQL connection failed. 6 attempts left.:
DBConnectionError: (pymysql.err.OperationalError) (2013, ‘Lost connection to MySQL server
during query’) (Background on this error at: http://sqlalche.me/e/e3q8)
2019-06-04 14:51:03.959 46626 WARNING oslo_db.sqlalchemy.engines
[req-7d9b8e0d-e715-46aa-941a-b0c88db65b30 - - - - -] SQL connection failed. 5 attempts left.:
DBConnectionError: (pymysql.err.OperationalError) (2013, ‘Lost connection to MySQL server
during query’) (Background on this error at: http://sqlalche.me/e/e3q8)
2019-06-04 14:51:26.474 46626 WARNING oslo_config.cfg
[req-7d9b8e0d-e715-46aa-941a-b0c88db65b30 - - - - -] Option “dhcpbridge” from group
“DEFAULT” is deprecated for removal (
nova-network is deprecated, as are any related configuration options.
). Its value may be silently ignored in the future.
2019-06-04 14:51:26.482 46626 WARNING oslo_config.cfg
[req-7d9b8e0d-e715-46aa-941a-b0c88db65b30 - - - - -] Option “dhcpbridge_flagfile” from group “DEFAULT” is deprecated for removal (
nova-network is deprecated, as are any related configuration options.
). Its value may be silently ignored in the future.
2019-06-04 14:51:26.484 46626 WARNING oslo_config.cfg
[req-7d9b8e0d-e715-46aa-941a-b0c88db65b30 - - - - -] Option “firewall_driver” from group “DEFAULT” is deprecated for removal (
nova-network is deprecated, as are any related configuration options.
). Its value may be silently ignored in the future.
2019-06-04 14:51:26.485 46626 WARNING oslo_config.cfg
[req-7d9b8e0d-e715-46aa-941a-b0c88db65b30 - - - - -] Option “force_dhcp_release” from group “DEFAULT” is deprecated for removal (
nova-network is deprecated, as are any related configuration options.
). Its value may be silently ignored in the future.
2019-06-04 14:51:26.520 46626 WARNING oslo_config.cfg
[req-7d9b8e0d-e715-46aa-941a-b0c88db65b30 - - - - -] Option “use_neutron” from group “DEFAULT” is deprecated for removal (
nova-network is deprecated, as are any related configuration options.
). Its value may be silently ignored in the future.
2019-06-04 14:51:26.697 46626 INFO nova.service [-] Starting scheduler node (version 17.0.10-1.el7)

同步数据库:
在这里插入图片描述
重新启动服务:服务启动成功

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值