-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
networking.service: fix start networking.service before network is marked online #190
networking.service: fix start networking.service before network is marked online #190
Conversation
…rked online In debian 10, ifupdown2 didn't ensure that it will start before network.target and network-online.target. after local-fs.target because ifupdown2 need to read config file from local filesystem Other network services will not start after networking.service and fail because no interface is up. (e.g isc-dhcp-server, tftp-hpa)
a20a82d
to
912b869
Compare
Hi @julienfortin |
Related to #30 |
Related to dentproject/dentOS@1d553a9 |
Hi, we also have added a ifupdown2-pre.service, like ifupdown-pre.service on debian, to wait for systemd-udevd |
It seems PVE will wait for all interface is created and named by udev. |
yes, like debian, because some users using infiniband need it Initialy debian had added a simple "after=systemd-udev-settle.service" but some users with bad devices can have problem, so debian have done it in another ifupdown-pre.service, so user can mask it if it don't want to wait. proxmox have done the same with ifupdown2-pre.service |
It seems we should follow ifupdown-pre way to make sure |
@aderumier should I merge this? I don't want anything to break for anybody. I just tried it on Cumulus Linux 4.4, everything seems OK for us. I also read the proxmox downstream patch, feel free to submit another PR (if you'd like more changes) as long as those changes work for every debian/ubuntu without breaking existing setups. |
About systemd ordering and depend, I think you could ask to proxmox team, as I'm not a big expert with systemd too ;) This proxmox dev could help I known he have tried to push to pull request about it some year ago, and they was closed. See this commit: #68 Also, in proxmox , for udevadm-settle, we have implement an ifupdown2-pre.service , to have same behaviour than debian classic ifupdown1 with ifupdown-service. |
I'm sure we will need |
In debian 10, ifupdown2 didn't ensure that it will start before network.target and network-online.target.
after local-fs.target because ifupdown2 need to read config file from local filesystem
Other network services will not start after networking.service and fail because no interface is up.
(e.g isc-dhcp-server, tftp-hpa)
In Cumulus, this patch shouldn't be a problem because all switch ports need to be up before starting console for login.
and also need to read config file in local filesystem (need "After=local-fs.target")