-
Notifications
You must be signed in to change notification settings - Fork 662
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
nvmf-connect-nbft.service service dependencies #2179
Comments
No. This is what we should ultimately implement. "network online" is obviously much too coarse. I am unsure what the requirements would be though. There are no uevents for this type of event. So I guess we'd need some daemon listing for netlink events (?) and taking appropriate action. iSCSI hasn't been able to come up with a solution to this problem in 20 years.
Yes.
No.
Wicked includes a unit called I suppose that this is the difference wrt NM, where |
Great, thanks for your answers, it's a good starting point now that we know where do we stand. Noting some hints to follow-up on based on the recent Timberland SIG call:
|
All my experiments to find an elegant systemd-only upstream-ready solution led to nowhere. Even if I manage to come up with a systemd unit for a particular network interface and watch for link changes (very nasty solution, don't ask), the interface would not have the necessary addresses set up (at least in RHEL9 w/ NetworkManager) and any calls to nvme-cli would fail anyway. Thus I resorted for a custom NM hook that I plan to keep downstream for the time being. Let's close this until somebody comes with a good solution. |
Thanks. I'd be grateful if you could publish your downstream solution, perhaps in the timberland repos somewhere? |
It's just this simple hook placed in #!/bin/bash
if [[ "$1" == nbft* ]] && [[ "$2" == "up" ]]; then
systemctl start nvmf-connect-nbft.service
fi This is still undergoing testing. There are some side effects, besides the |
This is a follow-up on #2078
Cc: @mwilck
I've been trying to get
nvmf-connect-nbft.service
working on RHEL 9 that is based on NetworkManager. Turns out thenetwork-online.target
only fires once at boot since in the Boot-from-NBFT scenario at least one network interface (saynbft0
for illustration) is always up, thus satisfying the definition of Network is Online. (network-online.target
, see https://systemd.io/NETWORK_ONLINE/).In reality, once a secondary network interface comes up (say
nbft1
) no action is taken, except ofNetworkManager-dispatcher.service
activation that doesn't trigger any other actions/services/units.Ultimately my questions are:
nvmf-connect-nbft.service
supposed to react on any "link up" or "interface configured (DHCP)" events?Does this work this way with
wicked
on your side? I'm trying to find a network management software-universal solution first.My testing scenario looks like this:
set_link net1 off
command)NetworkManager-dispatcher.service
sets the interface up andnvmf-connect-nbft.service
is triggeredThe text was updated successfully, but these errors were encountered: