分享

nova启动虚拟机时报错

alp5345 发表于 2014-8-10 14:28:52 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 29398
我用命令: nova boot --image 606a0716-8833-4b16-b8c6-17d2850f1556 --flavor 1 --nic net-id=da2bb469-fa80-4c74-8807-1d3b0bb88180 vml1
启动虚拟机的时候报错 ERROR: The resource could not be found. (HTTP 404) (Request-ID: req-d948bc62-39c8-432a-9811-d1720bb21435)
nova-scheduler.log日志下有错误  :l -f /var/log/nova/nova-scheduler.log
2014-08-03 18:45:51.454 WARNING nova.openstack.common.db.sqlalchemy.session [req-323026a0-418c-4786-aefd-399bc6a00344 None None] SQL connection failed. 10 attempts left.
2014-08-03 18:46:02.410 INFO nova.openstack.common.rpc.common [req-323026a0-418c-4786-aefd-399bc6a00344 None None] Connected to AMQP server on 172.16.77.128:5672
2014-08-03 18:46:02.441 INFO nova.openstack.common.rpc.common [req-323026a0-418c-4786-aefd-399bc6a00344 None None] Connected to AMQP server on 172.16.77.128:5672
2014-08-03 19:28:15.578 1206 INFO nova.service [-] Caught SIGTERM, exiting
2014-08-03 19:28:49.893 3821 AUDIT nova.service [-] Starting scheduler node (version 2013.1.5)
2014-08-03 19:28:52.393 INFO nova.openstack.common.rpc.common [req-7642a784-1859-4498-b8d4-e2925448e9e5 None None] Connected to AMQP server on 172.16.77.128:5672
2014-08-03 19:28:52.423 INFO nova.openstack.common.rpc.common [req-7642a784-1859-4498-b8d4-e2925448e9e5 None None] Connected to AMQP server on 172.16.77.128:5672
2014-08-03 23:34:54.275 WARNING nova.scheduler.driver [req-4fb98ffb-5f3b-4b4b-b8e0-b204312b56e5 653f4349d2b54d6898273ba303b7228d a0d893bc04e84e7c969443acd2c588ed] [instance: 0c026eb1-8cb7-4a37-a1ff-7869cac3d06e] Setting instance to ERROR state.
2014-08-04 00:07:26.424 ERROR nova.scheduler.filter_scheduler [req-0c633b56-bc18-4ab8-83a2-e944e27c60e9 d6c60a12179f4d30815bccb1aa1ed53c 9b7f3f3e764a451f9b084a13601c16f7] [instance: 8458bba5-fd9c-4cc8-9c8e-038ac9161df3] Error from last host: compute1 (node compute1): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 864, in _run_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1123, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__\n    self.gen.next()\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1118, in _spawn\n    self._legacy_nw_info(network_info),\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 703, in _legacy_nw_info\n    network_info = network_info.legacy()\n', u"AttributeError: 'list' object has no attribute 'legacy'\n"]
2014-08-04 00:07:26.544 WARNING nova.scheduler.driver [req-0c633b56-bc18-4ab8-83a2-e944e27c60e9 d6c60a12179f4d30815bccb1aa1ed53c 9b7f3f3e764a451f9b084a13601c16f7] [instance: 8458bba5-fd9c-4cc8-9c8e-038ac9161df3] Setting instance to ERROR state.
请问该怎么解决啊

已有(1)人评论

跳转到指定楼层
howtodown 发表于 2014-8-10 15:25:15
nova.openstack.common.db.sqlalchemy.session [req-323026a0-418c-4786-aefd-399bc6a00344 None None] SQL connection failed. 10 attempts left.
2014-08-03 18:46:02.410 INFO nova.openstack.common.rpc.common [req-323026a0-418c-4786-aefd-399bc6a00344 None None] Connected to AMQP server on 172.16.77.128:5672

从这里面信息,只能得出这些信息,你看看为什么会SQL connection failed

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条