lxc-net.service is not properly ordered with network-online.target
Bug #1794523 reported by
EOLE team
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I made several tests and I figure out that the lxc-net.service is missing a Wants= directive to be properly ordered against network-
As I understand the systemd.unit manpage, to be properly ordered a unit must define a Requires=/Wants= in addition to an After=/Before=.
Regards.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
To post a comment you must log in.
Hmm, no, that would be wrong.
Wants=/Requires= would cause lxc-net to not start if network- online. target is missing or if it fails. We only want to start after it if it does exist, which is what After does.