-
Notifications
You must be signed in to change notification settings - Fork 883
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
feat: Conditionally remove networkd online dependency on Ubuntu #5772
Merged
Commits on Oct 17, 2024
-
feat: Conditionally remove networkd online dependency on Ubuntu
Traditionally, cloud-init-network.service (previously cloud-init.service) waited for network connectivity (via systemd service ordering) before running. This has caused cloud-init-network.service to block boot for a significant amount of time. For the vast majority of boots, this network connectivity isn't required. This commit removes the ordering After=systemd-networkd-wait-online.service, but checks the datasource and user data in the init-local timeframe to see if network connectivity will be necessary in the init network timeframe. If so, when the init network service starts, it will call systemd-networkd-wait-online manually in the same manner that the systemd-networkd-wait-online.service does to wait for network connectivity. This commit affects Ubuntu only due to the various number of service orderings and network renderers possible, along with the downstream synchronization needed. However, a new overrideable method in the Distro class should make this optimization trivial to implement for any other distro.
Configuration menu - View commit details
-
Copy full SHA for e5e7861 - Browse repository at this point
Copy the full SHA e5e7861View commit details -
Comments and minor refactors. Additionally, move the wait_on_network …
…call into the activators.
Configuration menu - View commit details
-
Copy full SHA for 90e944b - Browse repository at this point
Copy the full SHA 90e944bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e89971e - Browse repository at this point
Copy the full SHA e89971eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 053e484 - Browse repository at this point
Copy the full SHA 053e484View commit details -
The biggest one being write .skip-network rather than .wait-for-network, so if there's ever a case where it doesn't get written where it should, default behavior will be to wait as we always have.
Configuration menu - View commit details
-
Copy full SHA for f5ce515 - Browse repository at this point
Copy the full SHA f5ce515View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2dfb920 - Browse repository at this point
Copy the full SHA 2dfb920View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b308de - Browse repository at this point
Copy the full SHA 2b308deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 63ff10b - Browse repository at this point
Copy the full SHA 63ff10bView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.