Skip to content
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

NM activator/bring_up_interfaces: reload and bring up individual network conns #6073

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ani-sinha
Copy link
Contributor

Proposed Commit Message

Reloading the network manager service is equivalent to "nmcli reload" and this command only reloads the global .conf files and DNS config, not connections. This means changes to connection files will not take effect. For those to take effect, we need "nmcli conn load/reload" and then "nmcli conn up". Thus, reloading network manager as well as reloading the connections are required to cover all cases.

Also see #5512 (comment)

While at it, rename "reload-or-try-restart" -> "try-reload-or-restart" since the former is legacy and the later is the officially documented sub-command.

Fixes: GH-6064
Fixes: bde913a ("fix(NetworkManager): Fix network activator")

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

…ork conns

Reloading the network manager service is equivalent to "nmcli reload" and this
command only reloads the global .conf files and DNS config, not connections.
This means changes to connection files will not take effect. For those to take
effect, we need "nmcli conn load/reload" and then "nmcli conn up". Thus,
reloading network manager as well as reloading the connections are required to
cover all cases.

Also see canonical#5512 (comment)

While at it, rename "reload-or-try-restart" -> "try-reload-or-restart" since
the former is legacy and the later is the officially documented sub-command.

Fixes: canonicalGH-6064
Fixes: bde913a ("fix(NetworkManager): Fix network activator")

Signed-off-by: Ani Sinha <[email protected]>
@ani-sinha
Copy link
Contributor Author

@holmanb kindly take a look and comment

Copy link
Member

@TheRealFalcon TheRealFalcon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'll let @holmanb chime in in case there's any additional context I'm missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NetworkManager activator failed to apply DataSourceNoCloudNet network configuration
3 participants