分享

使用nova网络方式新建实例失败

黑发洋葱头 发表于 2015-10-10 11:28:58 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 10 24293
环境为一台 控制节点,一台计算节点,单网卡,单IP(后两台机器都设置了eth0:0这样的虚拟IP,问题依旧)
控制节点:nova boot --flavor m1.tiny --image cirros-0.3.3-x86_64 --nic net-id=446205ac-a81b-48f4-9000-11f98cea75a2 --security-group default --key-name auth-key instance1   报错如下:
+--------------------------------------+-----------+--------+------------+-------------+-------------------------+
| ID                                   | Name      | Status | Task State | Power State | Networks                |
+--------------------------------------+-----------+--------+------------+-------------+-------------------------+
| 46d2a14f-10ae-4c41-bb62-8de62419e75d | instance1 | ERROR  | -          | NOSTATE     | demo-net=172.16.100.162 |
+--------------------------------------+-----------+--------+------------+-------------+-------------------------+

nova-conductor.log
2015-10-09 18:03:05.968 14207 ERROR nova.scheduler.utils [req-4d2bce29-b6fc-40ff-a8d6-e375c61f6302 None] [instance: 46d2a14f-10ae-4c41-bb62-8de62419e75d] Error from last host: compute-1-5 (node compute-1-5): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2033, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2164, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance 46d2a14f-10ae-4c41-bb62-8de62419e75d was re-scheduled: 'ascii' codec can't decode byte 0xe6 in position 54: ordinal not in range(128)\n"]
2015-10-09 18:03:05.970 14207 INFO oslo.messaging._drivers.impl_rabbit [req-4d2bce29-b6fc-40ff-a8d6-e375c61f6302 ] Connecting to AMQP server on compute-1-2:5672
2015-10-09 18:03:05.980 14207 INFO oslo.messaging._drivers.impl_rabbit [req-4d2bce29-b6fc-40ff-a8d6-e375c61f6302 ] Connected to AMQP server on compute-1-2:5672
2015-10-09 18:03:05.993 14207 WARNING nova.scheduler.driver [req-4d2bce29-b6fc-40ff-a8d6-e375c61f6302 None] [instance: 46d2a14f-10ae-4c41-bb62-8de62419e75d] NoValidHost exception with message: 'No valid host was found.'
2015-10-09 18:03:05.993 14207 WARNING nova.scheduler.driver [req-4d2bce29-b6fc-40ff-a8d6-e375c61f6302 None] [instance: 46d2a14f-10ae-4c41-bb62-8de62419e75d] Setting instance to ERROR state.

nova-scheduler.log
2015-10-09 18:03:05.990 14026 INFO nova.filters [req-4d2bce29-b6fc-40ff-a8d6-e375c61f6302 None] Filter RetryFilter returned 0 hosts

计算节点报错:
nova-compute.log

