systemd doesn't wait until the tentative flag isn't removed before firing units depending on network-online.target

Bug #1673092 reported by Braiam Peguero
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

See this issue for details https://github.com/systemd/systemd/issues/2037

Basically, while DAD is running checks on a ipv6 address, no service can
bind the interface, which could provoke units to fail. Disabling DAD is
a workaround as explained here [1], but ideally systemd should wait until
the tentative flag is removed. v232 doesn't have this issue. Can the relevant
patches be backported to LTS releases?

[Test Case]

1. Configure ipv6 address on one interface
2. Create unit with After=network-online.target that pings a host over
   ipv6
3. Restart the system (may need several reboots as it's a race condition)

[Regression Potential]

* Unknown

[Other Info]

* Seems to have been fixed on v232.
* Using ifupdown or networkd to create the interface seems to be irrelevant
  (upstream bug report uses networkd, while I use ifupdown)

[1]: https://www.agwa.name/blog/post/beware_the_ipv6_dad_race_condition

description: updated
Changed in systemd (Ubuntu):
status: New → Fix Released
Revision history for this message
Braiam Peguero (braiampe) wrote :

@xnox There isn't anything indicating in the changelogs that this bug was fixed and 229-4ubuntu17. Remember that the bug is a race condition, so it may or may not happen at random, it depends which is faster, systemd or DAD

description: updated
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

zesty ships v232 hence marked as fix released for zesty.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

This is incomplete request, essentially requesting "backport all of networkd" which is not appropriate for a targetted fixes that SRUs require.

Can you not use zesty on your system?

Changed in systemd (Ubuntu Xenial):
status: New → Incomplete
Changed in systemd (Ubuntu Yakkety):
status: New → Incomplete
no longer affects: systemd (Ubuntu Xenial)
no longer affects: systemd (Ubuntu Yakkety)
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.