Ask Your Question

kejunyang's profile - activity

2015-02-05 04:31:06 -0500 received badge  Favorite Question (source)
2014-11-15 13:12:43 -0500 received badge  Taxonomist
2014-10-24 09:23:33 -0500 received badge  Famous Question (source)
2014-10-24 09:09:29 -0500 received badge  Self-Learner (source)
2014-10-24 09:09:29 -0500 received badge  Teacher (source)
2014-10-24 04:07:40 -0500 received badge  Nice Question (source)
2014-10-24 02:38:28 -0500 answered a question Juno dvr associate floating ip reported "No ports available"

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'
2014-10-24 02:30:19 -0500 commented question Juno dvr associate floating ip reported "No ports available"
2014-10-24 01:55:39 -0500 received badge  Famous Question (source)
2014-10-23 11:45:35 -0500 received badge  Notable Question (source)
2014-10-23 08:25:33 -0500 received badge  Popular Question (source)
2014-10-23 04:50:54 -0500 asked a question Juno dvr associate floating ip reported "No ports available"

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!

2014-10-19 23:22:52 -0500 received badge  Notable Question (source)
2014-10-16 02:06:33 -0500 received badge  Enthusiast
2014-10-15 16:21:08 -0500 received badge  Good Question (source)
2014-10-15 14:56:15 -0500 received badge  Popular Question (source)
2014-10-15 08:12:05 -0500 received badge  Nice Question (source)
2014-10-15 04:03:03 -0500 received badge  Student (source)
2014-10-15 03:38:13 -0500 received badge  Editor (source)
2014-10-15 03:36:33 -0500 asked a question Openstack juno how to configure dvr in network-node and compute-node

In Openstack juno, Neutron new feature called Distributed Virtual Routing (DVR),how to configure it in network-node and compute-node. Openstack.org just say "router_distributed = True",it's too little.

Add port error in router,"AttributeError: 'Ml2Plugin' object has no attribute 'update_dvr_port_binding'"

2014-10-10 13:54:06 -0500 received badge  Famous Question (source)
2014-08-21 01:07:07 -0500 received badge  Notable Question (source)
2014-08-21 01:07:07 -0500 received badge  Popular Question (source)