2015-10-10 11:19:17.771 47806 AUDIT nova.compute.manager [req-0d6aeec4-8ef2-4dd9-8e39-9989ca63c989 None] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Starting instance...
2015-10-10 11:19:17.831 47806 AUDIT nova.compute.claims [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Attempting claim: memory 512 MB, disk 1 GB
2015-10-10 11:19:17.832 47806 AUDIT nova.compute.claims [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Total memory: 128727 MB, used: 512.00 MB
2015-10-10 11:19:17.832 47806 AUDIT nova.compute.claims [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] memory limit: 193090.50 MB, free: 192578.50 MB
2015-10-10 11:19:17.833 47806 AUDIT nova.compute.claims [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Total disk: 976 GB, used: 0.00 GB
2015-10-10 11:19:17.833 47806 AUDIT nova.compute.claims [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] disk limit not specified, defaulting to unlimited
2015-10-10 11:19:17.843 47806 AUDIT nova.compute.claims [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Claim successful
2015-10-10 11:19:17.931 47806 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute-1-5', 'compute-1-5')
2015-10-10 11:19:18.018 47806 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute-1-5', 'compute-1-5')
2015-10-10 11:19:18.221 47806 INFO nova.virt.libvirt.driver [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Creating image
2015-10-10 11:19:19.305 47806 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute-1-5', 'compute-1-5')
2015-10-10 11:19:21.007 47806 WARNING nova.virt.disk.vfs.guestfs [-] Failed to close augeas aug_close: do_aug_close: you must call 'aug-init' first to initialize Augeas
2015-10-10 11:19:21.162 47806 INFO nova.virt.libvirt.firewall [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Called setup_basic_filtering in nwfilter
2015-10-10 11:19:21.162 47806 INFO nova.virt.libvirt.firewall [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Ensuring static filters
2015-10-10 11:19:21.163 47806 ERROR nova.compute.manager [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Instance failed to spawn
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Traceback (most recent call last):
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2246, in _build_resources
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]     yield resources
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2116, in _build_and_run_instance
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]     block_device_info=block_device_info)
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2622, in spawn
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]     block_device_info, disk_info=disk_info)
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4417, in _create_domain_and_network
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]     network_info)
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/firewall.py", line 307, in setup_basic_filtering
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]     self.nwfilter.setup_basic_filtering(instance, network_info)
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/firewall.py", line 117, in setup_basic_filtering
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]     self._ensure_static_filters()
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/firewall.py", line 220, in _ensure_static_filters
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]     self._define_filter(self.nova_no_nd_reflection_filter())
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/firewall.py", line 71, in nova_no_nd_reflection_filter
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]     uuid = self._get_filter_uuid('nova-no-nd-reflection')
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/firewall.py", line 247, in _get_filter_uuid
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]     LOG.debug("Cannot find UUID for filter '%s': '%s'" % (name, e))
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]   File "/usr/lib64/python2.7/logging/__init__.py", line 1421, in debug
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]     msg, kwargs = self.process(msg, kwargs)
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]   File "/usr/lib/python2.7/site-packages/nova/openstack/common/log.py", line 310, in process
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]     msg = six.text_type(msg)
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 54: ordinal not in range(128)
2015-10-10 11:19:21.163 47806 TRACE nova.compute.manager [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d]
2015-10-10 11:19:21.164 47806 AUDIT nova.compute.manager [req-0d6aeec4-8ef2-4dd9-8e39-9989ca63c989 None] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Terminating instance
2015-10-10 11:19:21.166 47806 WARNING nova.virt.libvirt.driver [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] During wait destroy, instance disappeared.
2015-10-10 11:19:21.166 47806 INFO nova.virt.libvirt.firewall [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Attempted to unfilter instance which is not filtered
2015-10-10 11:19:21.245 47806 INFO nova.virt.libvirt.driver [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Deleting instance files /var/lib/nova/instances/79dd2154-a645-4393-8db5-4acfcd5fd24d_del
2015-10-10 11:19:21.245 47806 INFO nova.virt.libvirt.driver [-] [instance: 79dd2154-a645-4393-8db5-4acfcd5fd24d] Deletion of /var/lib/nova/instances/79dd2154-a645-4393-8db5-4acfcd5fd24d_del complete

2015-10-10 11:19:21.315 47806 INFO nova.scheduler.client.report [-] Compute_service record updated for ('compute-1-5', 'compute-1-5')

message也报错如下
Oct 10 11:19:18 compute-1-5 kvm: 1 guest now active
Oct 10 11:19:19 compute-1-5 dnsmasq[29149]: failed to load names from /var/lib/nova/networks/nova-br100.hosts: No such file or directory
Oct 10 11:19:19 compute-1-5 dnsmasq-dhcp[29149]: read /var/lib/nova/networks/nova-br100.conf
Oct 10 11:19:19 compute-1-5 dnsmasq-dhcp[29149]: read /var/lib/nova/networks/nova-br100.opts
Oct 10 11:19:20 compute-1-5 kernel: kvm [5650]: vcpu0 unhandled rdmsr: 0x345
Oct 10 11:19:20 compute-1-5 kernel: kvm_set_msr_common: 22 callbacks suppressed
Oct 10 11:19:20 compute-1-5 kernel: kvm [5650]: vcpu0 unhandled wrmsr: 0x680 data 0
。。。。
Oct 10 11:19:20 compute-1-5 kernel: kvm [5650]: vcpu0 unhandled wrmsr: 0x6c4 data 0
Oct 10 11:19:21 compute-1-5 kvm: 0 guests now active
Oct 10 11:19:21 compute-1-5 dnsmasq-dhcp[29149]: DHCPDISCOVER(br100) 00:e0:81:e3:73:af no address available

实例能够分配到IP,但是好像是计算节点这边的问题,求教各位,这个怎么解决呢,是否与我的网络也有关系


已有(11)人评论

跳转到指定楼层
starrycheng 发表于 2015-10-10 11:55:55

【已解决】启动云主机时,No valid host was found.
http://www.aboutyun.com/thread-11203-1-1.html

跟上面类似,仅供参考。


点评

我的APMQ能连上,不是由于这个引起的,倒向是计算节点自身原因,但是我也找不出原因来  发表于 2015-10-10 11:58
回复

使用道具 举报

黑发洋葱头 发表于 2015-10-10 14:10:57
回复

使用道具 举报

黑发洋葱头 发表于 2015-10-10 14:23:52
会不会是因为机器只有一个网卡导致,实例和管理都是统一网络,这样会产生影响吗
回复

使用道具 举报

arsenduan 发表于 2015-10-10 15:54:55
黑发洋葱头 发表于 2015-10-10 14:23
会不会是因为机器只有一个网卡导致,实例和管理都是统一网络,这样会产生影响吗

一个网卡没有关系的。
关键配置正确
回复

使用道具 举报

黑发洋葱头 发表于 2015-10-10 15:56:25
配置是按照官方文档,可是一直报上述错误,求指教
回复

使用道具 举报

黑发洋葱头 发表于 2015-10-10 15:59:12
系统是centos7,用的源是juno版本的
回复

使用道具 举报

xuanxufeng 发表于 2015-10-10 20:07:29
黑发洋葱头 发表于 2015-10-10 15:59
系统是centos7,用的源是juno版本的

建议先按照标准,熟悉了在配置单个网卡。
否则出错,也不知道是哪里问题。

回复

使用道具 举报

xuanxufeng 发表于 2015-10-10 20:08:57
黑发洋葱头 发表于 2015-10-10 15:56
配置是按照官方文档,可是一直报上述错误,求指教

上述错误,只能通过看日志,所以先看日志在说。但是并不是所有的问题都能通过日志解决。
还需要了解原理,通过openstack知识等,然后在通过日志,这样解决的可能性比较大。


回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条