分享

新手求助!无法启动实例

andywood 发表于 2015-8-25 10:36:00 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 20 94536
由于是“新手上路”,无法在openstack学习法帖求助,只能在本版发帖求助。

在启动一个实例的时候,
[mw_shl_code=bash,true]nova boot --flavor m1.tiny --image cirros-0.3.4-x86_64 --nic net-id=3be58b93-32ad-42bb-80c7-7979554d6bc4 --security-group default --key-name demo-key demo-instance8[/mw_shl_code]
出现了错误:
| 0afd8a77-88af-439e-bb79-22a8aeb65e72 | demo-instance8 | ERROR  | -          | NOSTATE     | demo-net=192.168.1.10 |

查看nova-compute.log,出现了如下的警告信息:

2015-08-25 09:42:53.009 6440 WARNING nova.virt.disk.api [req-3bcf4c8f-57e0-4ae1-9a43-730c02b02621 - - - - -] Unable to mount image /var/lib/nova/instances/54626e50-e17a-4bfc-9f0e-a6ed581582be/disk with error libguestfs installed but not usable (/usr/bin/supermin-helper exited with error status 1.
To see full error messages you may need to enable debugging.
See http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs). Cannot resize.
2015-08-25 09:42:53.128 6440 ERROR nova.compute.manager [req-3bcf4c8f-57e0-4ae1-9a43-730c02b02621 - - - - -] [instance: 54626e50-e17a-4bfc-9f0e-a6ed581582be] Instance failed to spawn


查看nova-conductor.log:
2015-08-25 09:42:53.476 49821 ERROR nova.scheduler.utils [req-75a79cbb-9f58-41ea-95ae-744436d34d9a ed9a79c01e2b423c8ba72afb862a6a3f b7be09574fd549acbf094ae25da91377 - - -] [instance: 54626e50-e17a-4bfc-9f0e-a6ed581582be] 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 2219, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2362, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance 54626e50-e17a-4bfc-9f0e-a6ed581582be was re-scheduled: Unexpected vif_type=binding_failed\n']
2015-08-25 09:42:53.479 49821 INFO oslo_messaging._drivers.impl_rabbit [req-75a79cbb-9f58-41ea-95ae-744436d34d9a ed9a79c01e2b423c8ba72afb862a6a3f b7be09574fd549acbf094ae25da91377 - - -] Connecting to AMQP server on controller:5672
2015-08-25 09:42:53.497 49821 INFO oslo_messaging._drivers.impl_rabbit [req-75a79cbb-9f58-41ea-95ae-744436d34d9a ed9a79c01e2b423c8ba72afb862a6a3f b7be09574fd549acbf094ae25da91377 - - -] Connected to AMQP server on controller:5672
2015-08-25 09:42:53.543 49821 WARNING nova.scheduler.utils [req-75a79cbb-9f58-41ea-95ae-744436d34d9a ed9a79c01e2b423c8ba72afb862a6a3f b7be09574fd549acbf094ae25da91377 - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available.

已有(20)人评论

跳转到指定楼层
desehawk 发表于 2015-8-25 17:45:36
计算在计算节点和控制节点都看看。还有看看三个节点hosts配置是否有问题。

No valid host was found. There are not enough hosts available.

回复

使用道具 举报

andywood 发表于 2015-8-25 18:16:29
desehawk 发表于 2015-8-25 17:45
计算在计算节点和控制节点都看看。还有看看三个节点hosts配置是否有问题。

No valid host was found. Th ...


计算在计算节点和控制节点都看看。”是指?


controller和network是在同一个节点上了,compute占用一个节点,hosts没有问题
另外:
执行
[mw_shl_code=bash,true]tail -300 /var/log/nova/nova-compute.log | grep "WARNING"[/mw_shl_code]

有这样的几条:

2015-08-25 18:01:43.835 2938 WARNING nova.compute.manager [req-9fc38912-4310-4aa0-813d-4d6627564e6f - - - - -] While synchronizing instance power states, found 2 instances in the database and 0 instances on the hypervisor.
2015-08-25 18:10:50.766 12941 WARNING nova.virt.disk.api [req-fb93cd4b-0638-4584-a4f3-41b003abd056 - - - - -] Unable to mount image /var/lib/nova/instances/adedcc61-bd0c-4b96-9148-d65bf71f8585/disk with error libguestfs installed but not usable (/usr/bin/supermin-helper exited with error status 1.
2015-08-25 18:10:54.573 12941 WARNING nova.compute.manager [req-24332880-c929-4263-ad30-0bfbb14f4c24 - - - - -] While synchronizing instance power states, found 3 instances in the database and 0 instances on the hypervisor.



回复

使用道具 举报

Alkaloid0515 发表于 2015-8-25 21:23:58
andywood 发表于 2015-8-25 18:16
“计算在计算节点和控制节点都看看。”是指?

hypervisor是KVM还是什么?
为何这么安装
回复

使用道具 举报

andywood 发表于 2015-8-26 09:27:00
Alkaloid0515 发表于 2015-8-25 21:23
hypervisor是KVM还是什么?
为何这么安装

是KVM啊

要怎么安装啊?
回复

使用道具 举报

Alkaloid0515 发表于 2015-8-26 11:49:31
andywood 发表于 2015-8-26 09:27
是KVM啊

要怎么安装啊?

什么版本,nova-network,还是neutron
回复

使用道具 举报

andywood 发表于 2015-8-26 12:18:07
Alkaloid0515 发表于 2015-8-26 11:49
什么版本,nova-network,还是neutron

neutron

另外把controller和network安装到了同一个节点上,compute单独一个节点
回复

使用道具 举报

Alkaloid0515 发表于 2015-8-26 13:41:41
andywood 发表于 2015-8-26 12:18
neutron

另外把controller和network安装到了同一个节点上,compute单独一个节点

是按照文档装的,还是自己琢磨着的。
最好分开装
回复

使用道具 举报

Alkaloid0515 发表于 2015-8-26 13:49:02
andywood 发表于 2015-8-26 12:18
neutron

另外把controller和network安装到了同一个节点上,compute单独一个节点

执行这条命令

[mw_shl_code=bash,true]egrep -c '(vmx|svm)' /proc/cpuinfo[/mw_shl_code]

返回值是什么
回复

使用道具 举报

andywood 发表于 2015-8-26 15:26:28

执行命令后,返回24

按照官方文档安装的,由于硬件所限,只能把controller和network安装到同一个节点

回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条