The OVS agent in the compute where you are trying to bind the port
reports its state here:
https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py#L316
with a state built here
https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py#L261.
Note that this state inludes the host, which the agent got from
configuration here
https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py#L159.
That configuration option is defined here:
https://github.com/openstack/neutron/blob/master/neutron/conf/common.py#L94.
Note that its default value is whatever is returned by
https://github.com/openstack/neutron-
lib/blob/master/neutron_lib/utils/net.py#L25. Here's the description of
socket.gethostname
https://docs.python.org/2/library/socket.html#socket.gethostname.
Either you are specifying a host name for the agent or you are using the
default (explained in the lines just above) and that doesn't match what
Nova is using as host name when it requests Neutron to bind the port. So
you clearly have a configuration issue. It is not that Neutron Queens
cannot bind a port. Marking this bug as invalid
** Changed in: neutron
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1763146
Title:
[ovs] Binding failed for port
Status in neutron:
Invalid
Bug description:
Hello!
I've already had successful deployment on Pike (3 control node + several
compute nodes):
- ML2 plugin - openvswitch
- default tunnel type - vxlan
- dvr is enabled
Instances were started, running, migrating without errors.
Everything was fine until I've upgraded to Queens... I've use same neutron
configuration files and encountered the following error:
...
2018-04-11 12:21:19.128 36774 INFO
neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native.ovs_bridge [-]
Bridge br-int has datapath-ID 00005618b7026f46
2018-04-11 12:21:23.460 36774 INFO
neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent
[req-ac08fa6c-7257-4296-aede-67a051568440 - - - - -] Mapping physical network
external to bridge br0
2018-04-11 12:21:23.948 36774 INFO
neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native.ovs_bridge
[req-ac08fa6c-7257-4296-aede-67a051568440 - - - - -] Bridge br0 has datapath-ID
0000ec0d9a7abceb
2018-04-11 12:21:24.206 36774 INFO
neutron.plugins.ml2.drivers.openvswitch.agent.openflow.native.ovs_bridge
[req-ac08fa6c-7257-4296-aede-67a051568440 - - - - -] Bridge br-tun has
datapath-ID 0000d2588392e746
2018-04-11 12:21:24.220 36774 INFO neutron.agent.agent_extensions_manager
[req-ac08fa6c-7257-4296-aede-67a051568440 - - - - -] Initializing agent
extension 'qos'
2018-04-11 12:21:24.323 36774 INFO
neutron.plugins.ml2.drivers.openvswitch.agent.ovs_dvr_neutron_agent
[req-ac08fa6c-7257-4296-aede-67a051568440 - - - - -] L2 Agent operating in DVR
Mode with MAC FA-16-3F-7C-00-B2
2018-04-11 12:21:24.375 36774 INFO neutron.common.ipv6_utils
[req-ac08fa6c-7257-4296-aede-67a051568440 - - - - -] IPv6 not present or
configured not to bind to new interfaces on this system. Please ensure IPv6 is
enabled and /proc/sys/net/ipv6/conf/default/disable_ipv6 is set to 0 to enable
IPv6.
2018-04-11 12:21:25.275 36774 INFO
neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent
[req-1c05ff93-84cb-45ed-937c-95f048b553f1 - - - - -] Agent initialized
successfully, now running...
...
2018-04-11 21:24:10.248 3953 INFO neutron.agent.common.ovs_lib
[req-64bf5e4c-32a9-4936-93cd-2658095b2d35 - - - - -] Port
b8b42046-14ba-4b43-a24c-3a0a1b350aea not present in bridge br-int
2018-04-11 21:24:10.249 3953 INFO
neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent
[req-64bf5e4c-32a9-4936-93cd-2658095b2d35 - - - - -] port_unbound(): net_uuid
None not managed by VLAN manager
2018-04-11 21:24:10.249 3953 INFO neutron.agent.securitygroups_rpc
[req-64bf5e4c-32a9-4936-93cd-2658095b2d35 - - - - -] Remove device filter for
['b8b42046-14ba-4b43-a24c-3a0a1b350aea']
...
It happens every time I try to launch instance. No matter, internal or
external (vlan provider) network, result is the same.
So my question is 'What I'm doing wrong?' May be I missed something in
Queens config samples, or encountered the huge bug, or what?..
Pike Environment
------------------
Ubuntu 16.04.4 LTS, 4.4.0-119-generic
Neutron 11.0.3-0ubuntu1.1~cloud0
openvswitch-switch 2.8.1
Queens Environment
------------------
Ubuntu 16.04.4 LTS, 4.4.0-119-generic
Neutron 12.0.0-0ubuntu2~cloud0
openvswitch-switch 2.9.0
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1763146/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp