Newly created port created with wrong device_owner

asked 2017-03-13 14:28:16 -0500

Gianluca gravatar image

Hi,

I have a problem with provider flat network on my OS infrastructure.

Compute nodes are configured with a bridge br3. Bond interface, bond3, is attacched to br3 and 2 ethX interface are enslaved to bond3. Both ethX interfaces are connected to physical provider LAN.

linuxbridge_agent.conf:

[DEFAULT]
debug = True
[agent]

[linux_bridge]
bridge_mappings = ntpub2:br3

[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
enable_security_group = true

[vxlan]
enable_vxlan = true
local_ip = 192.168.20.102
l2_population = true

ml2_conf.ini

[DEFAULT]

[ml2]
type_drivers = flat,vlan,vxlan
tenant_network_types = vxlan
mechanism_drivers = linuxbridge,l2population
extension_drivers = port_security

[ml2_type_flat]
flat_networks = ntpub2

[ml2_type_geneve]

[ml2_type_gre]

[ml2_type_vlan]

[ml2_type_vxlan]
vni_ranges = 1:1000

[securitygroup]
enable_ipset = true

My network:

openstack network show ntpub2
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | UP                                   |
| availability_zone_hints   |                                      |
| availability_zones        | nova                                 |
| created_at                | 2017-03-11T15:20:23Z                 |
| description               |                                      |
| id                        | 932ed759-3d08-41b2-8e78-0f995b90fa6f |
| ipv4_address_scope        | None                                 |
| ipv6_address_scope        | None                                 |
| mtu                       | 1500                                 |
| name                      | ntpub2                               |
| port_security_enabled     | True                                 |
| project_id                | 09f7500ba8894316bdb41c3ba28bd3c7     |
| project_id                | 09f7500ba8894316bdb41c3ba28bd3c7     |
| provider:network_type     | flat                                 |
| provider:physical_network | ntpub2                               |
| provider:segmentation_id  | None                                 |
| revision_number           | 5                                    |
| router:external           | Internal                             |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   | b9ae5cf4-3f45-405c-9b31-191e327a71e2 |
| tags                      | []                                   |
| updated_at                | 2017-03-11T15:22:12Z                 |
+---------------------------+--------------------------------------+

Problem: After instance launch, configured with single interface attached to provider flat network, virtual interface is attached to wrong bridge brqxxx-xx instead of the right one br3.

In this way network doesn't work because there is no other interface attached to brqxxx-xx. If i manually change bridge device with:

brctl delif brqxxx-xx tapxxx
brctl addif br3 tapxxx

everything works fine.

In linuxbridge-agent.log, running on compute node, i found:

Skip adding device tap3b49f996-f9 to br3. It is owned by compute:nova and thus added elsewhere. _add_tap_interface /usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py:498

so i guess that problem is port device_owner. I tried manually change device owner with:

openstack port set 00051963-fb34-4dad-9d73-8e8a7ba2a1f1 --device-owner network:None

After this manually change everything start work fine, also after instances reboot.

My Environment:

Platform: Centos 7 x86_64

OS-Rlease: Newton

Controller: 5 nodes cluster

Compute: Every node run nova-compute and linuxbridge_agent

Thanks in advance for the help.

Gianluca

edit retag flag offensive close merge delete