-
Notifications
You must be signed in to change notification settings - Fork 247
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
dracut: add dependency network to ignition-mount.service #1940
Conversation
# and that network is enabled for provider with a network dependency | ||
# like Equinix Metal (Packet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a fan of more verbosity to try to explain the nuance if you don't mind. Something like:
# and that network is enabled for provider with a network dependency | |
# like Equinix Metal (Packet) | |
# and that we order ourselves after network such that | |
# if networking is brought up it will still be available | |
# for our ExecStop= command. On some providers like Equinix | |
# Metal (Packet) there is a network callback sent out | |
# for each Ignition stage (including umount). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thanks for the suggestion.
2d278e9
to
2909beb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch! Commits could be combined but LGTM as is.
docs/release-notes.md
Outdated
@@ -20,6 +20,7 @@ nav_order: 9 | |||
### Bug fixes | |||
|
|||
- Fix Akamai Ignition base64 decoding on padded payloads | |||
- Add network dependency to `ignition-mount.service` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: I guess technically we're not adding a dependency, only a strong ordering. Also these notes are typically written to be more concrete to the end-user. E.g. something like
- Add network dependency to `ignition-mount.service` | |
- Fix network race when phoning home on Equinix |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to me. Done and I squashed the two commits.
On some providers (like Equinix Metal), there is a network dependency for the umount stage, network must be still around when ExecStop is executed. Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com> Co-authored-by: Dusty Mabe <dusty@dustymabe.com>
2909beb
to
6eb35ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
On some providers (like Equinix Metal), there is a network dependency for the umount stage, network must be still around when ExecStop is executed.
Thanks @dustymabe for the suggestion on the fix. 💪
Tested on Flatcar CI with Equinix Metal tests: