分享

openstack M版创建云主机No valid host was found.

xiaoyiwow 发表于 2016-10-31 01:00:44 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 7596
Horizon的上创建云主机后报错
在controller,network,compute上运行的服务都正常,但是在compute中的ovs-cleanup的服务一直无法启动


在compute的nova-compute的log日志是:
----------------------------------------------------------------------------------------------------------
2016-10-29 15:30:20.917 28006 INFO nova.compute.claims [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] Attempting claim: memory 512 MB, disk 1 GB, vcpus 1 CPU
2016-10-29 15:30:20.917 28006 INFO nova.compute.claims [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] Total memory: 64411 MB, used: 512.00 MB
2016-10-29 15:30:20.918 28006 INFO nova.compute.claims [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] memory limit: 96616.50 MB, free: 96104.50 MB
2016-10-29 15:30:20.919 28006 INFO nova.compute.claims [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] Total disk: 329 GB, used: 0.00 GB
2016-10-29 15:30:20.920 28006 INFO nova.compute.claims [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] disk limit: 329.00 GB, free: 329.00 GB
2016-10-29 15:30:20.920 28006 INFO nova.compute.claims [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] Total vcpu: 64 VCPU, used: 0.00 VCPU
2016-10-29 15:30:20.921 28006 INFO nova.compute.claims [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] vcpu limit not specified, defaulting to unlimited
2016-10-29 15:30:20.952 28006 INFO nova.compute.claims [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] Claim successful
2016-10-29 15:30:21.571 28006 INFO nova.virt.libvirt.driver [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] Creating image
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] Instance failed network setup after 1 attempt(s)
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager Traceback (most recent call last):
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1570, in _allocate_network_async
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager     bind_host_id=bind_host_id)
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 666, in allocate_for_instance
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager     self._delete_ports(neutron, instance, created_port_ids)
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager     self.force_reraise()
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager     six.reraise(self.type_, self.value, self.tb)
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 655, in allocate_for_instance
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager     security_group_ids, available_macs, dhcp_opts)
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 259, in _create_port
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager     raise exception.PortBindingFailed(port_id=port_id)
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager PortBindingFailed: Binding failed for port bfb8b700-85af-4ff3-9061-0eb684162212, please check neutron logs for more information.
2016-10-29 15:30:22.998 28006 ERROR nova.compute.manager
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] Instance failed to spawn
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] Traceback (most recent call last):
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2218, in _build_resources
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     yield resources
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2064, in _build_and_run_instance
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     block_device_info=block_device_info)
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2765, in spawn
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     write_to_disk=True)
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 4695, in _get_guest_xml
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     network_info_str = str(network_info)
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/nova/network/model.py", line 521, in __str__
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     return self._sync_wrapper(fn, *args, **kwargs)
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/nova/network/model.py", line 504, in _sync_wrapper
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     self.wait()
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/nova/network/model.py", line 536, in wait
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     self[:] = self._gt.wait()
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 175, in wait
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     return self._exit_event.wait()
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 121, in wait
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     return hubs.get_hub().switch()
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 294, in switch
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     return self.greenlet.switch()
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     result = function(*args, **kwargs)
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 1145, in context_wrapper
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     return func(*args, **kwargs)
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1587, in _allocate_network_async
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     six.reraise(*exc_info)
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1570, in _allocate_network_async
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     bind_host_id=bind_host_id)
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 666, in allocate_for_instance
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     self._delete_ports(neutron, instance, created_port_ids)
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     self.force_reraise()
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     six.reraise(self.type_, self.value, self.tb)
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 655, in allocate_for_instance
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     security_group_ids, available_macs, dhcp_opts)
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 259, in _create_port
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]     raise exception.PortBindingFailed(port_id=port_id)
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] PortBindingFailed: Binding failed for port bfb8b700-85af-4ff3-9061-0eb684162212, please check neutron logs for more information.
2016-10-29 15:30:23.002 28006 ERROR nova.compute.manager [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a]
2016-10-29 15:30:23.007 28006 INFO nova.compute.manager [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] Terminating instance
2016-10-29 15:30:23.015 28006 INFO nova.virt.libvirt.driver [-] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] During wait destroy, instance disappeared.
2016-10-29 15:30:23.042 28006 INFO nova.virt.libvirt.driver [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] Deleting instance files /var/lib/nova/instances/811ad1a8-a084-4ab4-a51f-0c891923781a_del
2016-10-29 15:30:23.044 28006 INFO nova.virt.libvirt.driver [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] Deletion of /var/lib/nova/instances/811ad1a8-a084-4ab4-a51f-0c891923781a_del complete
2016-10-29 15:30:23.171 28006 INFO nova.compute.manager [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] Took 0.16 seconds to destroy the instance on the hypervisor.
2016-10-29 15:30:23.260 28006 INFO nova.compute.manager [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] Took 0.09 seconds to deallocate network for instance.
2016-10-29 15:31:18.628 28006 INFO nova.compute.resource_tracker [req-2e5f30f3-e50b-42d4-8ea3-934f21a7ab28 - - - - -] Auditing locally available compute resources for node compute1.openstack
2016-10-29 15:31:19.907 28006 INFO nova.compute.resource_tracker [req-2e5f30f3-e50b-42d4-8ea3-934f21a7ab28 - - - - -] Total usable vcpus: 64, total allocated vcpus: 0
2016-10-29 15:31:19.908 28006 INFO nova.compute.resource_tracker [req-2e5f30f3-e50b-42d4-8ea3-934f21a7ab28 - - - - -] Final resource view: name=compute1.openstack phys_ram=64411MB used_ram=512MB phys_disk=329GB used_disk=0GB total_vcpus=64 used_vcpus=0 pci_stats=[]
2016-10-29 15:31:19.982 28006 INFO nova.compute.resource_tracker [req-2e5f30f3-e50b-42d4-8ea3-934f21a7ab28 - - - - -] Compute_service record updated for compute1.openstack:compute1.openstack
2016-10-29 15:32:19.629 28006 INFO nova.compute.resource_tracker [req-2e5f30f3-e50b-42d4-8ea3-934f21a7ab28 - - - - -] Auditing locally available compute resources for node compute1.openstack
2016-10-29 15:32:20.924 28006 INFO nova.compute.resource_tracker [req-2e5f30f3-e50b-42d4-8ea3-934f21a7ab28 - - - - -] Total usable vcpus: 64, total allocated vcpus: 0
2016-10-29 15:32:20.925 28006 INFO nova.compute.resource_tracker [req-2e5f30f3-e50b-42d4-8ea3-934f21a7ab28 - - - - -] Final resource view: name=compute1.openstack phys_ram=64411MB used_ram=512MB phys_disk=329GB used_disk=0GB total_vcpus=64 used_vcpus=0 pci_stats=[]
2016-10-29 15:32:20.986 28006 INFO nova.compute.resource_tracker [req-2e5f30f3-e50b-42d4-8ea3-934f21a7ab28 - - - - -] Compute_service record updated for compute1.openstack:compute1.openstack
----------------------------------------------------------------------------------------------------------
在compute的openvswift-agent的log日志是:
2016-10-29 15:35:51.215 66322 ERROR neutron.agent.ovsdb.impl_vsctl [-] Unable to execute ['ovs-vsctl', '--timeout=10', '--oneline', '--format=json', '--', '--columns=ofport', 'list', 'Interface', 'br-int']. Exception: Exit code: 1; Stdin: ; Stdout: ; Stderr: sudo: no tty present and no askpass program specified


