分享

Newton+Ovs 创建虚拟机失败。内附配置及错误信息

wangyaohua 发表于 2016-12-18 11:35:09 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 7 32345
环境双节点Controller1
Compute1
网络配置  是 OVS的

Controller1节点看各个服务都是正常的
compute-service.png
neutron-list.png

controller1节点相关配置文件如下
ml2_conf.ini
[DEFAULT][ml2]
type_drivers = flat,vlan,vxlan
tenant_network_types = vxlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security
[ml2_type_flat]
flat_networks = external
[ovs]
local_ip = 192.168.102.60
bridge_mappings = external:br-ex
[agent]
enable_distributed_routing = True
tunnel_types = vxlan
l2_population = True

[ml2_type_vxlan]
vni_ranges = 1:1000

[securitygroup]
enable_ipset = True



openvswitch_agent.ini
[DEFAULT]
[agent]
l2_population = True
arp_responder = True
enable_distributed_routing = True
tunnel_types = vxlan
vxlan_udp_port = 4789
[ovs]
integration_bridge = br-int
tunnel_bridge = br-tun
local_ip = 192.169.102.60
bridge_mappings = external:br-ex
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True


l3_agent.ini
[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
ovs_use_veth = True
external_network_bridge =
agent_mode = dvr_snat


dhcp_agent.ini
[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = True
use_namespaces = True
dhcp_delete_namespaces = True
dnsmasq_config_file = /etc/neutron/neutron-dnsmasq.conf


neutron-dnsmasq.conf
dhcp-option-force=26,1450
log-facility = /var/log/neutron/dnsmasq.log


metadata_agent.ini
[DEFAULT]
nova_metadata_ip = controller1
metadata_proxy_shared_secret = meta


#ovs-vsctl show
[root@controller1 neutron]# ovs-vsctl show51433e86-de40-4d83-8ada-63f3aece271e
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br-int
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer=phy-br-ex}
        Port "qg-c2c7f1ef-04"
            tag: 4095
            Interface "qg-c2c7f1ef-04"
                type: internal
        Port "qr-24f5e878-22"
            Interface "qr-24f5e878-22"
                type: internal
        Port "tap2e351c43-10"
            Interface "tap2e351c43-10"
                type: internal
        Port br-int
            Interface br-int
                type: internal
    Bridge br-ex
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port "eth0"
            Interface "eth0"
        Port br-ex
            Interface br-ex
                type: internal
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
    ovs_version: "2.5.0"


已创建的网络
[root@controller1 neutron]# openstack network list+--------------------------------------+------+--------------------------------------+
| ID                                   | Name | Subnets                              |
+--------------------------------------+------+--------------------------------------+
| 1410b2be-397f-44f5-9898-8eb8575c0069 | test | 5b8e1858-e3c8-429b-a30b-3750d425f940 |
+--------------------------------------+------+--------------------------------------+
[root@controller1 neutron]# openstack subnet list
+--------------------------------------+-------+--------------------------------------+-----------------+
| ID                                   | Name  | Network                              | Subnet          |
+--------------------------------------+-------+--------------------------------------+-----------------+
| 5b8e1858-e3c8-429b-a30b-3750d425f940 | TEST1 | 1410b2be-397f-44f5-9898-8eb8575c0069 | 192.168.99.0/24 |
+--------------------------------------+-------+--------------------------------------+-----------------+



Compute1
neutron.conf
[DEFAULT]core_plugin = ml2
service_plugins = router
allow_overlapping_ips = True
transport_url = rabbit://openstack:openstack@controller1
auth_strategy = keystone
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
[keystone_authtoken]
auth_uri = http://controller1:5000
auth_url = http://controller1:35357
memcached_servers = controller1:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = neutron
[oslo_concurrency]
lock_path = /var/lib/neutron/tmp



ml2_agent.ini
[DEFAULT]
[ml2]
type_drivers = flat,vxlan,vlan,gre
tenant_network_types = vxlan
mechanism_drivers = openvswitch,l2population
[ovs]
local_ip = 192.168.102.59
bridge_mappings = external:br-ex
[agent]
enable_distributed_routing = True
tunnel_types = vxlan
l2_population = True
[ml2_type_flat]
[ml2_type_vlan]
[ml2_type_vxlan]
vni_ranges = 65537:69999
[securitygroup]
firewall_driver =
neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver


l3_agent.ini
[DEFAULT]interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
external_network_bridge =
agent_mode = dvr
ovs_use_veth = True
[AGENT]


openvswitch_agent.ini
[DEFAULT][agent]
enable_distributed_routing = True
arp_responder = True
l2_population = True
tunnel_type = vxlan
vxlan_udp_port = 4789
[ovs]
integration_bridge = br-int
tunnel_bridge = br-tun
int_peer_patch_port = patch-tun
tun_peer_patch_port = patch-int
local_ip = 192.168.102.59
bridge_mappings = external:br-ex

[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True


#ovs-vsctl
[root@compute1 ~]# ovs-vsctl show935bfabb-3551-457c-8e75-83d8335a947c
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br-ex
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port br-ex
            Interface br-ex
                type: internal
        Port "eth0"
            Interface "eth0"
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
    Bridge br-int
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer=phy-br-ex}
    ovs_version: "2.5.0"


配置文件基本如此,创建虚拟机时报错
  No valid host was found. There are not enough hosts available



Controller1中
neutron-server.log报错如下
DEBUG neutron.plugins.ml2.drivers.mech_agent [req-e0ee581f-47e9-4273-9df6-63466bd0100c 731442e6a58b488bb4be49279f55fddc 0e6daea58717447cbb4e509ba6a142ce - - -] Network abac563e-9968-4b3b-bc76-3c859e26dbd1 is of type vxlan but agent compute1.novalocal or mechanism driver only support ['local', 'flat', 'vlan']. check_segment_for_agent /usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/mech_agent.py:2422016-12-18 03:21:42.729 14150 ERROR neutron.plugins.ml2.managers [req-e0ee581f-47e9-4273-9df6-63466bd0100c 731442e6a58b488bb4be49279f55fddc 0e6daea58717447cbb4e509ba6a142ce - - -] Failed to bind port 689361ae-671c-4845-97ef-8dcf52d442f1 on host compute1.novalocal for vnic_type normal using segments [{'segmentation_id': 34, 'physical_network': None, 'id': u'abac563e-9968-4b3b-bc76-3c859e26dbd1', 'network_type': u'vxlan'}]



nova-conductor.log报错如下
ERROR nova.scheduler.utils [req-cb18a47e-ba53-4655-af57-1635d3367f97 c010dc1d0bc141a49ba0ff05d03579c5 7d04750a43c7410cb7f6a4ef4f3614a6 - - -] [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e] Error from last host: compute1.novalocal (node compute1.novalocal): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1779, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1976, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance 78201041-042b-4bcb-b3ac-31cc0823ec3e was re-scheduled: Binding failed for port 689361ae-671c-4845-97ef-8dcf52d442f1, please check neutron logs for more information.\n']
2016-12-18 03:21:43.839 9924 WARNING nova.scheduler.utils [req-cb18a47e-ba53-4655-af57-1635d3367f97 c010dc1d0bc141a49ba0ff05d03579c5 7d04750a43c7410cb7f6a4ef4f3614a6 - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available.
其他日志均无报错
openvswitch.log无日志

Compute1中报错如下

openvswitch.log中有如下信息
INFO neutron.agent.securitygroups_rpc [req-3a33c965-5c12-4fd0-af57-87f39f03e33d c010dc1d0bc141a49ba0ff05d03579c5 7d04750a43c7410cb7f6a4ef4f3614a6 - - -] Security group member updated [u'3360273d-d5a5-4ff1-8472-8a7813d41c8a']2016-12-18 03:21:45.024 18680 INFO neutron.agent.common.ovs_lib [req-db9e6c88-df4e-494f-9494-7fd51b2c6761 - - - - -] Port 689361ae-671c-4845-97ef-8dcf52d442f1 not present in bridge br-int
2016-12-18 03:21:45.025 18680 INFO neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-db9e6c88-df4e-494f-9494-7fd51b2c6761 - - - - -] port_unbound(): net_uuid None not managed by VLAN manager
2016-12-18 03:21:45.025 18680 INFO neutron.agent.securitygroups_rpc [req-db9e6c88-df4e-494f-9494-7fd51b2c6761 - - - - -] Remove device filter for [u'689361ae-671c-4845-97ef-8dcf52d442f1']



nova-compute.log报错如下
INFO nova.virt.libvirt.driver [req-cb18a47e-ba53-4655-af57-1635d3367f97 c010dc1d0bc141a49ba0ff05d03579c5 7d04750a43c7410cb7f6a4ef4f3614a6 - - -] [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e] Creating image2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager [req-cb18a47e-ba53-4655-af57-1635d3367f97 c010dc1d0bc141a49ba0ff05d03579c5 7d04750a43c7410cb7f6a4ef4f3614a6 - - -] Instance failed network setup after 1 attempt(s)
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager Traceback (most recent call last):
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1397, in _allocate_network_async
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager     bind_host_id=bind_host_id)
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 881, in allocate_for_instance
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager     bind_host_id, dhcp_opts, available_macs)
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1000, in _update_ports_for_instance
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager     vif.destroy()
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager     self.force_reraise()
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager     six.reraise(self.type_, self.value, self.tb)
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 970, in _update_ports_for_instance
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager     port_client, instance, port_id, port_req_body)
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 437, in _update_port
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager     _ensure_no_port_binding_failure(port)
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 175, in _ensure_no_port_binding_failure
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager     raise exception.PortBindingFailed(port_id=port['id'])
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager PortBindingFailed: Binding failed for port 689361ae-671c-4845-97ef-8dcf52d442f1, please check neutron logs for more information.
2016-12-18 03:21:43.327 15465 ERROR nova.compute.manager

2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [req-cb18a47e-ba53-4655-af57-1635d3367f97 c010dc1d0bc141a49ba0ff05d03579c5 7d04750a43c7410cb7f6a4ef4f3614a6 - - -] [instance: 78201041-042b-4bcb-b3ac-3    1cc0823ec3e] Instance failed to spawn
42 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e] Traceback (most recent call last):
43 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2078, in _build_resources
44 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     yield resources
45 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1920, in _build_and_run_instan    ce
46 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     block_device_info=block_device_info)
47 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2592, in spawn
48 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     write_to_disk=True)
49 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4624, in _get_guest_xml
50 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     network_info_str = str(network_info)
51 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 525, in __str__
52 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     return self._sync_wrapper(fn, *args, **kwargs)
53 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 508, in _sync_wrapper
54 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     self.wait()
55 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 540, in wait
56 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     self[:] = self._gt.wait()
57 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 175, in wait
58 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     return self._exit_event.wait()
59 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/eventlet/event.py", line 121, in wait
60 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     return hubs.get_hub().switch()
61 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
62 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     return self.greenlet.switch()
63 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 214, in main
64 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     result = function(*args, **kwargs)
65 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/utils.py", line 1066, in context_wrapper
66 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     return func(*args, **kwargs)
67 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1414, in _allocate_network_asy    nc
68 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     six.reraise(*exc_info)
69 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1397, in _allocate_network_asy    nc
70 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     bind_host_id=bind_host_id)
71 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 881, in allocate_for_ins    tance
72 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     bind_host_id, dhcp_opts, available_macs)
73 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1000, in _update_ports_f    or_instance
74 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     vif.destroy()
75 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
76 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     self.force_reraise()
77 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
78 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     six.reraise(self.type_, self.value, self.tb)
79 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 970, in _update_ports_fo    r_instance
80 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     port_client, instance, port_id, port_req_body)
81 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 437, in _update_port
82 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     _ensure_no_port_binding_failure(port)
83 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 175, in _ensure_no_port_    binding_failure
84 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]     raise exception.PortBindingFailed(port_id=port['id'])
85 2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e] PortBindingFailed: Binding failed for port 689361ae-671c-4845-97ef-8dcf52d442f1, please check neutron     logs for more information.

