openvswitch and linuxbridge agents should start only after network is ready

Bug #1736510 reported by Dr. Jens Harbott
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
neutron (Ubuntu)
Fix Released
Medium
Unassigned
Mantic
Fix Released
Medium
Unassigned

Bug Description

During rebooting a node, neutron-openvswitch agent sometimes fails directly after booting with a message like

2017-12-05 13:33:23.793 1388 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [-] Tunneling can't be enabled with invalid local_ip '1.2.3.4'. IP couldn't be found on this host's interfaces.

So it seems that it is being started too early, it should wait until the static network configuration has been finished. Adding

"After=network.target"

to the definition of neutron-openvswitch-agent.service seems to mitigate the issue, but perhaps there is a better solution still?

Affects at least Ocata UCA, not tested on Pike yet.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in neutron (Ubuntu):
status: New → Confirmed
Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Thanks for the patch and reporting this bug, Dr. Jens Harbott. It seems like a reasonable patch, however I think we may want to use After=network-online.target

Changed in neutron (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
Revision history for this message
Corey Bryant (corey.bryant) wrote :

The same issue affects neutron-linuxbridge-agent as reported by Jake Yip in https://bugs.launchpad.net/ubuntu/+source/neutron/+bug/2032811

summary: - openvswitch agent should start only after network is ready
+ openvswitch and linuxbridge agents should start only after network is
+ ready
Revision history for this message
Jake Yip (waipengyip) wrote :

Thanks for looking into this together with linuxbridge-agent

We are on Wallaby at the moment. Understand that it is in EM, we may be able to build our own packages depending on the fix, so don't stress too much about backporting all the way to Wallaby if it is too difficult.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package neutron - 2:23.0.0~b2+git2023071209.58c8493f-0ubuntu2

---------------
neutron (2:23.0.0~b2+git2023071209.58c8493f-0ubuntu2) mantic; urgency=medium

  * d/neutron-openvswitch-agent.service.in,
    d/neutron-linuxbridge-agent.service.in: Add network-online.target to After
    directive to ensure the network is up prior to starting (LP: #1736510).

 -- Corey Bryant <email address hidden> Thu, 24 Aug 2023 09:56:17 -0400

Changed in neutron (Ubuntu Mantic):
status: Triaged → Fix Released
Revision history for this message
Jake Yip (waipengyip) wrote :

Thanks Corey!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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