2016-10-29 15:35:52.233 66322 ERROR neutron.agent.ovsdb.impl_vsctl [-] Unable to execute ['ovs-vsctl', '--timeout=10', '--oneline', '--format=json', '--', '--columns=ofport', 'list', 'Interface', 'br-int']. Exception: Exit code: 1; Stdin: ; Stdout: ; Stderr: sudo: no tty present and no askpass program specified


2016-10-29 15:35:53.250 66322 ERROR neutron.agent.ovsdb.impl_vsctl [-] Unable to execute ['ovs-vsctl', '--timeout=10', '--oneline', '--format=json', '--', '--columns=ofport', 'list', 'Interface', 'br-int']. Exception: Exit code: 1; Stdin: ; Stdout: ; Stderr: sudo: no tty present and no askpass program specified


2016-10-29 15:35:54.268 66322 ERROR neutron.agent.ovsdb.impl_vsctl [-] Unable to execute ['ovs-vsctl', '--timeout=10', '--oneline', '--format=json', '--', '--columns=ofport', 'list', 'Interface', 'br-int']. Exception: Exit code: 1; Stdin: ; Stdout: ; Stderr: sudo: no tty present and no askpass program specified


2016-10-29 15:35:55.287 66322 ERROR neutron.agent.ovsdb.impl_vsctl [-] Unable to execute ['ovs-vsctl', '--timeout=10', '--oneline', '--format=json', '--', '--columns=ofport', 'list', 'Interface', 'br-int']. Exception: Exit code: 1; Stdin: ; Stdout: ; Stderr: sudo: no tty present and no askpass program specified