2016-12-18 03:21:43.330 15465 ERROR nova.compute.manager [instance: 78201041-042b-4bcb-b3ac-31cc0823ec3e]
87 2016-12-18 03:21:43.331 15465 INFO nova.compute.manager [req-cb18a47e-ba53-4655-af57-1635d3367f97 c010dc1d0bc141a49ba0ff05d03579c5 7d04750a43c7410cb7f6a4ef4f3614a6 - - -] [instance: 78201041-042b-4bcb-b3ac-31    cc0823ec3e] Terminating instance

其他日志无报错,无内容。

希望大神解答,帮助解决问题

已有(7)人评论

跳转到指定楼层
qcbb001 发表于 2016-12-18 12:25:16
上面存在两个问题:

1.png

2.png

并非是没有问题的。
1.hosts配置可能有点乱,并且以前安装失败过。这样直接导致实例化失败
2.网络ovs也是同样的问题。
所以建议先将两个失败的服务去除,在来试试,应该会有进展
回复

使用道具 举报

einhep 发表于 2016-12-18 12:30:25
[root@controller1 neutron]# ovs-vsctl show51433e86-de40-4d83-8ada-63f3aece271e
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br-int
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer=phy-br-ex}
        Port "qg-c2c7f1ef-04"
            tag: 4095
            Interface "qg-c2c7f1ef-04"
                type: internal
        Port "qr-24f5e878-22"
            Interface "qr-24f5e878-22"
                type: internal
        Port "tap2e351c43-10"
            Interface "tap2e351c43-10"
                type: internal
        Port br-int
            Interface br-int
                type: internal
    Bridge br-ex
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port "eth0"
            Interface "eth0"
        Port br-ex
            Interface br-ex
                type: internal
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
    ovs_version: "2.5.0"

上面红字部分显然是不对的,都是本地,应该是彼此ip地址

回复

使用道具 举报

wangyaohua 发表于 2016-12-18 12:32:50
qcbb001 发表于 2016-12-18 12:25
上面存在两个问题:

您好 ,关于hosts的配置一直都是192.168.102.60 controller1
192.168.102.59 compute1
但不知道为什么在openstack中就变现在这样的
回复

使用道具 举报

wangyaohua 发表于 2016-12-18 12:34:08
einhep 发表于 2016-12-18 12:30
[root@controller1 neutron]# ovs-vsctl show51433e86-de40-4d83-8ada-63f3aece271e
    Manager "ptcp:66 ...

您好,这个地址该如何去修改?或者在什么地方修改能告诉我吗?谢谢
回复

使用道具 举报

wangyaohua 发表于 2016-12-18 12:56:18
现在进展 controller1的 ovs-agent已经起来了,但还是不行
回复

使用道具 举报

wangyaohua 发表于 2016-12-19 16:47:25
经过各种排错,,找了了问题所在。。tunnel_types 少打个s。。。。
回复

使用道具 举报

wangyaohua 发表于 2016-12-19 17:42:19
已解决,ml2配置文件中 tunnel_types 少打个s - -
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条