Ask Your Question
2

Juno dvr associate floating ip reported "No ports available"

asked 2014-10-23 04:50:54 -0500

kejunyang gravatar image

updated 2014-10-23 09:19:04 -0500

system:Centos7

tunnel_type:vxlan

Create router select centralized mode,associate floating ip no problem.

Create router select distributed mode, associate floating ip reported "No ports available".

image description

my configuration:

control+network node:

[root@control neutron]# grep "^[a-zA-Z[]" neutron.conf

[DEFAULT] 

verbose = True 

rpc_backend = rabbit 

rabbit_host = 192.168.221.1 

rabbit_password = 123456 

auth_strategy = keystone 

core_plugin = ml2 

service_plugins = router 

allow_overlapping_ips = True 

notify_nova_on_port_status_changes = True 

notify_nova_on_port_data_changes = True 

nova_url = http://192.168.221.1:8774/v2 

nova_admin_auth_url = http://192.168.221.1:35357/v2.0 

nova_region_name = regionOne 

nova_admin_username = nova 

nova_admin_tenant_id = f0c8aaa916c543e7b1013e4c745dd1f2 

nova_admin_password = 123456 

router_distributed = True 

[matchmaker_redis] 

[matchmaker_ring] 

[quotas] 

[agent] 

[keystone_authtoken] 

auth_uri = http://192.168.221.1:5000/v2.0 

identity_uri = http://192.168.221.1:35357 

admin_tenant_name = service 

admin_user = neutron 

admin_password = 123456 

[database] 

connection = mysql://neutron:123456@192.168.221.1/neutron 

[service_providers] 

service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default 

[root@control neutron]# 

[root@control neutron]#

[root@control neutron]# grep "^[a-zA-Z[]" l3_agent.ini

[DEFAULT] 

verbose = True 

interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver 

use_namespaces = True 

external_network_bridge = br-ex 

agent_mode = dvr_snat

[root@control neutron]#

[root@control neutron]#

[root@control neutron]# grep "^[a-zA-Z[]" plugin.ini

[ml2] 

type_drivers = flat,vxlan 

tenant_network_types = vxlan 

mechanism_drivers = openvswitch,l2population 

[ml2_type_flat] 

flat_networks = external 

[ml2_type_vlan] 

[ml2_type_gre] 

[ml2_type_vxlan] 

vni_ranges = 1:5000 

[securitygroup] 

enable_security_group = True 

enable_ipset = True 

firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver 

[ovs] 

tenant_network_type = vxlan 

tunnel_type = vxlan 

tunnel_id_ranges = 1:5000 

integration_bridge = br-int 

tunnel_bridge = br-tun 

bridge_mapping = external:br-ex 

local_ip = 192.168.221.1 

[agent] 

tunnel_types = vxlan 

l2_population = True 

enable_distributed_routing = True

compute node :

[root@compute01 neutron]# grep "^[a-zA-Z[]" neutron.conf

[DEFAULT] 
verbose = True 

rpc_backend = rabbit 

rabbit_host = 192.168.221.1 

rabbit_password = 123456 

auth_strategy = keystone 

core_plugin = ml2 

service_plugins = router 

allow_overlapping_ips = True 

router_distributed = True 

[matchmaker_redis] 

[matchmaker_ring] 

[quotas] 

[agent] 

[keystone_authtoken] 

auth_uri = http://192.168.221.1:5000/v2.0 

identity_uri = http://192.168.221.1:35357 

admin_tenant_name = service 

admin_user = neutron 

admin_password = 123456 

[database] 

[service_providers] 

service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default

[root@compute01 neutron]#

[root@compute01 neutron]#

[root@compute01 neutron]# grep "^[a-zA-Z[]" l3_agent.ini

[DEFAULT] 

verbose = True 

interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver 

use_namespaces = True 

external_network_bridge = br-ex 

agent_mode = dvr

[root@compute01 neutron]#

[root@compute01 neutron]#

[root@compute01 neutron]# grep "^[a-zA-Z[]" plugin.ini

[ml2] 

type_drivers = flat,vxlan 

tenant_network_types = vxlan 

mechanism_drivers = openvswitch,l2population 

[ml2_type_flat] 

flat_networks = external 

[ml2_type_vlan] 

[ml2_type_gre] 

[ml2_type_vxlan] 

vni_ranges = 1:5000 

[securitygroup] 

enable_security_group = True 

enable_ipset = True 

firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver 

[ovs] 
tenant_network_type = vxlan 

tunnel_type = vxlan 

tunnel_id_ranges = 1:5000 

integration_bridge = br-int 

tunnel_bridge = br-tun 

bridge_mapping = external:br-ex 

local_ip = 192.168.221.2 

[agent] 

tunnel_types = vxlan 

l2_population = True 

enable_distributed_routing = True

thanks!

edit retag flag offensive close merge delete

Comments

Hi , What Document are you using to configure DVR in Juno version.

rahulrajvn gravatar imagerahulrajvn ( 2014-10-23 11:42:27 -0500 )edit

I have the same problem and the same kind of configuration, I used the information from https://wiki.openstack.org/wiki/Neutron/DVR/HowTo (https://wiki.openstack.org/wiki/Neutr...)

gaud gravatar imagegaud ( 2014-10-23 18:20:26 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-02-04 21:22:00 -0500

i meet same problem and fix it flow kejunyang's suggestion.

edit flag offensive delete link more
1

answered 2014-10-24 02:38:28 -0500

kejunyang gravatar image

updated 2014-10-24 02:48:43 -0500

Finally solve the problem:

vim /usr/share/openstack-dashboard/openstack_dashboard/api/neutron.py

find  def _get_reachable_subnets(self, ports):

replace  p.device_owner == 'network:router_interface'  
as  
p.device_owner == 'network:router_interface'   or p.device_owner == 'network:router_interface_distributed'
edit flag offensive delete link more

Comments

did you send your patch to openstack ?

gaud gravatar imagegaud ( 2014-10-31 09:31:11 -0500 )edit

I added your patch.. https://bugs.launchpad.net/horizon/+bug/1388305 (https://bugs.launchpad.net/horizon/+b...)

gaud gravatar imagegaud ( 2014-10-31 23:11:42 -0500 )edit

The fix provided at https://review.openstack.org/#/c/132383/ was merged. Issue should be solved.

Christian Berendt gravatar imageChristian Berendt ( 2015-02-05 01:15:00 -0500 )edit

Your Answer

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

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

4 followers

Stats

Asked: 2014-10-23 04:50:54 -0500

Seen: 2,721 times

Last updated: Feb 04 '15