2016-10-29 15:35:56.306 66322 ERROR neutron.agent.ovsdb.impl_vsctl [-] Unable to execute ['ovs-vsctl', '--timeout=10', '--oneline', '--format=json', '--', '--columns=ofport', 'list', 'Interface', 'br-int']. Exception: Exit code: 1; Stdin: ; Stdout: ; Stderr: sudo: no tty present and no askpass program specified


2016-10-29 15:35:56.307 66322 ERROR neutron.agent.common.ovs_lib [-] Timed out retrieving ofport on port br-int.
2016-10-29 15:35:56.307 66322 ERROR neutron.agent.common.ovs_lib Traceback (most recent call last):
2016-10-29 15:35:56.307 66322 ERROR neutron.agent.common.ovs_lib   File "/usr/lib/python2.7/dist-packages/neutron/agent/common/ovs_lib.py", line 293, in get_port_ofport
2016-10-29 15:35:56.307 66322 ERROR neutron.agent.common.ovs_lib     ofport = self._get_port_ofport(port_name)
2016-10-29 15:35:56.307 66322 ERROR neutron.agent.common.ovs_lib   File "/usr/lib/python2.7/dist-packages/neutron/agent/common/ovs_lib.py", line 92, in wrapped
2016-10-29 15:35:56.307 66322 ERROR neutron.agent.common.ovs_lib     return new_fn(*args, **kwargs)
2016-10-29 15:35:56.307 66322 ERROR neutron.agent.common.ovs_lib   File "/usr/lib/python2.7/dist-packages/retrying.py", line 49, in wrapped_f
2016-10-29 15:35:56.307 66322 ERROR neutron.agent.common.ovs_lib     return Retrying(*dargs, **dkw).call(f, *args, **kw)
2016-10-29 15:35:56.307 66322 ERROR neutron.agent.common.ovs_lib   File "/usr/lib/python2.7/dist-packages/retrying.py", line 214, in call
2016-10-29 15:35:56.307 66322 ERROR neutron.agent.common.ovs_lib     raise RetryError(attempt)
2016-10-29 15:35:56.307 66322 ERROR neutron.agent.common.ovs_lib RetryError: RetryError[Attempts: 16, Value: None]
2016-10-29 15:35:56.307 66322 ERROR neutron.agent.common.ovs_lib
2016-10-29 15:35:56.325 66322 ERROR neutron.agent.ovsdb.impl_vsctl [-] Unable to execute ['ovs-vsctl', '--timeout=10', '--oneline', '--format=json', '--', 'set-fail-mode', 'br-int', 'secure']. Exception: Exit code: 1; Stdin: ; Stdout: ; Stderr: sudo: no tty present and no askpass program specified


2016-10-29 15:35:56.326 66322 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [-] Exit code: 1; Stdin: ; Stdout: ; Stderr: sudo: no tty present and no askpass program specified
Agent terminated!
-------------------------------------------------------------------------------------------------------------

