发起问题
0

使用neutron ovs创建Vlan 网络时报错 Failed to bind port * on host control.openstack.com

提问于 2015-05-22 21:34:32 -0600

hanlingfei5 图像
 2015-05-23 18:19:42.864 4115 INFO neutron.wsgi [req-facf4cdc-17c8-4634-bdb5-a5bfc8576752 None] 10.0.2.5 - - [23/May/2015 18:19:42] "GET /v2.0/extensions.json HTTP/1.1" 200 4302 0.002498
2015-05-23 18:19:42.911 4115 INFO neutron.wsgi [-] (4115) accepted ('10.0.2.5', 36312)
2015-05-23 18:19:42.926 4115 INFO neutron.wsgi [req-4509e4da-eb95-48ff-9df2-a11c9445964d None] 10.0.2.5 - - [23/May/2015 18:19:42] "GET /v2.0/networks.json?id=1329eb7a-cffc-4459-8d7f-bf4f28e3ea23 HTTP/1.1" 200 568 0.014665
2015-05-23 18:19:42.930 4114 INFO neutron.wsgi [-] (4114) accepted ('10.0.2.5', 36314)
2015-05-23 18:19:42.943 4114 INFO neutron.wsgi [req-47b4ea83-9e4d-4c09-828f-6221eb29c368 None] 10.0.2.5 - - [23/May/2015 18:19:42] "GET /v2.0/security-groups.json?tenant_id=f062e38b62de4ece8e4db4f4839d7e55 HTTP/1.1" 200 1726 0.012167
2015-05-23 18:19:42.950 4116 INFO neutron.wsgi [-] (4116) accepted ('10.0.2.5', 36316)
2015-05-23 18:19:42.954 4116 INFO neutron.wsgi [req-e0a66f4b-7548-4968-9532-d9baff8e85b2 None] 10.0.2.5 - - [23/May/2015 18:19:42] "GET /v2.0/extensions.json HTTP/1.1" 200 4302 0.002516
2015-05-23 18:19:42.964 4116 INFO neutron.wsgi [-] (4116) accepted ('10.0.2.5', 36317)
2015-05-23 18:19:43.100 4116 WARNING neutron.plugins.ml2.managers [req-f8b922ad-baf5-4486-9abd-b307591d2b52 None] Failed to bind port 4244792e-cda0-4914-9b92-206e42e10f18 on host control.openstack.com
2015-05-23 18:19:43.161 4116 INFO neutron.wsgi [req-f8b922ad-baf5-4486-9abd-b307591d2b52 None] 10.0.2.5 - - [23/May/2015 18:19:43] "POST /v2.0/ports.json HTTP/1.1" 201 906 0.195335
2015-05-23 18:19:43.180 4116 INFO neutron.wsgi [-] (4116) accepted ('10.0.2.5', 36318)
2015-05-23 18:19:43.200 4116 INFO neutron.wsgi [req-82431cdf-0919-4ac9-a545-39420db3ef4a None] 10.0.2.5 - - [23/May/2015 18:19:43] "GET /v2.0/ports.json?tenant_id=f062e38b62de4ece8e4db4f4839d7e55&device_id=8fdfb1e7-9be3-4ddc-a0c3-318a3d83875d HTTP/1.1" 200 904 0.019185
2015-05-23 18:19:43.218 4115 INFO neutron.wsgi [-] (4115) accepted ('10.0.2.5', 36319)
2015-05-23 18:19:43.273 4115 INFO neutron.wsgi [req-c7afd5a6-e19f-4a0f-a68e-56b959818ce8 None] 10.0.2.5 - - [23/May/2015 18:19:43] "GET /v2.0/floatingips.json?fixed_ip_address=192.168.45.53&port_id=4244792e-cda0-4914-9b92-206e42e10f18 HTTP/1.1" 200 208 0.053578
2015-05-23 18:19:43.295 4114 INFO neutron.wsgi [-] (4114) accepted ('10.0.2.5', 36320)
2015-05-23 18:19:43.309 4114 INFO neutron.wsgi [req-6a850727-a5b0-4997-8594-4a644da836e5 None] 10.0.2.5 - - [23/May/2015 18:19:43] "GET /v2.0/subnets.json?id=87bba063-bc2e-40c4-ab92-ef4ba603f8d2 HTTP/1.1" 200 652 0.012384
2015-05-23 18:19:43.313 4114 INFO neutron.wsgi [-] (4114) accepted ('10.0.2.5', 36321)
2015-05-23 18:19:43.330 4114 INFO neutron.wsgi [req-63b5f50c-950c-4455-a1b0-2e630fc033fa None] 10.0.2.5 - - [23/May/2015 18:19:43] "GET /v2.0/ports.json?network_id=1329eb7a-cffc-4459-8d7f-bf4f28e3ea23&device_owner=network%3Adhcp HTTP/1.1" 200 907 0.017040

