unable to attach an interface to an external network

Bug #1968893 reported by amon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Expired
Undecided
Unassigned

Bug Description

when I try to attach an interface to an external network, I get this error
Error: Unable to attach interface. Details
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'nova.exception_Remote.PortBindingFailed_Remote'> (HTTP 500) (Request-ID: req-edeb840b-3d20-42e0-9408-c1937e48046b)

and the neutron server log shows this message:

gmentation_id': None, 'network_id': '3d2efd60-dc06-4f3e-8378-52c7477c8bb5'}]
2022-04-13 15:01:28.108 23 ERROR neutron.plugins.ml2.managers [req-85283402-03ab-4221-9b36-61f89557bdaf 397fa0267ae340e1b24a3a96ae302f32 05b9f31fca434f7a96b63a1d17e8b14c - default default] Failed to bind port 5f673811-2a7e-4ee7-8cc4-f42b14801fde on host compute2.localdomain for vnic_type normal using segments [{'id': 'd66e1712-08fc-4e58-9330-1985fdeb1dc3', 'network_type': 'flat', 'physical_network': 'physnet_test', 'segmentation_id': None, 'network_id': '3d2efd60-dc06-4f3e-8378-52c7477c8bb5'}]

Revision history for this message
LIU Yulong (dragon889) wrote :

For openvswitch agent, please check your ``bridge_mappings`` in agent config file, which should include your physical_network type: physnet_test.

Revision history for this message
amon (amonster369) wrote (last edit ):

this is the content of my openvswitch_agent config file :
##############################################################################
tunnel_types = vxlan
l2_population = true
arp_responder = true

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

[ovs]
bridge_mappings = physnet1:br-ex,physnet2:br-ex2, physnet_test:br-test
datapath_type = system
ovsdb_connection = tcp:127.0.0.1:6640
ovsdb_timeout = 10
local_ip = 10.10.10.10

#########################################################

and this is the content of ml2 config file:

#########################################################

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

[ml2_type_vlan]
network_vlan_ranges =

[ml2_type_flat]
flat_networks =physnet1,physnet2,physnet_test

[ml2_type_vxlan]
vni_ranges = 1:1000

###########################################

Revision history for this message
Jakub Libosvar (libosvar) wrote :

Can you please also check OVS agent logs on compute2.localdomain? Also make sure that br-test bridge is configured there.

Changed in neutron:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for neutron because there has been no activity for 60 days.]

Changed in neutron:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.