ovs-cleanup的log日志:
2016-10-29 15:23:07.537 56831 ERROR neutron Traceback (most recent call last):
2016-10-29 15:23:07.537 56831 ERROR neutron   File "/usr/bin/neutron-ovs-cleanup", line 10, in <module>
2016-10-29 15:23:07.537 56831 ERROR neutron     sys.exit(main())
2016-10-29 15:23:07.537 56831 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/cmd/ovs_cleanup.py", line 88, in main
2016-10-29 15:23:07.537 56831 ERROR neutron     ovs_bridges = set(ovs.get_bridges())
2016-10-29 15:23:07.537 56831 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/agent/common/ovs_lib.py", line 142, in get_bridges
2016-10-29 15:23:07.537 56831 ERROR neutron     return self.ovsdb.list_br().execute(check_error=True)
2016-10-29 15:23:07.537 56831 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/impl_vsctl.py", line 84, in execute
2016-10-29 15:23:07.537 56831 ERROR neutron     txn.add(self)
2016-10-29 15:23:07.537 56831 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/api.py", line 76, in __exit__
2016-10-29 15:23:07.537 56831 ERROR neutron     self.result = self.commit()
2016-10-29 15:23:07.537 56831 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/impl_vsctl.py", line 50, in commit
2016-10-29 15:23:07.537 56831 ERROR neutron     res = self.run_vsctl(args)
2016-10-29 15:23:07.537 56831 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/impl_vsctl.py", line 71, in run_vsctl
2016-10-29 15:23:07.537 56831 ERROR neutron     ctxt.reraise = False
2016-10-29 15:23:07.537 56831 ERROR neutron   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-10-29 15:23:07.537 56831 ERROR neutron     self.force_reraise()
2016-10-29 15:23:07.537 56831 ERROR neutron   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-10-29 15:23:07.537 56831 ERROR neutron     six.reraise(self.type_, self.value, self.tb)
2016-10-29 15:23:07.537 56831 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/agent/ovsdb/impl_vsctl.py", line 63, in run_vsctl
2016-10-29 15:23:07.537 56831 ERROR neutron     log_fail_as_error=False).rstrip()
2016-10-29 15:23:07.537 56831 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 140, in execute
2016-10-29 15:23:07.537 56831 ERROR neutron     raise RuntimeError(msg)
2016-10-29 15:23:07.537 56831 ERROR neutron RuntimeError: Exit code: 1; Stdin: ; Stdout: ; Stderr: sudo: no tty present and no askpass program specified
2016-10-29 15:23:07.537 56831 ERROR neutron
2016-10-29 15:23:07.537 56831 ERROR neutron
2016-10-29 15:23:27.793 57085 INFO neutron.common.config [-] Logging enabled!
2016-10-29 15:23:27.793 57085 INFO neutron.common.config [-] /usr/bin/neutron-ovs-cleanup version 8.2.0
2016-10-29 15:23:27.806 57085 ERROR neutron.agent.ovsdb.impl_vsctl [-] Unable to execute ['ovs-vsctl', '--timeout=10', '--oneline', '--format=json', '--', 'list-br']. Exception: Exit code: 1; Stdin: ; Stdout: ; Stderr: sudo: no tty present and no askpass program specified


-------------------------------------------------------------------------------------------------

所有的配置方式都是按照官方的,验证方式也是显示正确,比如service-list,image-list等
但是就是无法创建云主机,返回No valid host was found. 的错误,是不是/etc/hosts里面的127.0.1.1 是不能删除的?

新手上路,急求各位老手的帮助,已经拖了几天了。。


已有(1)人评论

跳转到指定楼层
easthome001 发表于 2016-10-31 08:08:04


ERROR nova.compute.manager [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] Instance failed network setup after 1 attempt(s)
这里说明网络的问题,楼主可以检测下网络的各个服务进程。

2016-10-29 15:30:20.920 28006 INFO nova.compute.claims [req-5d07f00b-77aa-46f9-8072-4a65eeddea9b 1f1dc8c13d624a1f988ed0bd20a584e0 7355af7eef53484ab852705a9a6ba989 - - -] [instance: 811ad1a8-a084-4ab4-a51f-0c891923781a] disk limit: 329.00 GB, free: 329.00 GB
这里说的是磁盘已经满了,其它的地方也有类似的,比如内存可能也不够用了。

ERROR nova.compute.manager PortBindingFailed: Binding failed for port bfb8b700-85af-4ff3-9061-0eb684162212, please check neutron logs for more information.
这里说的是端口,应该也是网络的问题

建议先解决上面的问题。


,是不是/etc/hosts里面的127.0.1.1 是不能删除的?
127.0.1.1是可以删除

回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条