dashboard报错如下: 错误: 创建实例 "魂牵梦萦" 失败: 请稍后再试 [错误: No valid host was found. ].

neutron配置如下:

   [DEFAULT]
verbose = True
state_path = /var/lib/neutron
lock_path = $state_path/lock
use_syslog = True
syslog_log_facility = LOG_LOCAL4
bind_host = 0.0 ...
(more)
edit retag flag offensive close merge delete
0

回答 2015-05-22 21:26:27 -0600

hanlingfei5 图像
 [root@control ~]# grep '^[a-z,\[]' /etc/neutron/neutron.conf
[DEFAULT]
verbose = True
state_path = /var/lib/neutron
lock_path = $state_path/lock
use_syslog = True
syslog_log_facility = LOG_LOCAL4
bind_host = 0.0.0.0
bind_port = 9696
core_plugin = ml2
service_plugins = router
auth_strategy = keystone
base_mac = fa:16:3e:00:00:00
mac_generation_retries = 32
dhcp_lease_duration = 120
dhcp_agent_notification = True
allow_bulk = True
allow_pagination = False
allow_sorting = False
allow_overlapping_ips = True
agent_down_time = 15
router_scheduler_driver = neutron.scheduler.l3_agent_scheduler.ChanceScheduler
dhcp_agents_per_network = 1
api_workers = 4
rpc_workers = 4
use_ssl = False
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
nova_url = http://10.0.2.5:8774/v2
nova_region_name = regionOne
nova_admin_username = nova
nova_admin_tenant_id = 7ceda42e1fc54b64809b23b24c7a488a
nova_admin_password = aptech3#
nova_admin_auth_url = http://10.0.2.5:35357/v2.0
send_events_interval = 2
kombu_reconnect_delay=5.0
rabbit_host=10.0.2.5
rabbit_port=5672
rabbit_hosts=$rabbit_host:$rabbit_port
rabbit_use_ssl=false
rabbit_userid=guest
rabbit_password=Abcd=1234
rabbit_virtual_host=/
rpc_backend=neutron.openstack.common.rpc.impl_kombu
[matchmaker_redis]
[matchmaker_ring]
[quotas]
[agent]
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
report_interval = 5
[keystone_authtoken]
auth_uri = http://10.0.2.5:5000/v2.0
identity_uri = http://10.0.2.5:35357
admin_tenant_name = service
admin_user = neutron
admin_password = aptech3#
[database]
connection = mysql://neutron:Abcd=1234@10.0.2.5:3306/neutron
max_retries = -1
retry_interval = 2
idle_timeout = 3600
[service_providers]
service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default

[root@control ~]# grep '^[a-z,\[]' /etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]
type_drivers = flat,vlan
tenant_network_types = vlan
mechanism_drivers = openvswitch
[ml2_type_flat]
flat_networks = *
[ml2_type_vlan]
network_vlan_ranges = default:1:4094
[ml2_type_gre]
[ml2_type_vxlan]
[securitygroup]
enable_security_group = True



[root@control ~]# grep '^[a-z,\[]' /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini 
[ovs]
type_drivers = vlan
tenant_network_types = vlan
mechanis_drivers = openvswitch
network_vlan_ranges = default:1:4094
enable_tunneling = False
integration_bridge=br-int
bridge_mappings = default:br-eth2
[agent]
polling_interval = 2
l2_population = False
arp_responder = False
[securitygroup]
enable_security_group = True
network_vlan_ranges = default:1:4094




[root@control ~]# ovs-vsctl  show
949c3755-a159-4732-8426-5b6346cb33f1
    Bridge "br-eth2"
        Port "br-eth2"
            Interface "br-eth2"
                type: internal
        Port "enp1s0f1"
            Interface "enp1s0f1"
    Bridge br-int
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
        Port "tapa6ff23a4-43"
            tag: 4095
            Interface "tapa6ff23a4-43"
                type: internal
        Port "tap4ec99165-67"
            tag: 4095
            Interface "tap4ec99165-67"
                type: internal
        Port "tapd5d52b3f-b6"
            tag: 4095
            Interface "tapd5d52b3f-b6"
                type: internal
    Bridge hehe
        Port hehe
            Interface hehe
                type: internal
    ovs_version: "2.3.1"
edit flag offensive delete link 更多

你的回答

Please start posting anonymously - your entry will be published after you log in or create a new account.

开始回答

提问工具

1 follower

统计

已提问: 2015-05-22 21:22:04 -0600

已查看: 757 次

最后更新: May 22 '15