-
Notifications
You must be signed in to change notification settings - Fork 882
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
ubuntu/jammy: new_upstream_snapshot refresh patches to fix daily build recipe #5690
Commits on Jun 6, 2023
-
patches: debian/patches/expire-on-hashed-users.patch
Configuration menu - View commit details
-
Copy full SHA for acb6103 - Browse repository at this point
Copy the full SHA acb6103View commit details
Commits on Jun 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ef5d45d - Browse repository at this point
Copy the full SHA ef5d45dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 619c7a2 - Browse repository at this point
Copy the full SHA 619c7a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10e36e8 - Browse repository at this point
Copy the full SHA 10e36e8View commit details
Commits on Jul 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 3a87676 - Browse repository at this point
Copy the full SHA 3a87676View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba0b0e4 - Browse repository at this point
Copy the full SHA ba0b0e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 750eb8b - Browse repository at this point
Copy the full SHA 750eb8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb26daf - Browse repository at this point
Copy the full SHA fb26dafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8021f4e - Browse repository at this point
Copy the full SHA 8021f4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f946acf - Browse repository at this point
Copy the full SHA f946acfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72c855b - Browse repository at this point
Copy the full SHA 72c855bView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd4b660 - Browse repository at this point
Copy the full SHA bd4b660View commit details
Commits on Jul 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a10abd8 - Browse repository at this point
Copy the full SHA a10abd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff72c61 - Browse repository at this point
Copy the full SHA ff72c61View commit details
Commits on Aug 14, 2023
-
d/cloud-init.maintscript: Fix removing unused network manager hook
In the dpkg-maintscript-helper manpage: If the conffile has not been shipped for several versions, and you are now modifying the maintainer scripts to clean up the obsolete file, prior-version should be based on the version of the package that you are now preparing, not the first version of the package that lacked the conffile
Configuration menu - View commit details
-
Copy full SHA for f904811 - Browse repository at this point
Copy the full SHA f904811View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a8b47d - Browse repository at this point
Copy the full SHA 0a8b47dView commit details
Commits on Aug 23, 2023
-
refresh patches against upstream/main
Commit cda82fe warranted downstream patch refresh to fix daily recipe builds against main. patches: debian/patches/retain-old-groups.patch
Configuration menu - View commit details
-
Copy full SHA for c656001 - Browse repository at this point
Copy the full SHA c656001View commit details
Commits on Aug 25, 2023
-
debian/cloud-init.templates: enable Akamai by default
Add Akamai to the default templates to allow datasource discovery. Co-authored-by: Chad Smith <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 73561bf - Browse repository at this point
Copy the full SHA 73561bfView commit details -
Co-authored-by: Chad Smith <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ddb5748 - Browse repository at this point
Copy the full SHA ddb5748View commit details
Commits on Aug 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 850f227 - Browse repository at this point
Copy the full SHA 850f227View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f5764b - Browse repository at this point
Copy the full SHA 2f5764bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0438e75 - Browse repository at this point
Copy the full SHA 0438e75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a03913 - Browse repository at this point
Copy the full SHA 3a03913View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7989406 - Browse repository at this point
Copy the full SHA 7989406View commit details
Commits on Sep 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fb0e030 - Browse repository at this point
Copy the full SHA fb0e030View commit details
Commits on Oct 4, 2023
-
d/contol: add python3-apt to Recommends
cc_apt_configure will use apt_pkg from this deb if present to read apt configuration for Dir::Etc::sourceparts/sourcelist values. When absent, rely on the command apt-config dump.
Configuration menu - View commit details
-
Copy full SHA for 2b040d3 - Browse repository at this point
Copy the full SHA 2b040d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for d09d5e7 - Browse repository at this point
Copy the full SHA d09d5e7View commit details
Commits on Oct 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5d4a3cf - Browse repository at this point
Copy the full SHA 5d4a3cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for c29ac35 - Browse repository at this point
Copy the full SHA c29ac35View commit details
Commits on Oct 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 08e567a - Browse repository at this point
Copy the full SHA 08e567aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ffd557 - Browse repository at this point
Copy the full SHA 7ffd557View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ed9bda - Browse repository at this point
Copy the full SHA 1ed9bdaView commit details
Commits on Nov 1, 2023
-
fix d/p/do-not-block-user-login.patch
Commit 7ffd557 unintentionally redacted the second part of the changeset moving Before=systemd-user-sessions.service from cloud-config.service back into cloud-init.service. Replace the dropped patchset.
Configuration menu - View commit details
-
Copy full SHA for cd68630 - Browse repository at this point
Copy the full SHA cd68630View commit details
Commits on Nov 14, 2023
-
azure: check for primary interface when performing DHCP (canonical#4465)
* azure: check for primary interface when performing DHCP For Savable PPS we rely on a connectivity check to IMDS to determine if the NIC is primary. However, in some cases, connectivity may be delayed and we incorrectly assume the NIC is not primary. Instead of relying on connectivity, check the DHCP-provided route configuration for the presence of Wireserver and/or IMDS IPs. - Return bool from _setup_ephemeral_networking() indicating primary NIC or not. - Remove _check_if_nic_is_primary() used in Savable PPS. - Add a relevant diagnostic to assist debugging failures when a secondary NIC is chosen. - Remove some tests that are redundant. Signed-off-by: Chris Patterson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6903080 - Browse repository at this point
Copy the full SHA 6903080View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad7f781 - Browse repository at this point
Copy the full SHA ad7f781View commit details -
schema: add network-config support to schema subcommand (canonical#4482)
By default, cloud-init schema command will look for processed network config at /run/cloud-init/network-config.json and report any schema validation errors on the commandline. To suport this feature: - return False when validate_cloudconfig_file does not validate a file - skip valdation on either empty network-config schema or network version 2 - add a new --schema-type param to schema subcommand to allow for providing source network-config YAML files and validate as network-config instead of cloud-config - Add schema_type parameter to validate_cloudconfig_file allowing for plumbing 'network-config' type to schema validation call-sites - distill messaging to report config type and cfg files. Avoid classifying network-config as 'cloud-config', avoid lowercase yaml - When --config-file does not provide known header, label this cfg_type as UNKNOWN_CONFIG_HEADER for messaging Additionally, drop unnecessary jsonschema.ValidationError imports as that is already done at the module level.
Configuration menu - View commit details
-
Copy full SHA for 6b2d5ff - Browse repository at this point
Copy the full SHA 6b2d5ffView commit details -
network: warn invalid cfg add /run/cloud-init/network-config (canonic…
…al#4482) When reading netcfg from the environment, validate version 1 against known JSON network-config schema and warnings on invalid schema. Persist the processed network-config at /run/cloud-init/network-config.json as a symlink to /var/lib/cloud/instance/network-config.json.
Configuration menu - View commit details
-
Copy full SHA for b5da6b8 - Browse repository at this point
Copy the full SHA b5da6b8View commit details -
schema: add cloud_init_deepest_matches for best error message (canoni…
…cal#4482) Plug cloud_init_deppest_matches into any oneOf subschema calculation for most likely schema error match. This function will prefer the deepest match into the json_schema path with the exception that it prefers error messages for the matching subschema error for any instance containing a 'type' key. This means, when the subschema defines a required type: key. The cloud_init_deepest_match will raise the matching errors for the specific subschema containing the matching type: XXX over any other errors. Also drop unhelpful shema validation errors: 'blah' is not valid under any of the given schemas. This is replaced with specific validation errors for each unmatched subschema.
Configuration menu - View commit details
-
Copy full SHA for 6867200 - Browse repository at this point
Copy the full SHA 6867200View commit details -
schema: network-config optional network key. route uses oneOf (canoni…
…cal#4482) network-config schema now permits optional top-level network key. We should generally be using oneOf declarations in JSON schema. Fix anyOf_type_route schema definition. Update route definition to oneOf from anyOf requiring either 'network' or 'destination' key, combined with a 'gateway' key.
Configuration menu - View commit details
-
Copy full SHA for e3b686d - Browse repository at this point
Copy the full SHA e3b686dView commit details -
After pytest-dev/pytest#11125 being included in pytest==7.4, pytest can be unpinned.
Configuration menu - View commit details
-
Copy full SHA for 014ecad - Browse repository at this point
Copy the full SHA 014ecadView commit details -
Configuration menu - View commit details
-
Copy full SHA for b6df688 - Browse repository at this point
Copy the full SHA b6df688View commit details -
Support QEMU in integration tests
Make use of new QEMU support in pycloudlib and bump pycloudlib accordingly.
Configuration menu - View commit details
-
Copy full SHA for c93d219 - Browse repository at this point
Copy the full SHA c93d219View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7fda1e - Browse repository at this point
Copy the full SHA e7fda1eView commit details -
MAAS: Add datasource to init-local timeframe
Set kernel commandline network configuration source to have precedence over initramfs config in init-local timeframe.
Configuration menu - View commit details
-
Copy full SHA for f9e8bc5 - Browse repository at this point
Copy the full SHA f9e8bc5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a083f3 - Browse repository at this point
Copy the full SHA 9a083f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62bad73 - Browse repository at this point
Copy the full SHA 62bad73View commit details -
fix: added mock to stop leaking journalctl that slows down unit test (c…
…anonical#4556) In test_logs.py, test_collect_logs_includes_optional_userdata() would leak the journalctl subprocess call because it did not mock subprocess.call() like test_collect_logs_creates_tarfile() does. This would cause the unit test to take a long time to run because it was calling the actual journalctl command. Fixes canonicalGH-4536
Configuration menu - View commit details
-
Copy full SHA for 54e8f9d - Browse repository at this point
Copy the full SHA 54e8f9dView commit details -
summit-notes: add 2023 notes for reference in mailinglist/discourse
Provide an unauthenticated view of meeting notes for those without google accounts. Original meeting notes live in a shared google drive document. To provide a point of reference for those in the community without google accounts we have refactored the notes to markdown and will host them in the cloud-init repository so that both discourse trip reports and mailinglist threads can reference these notes without have to bloat the email or discourse post with details. Co-authored-by: Sally Makin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2bfc5d2 - Browse repository at this point
Copy the full SHA 2bfc5d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0432f21 - Browse repository at this point
Copy the full SHA 0432f21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 580bced - Browse repository at this point
Copy the full SHA 580bcedView commit details -
azure/imds: ensure new errors are logged immediately when retrying (c…
…anonical#4468) When retrying to fetch metadata from IMDS there is a backoff for logging to avoid flooding the logs. In the current implementation we have to wait until the next backoff log to see the transition. Always log when the current error does not match the previous one. Signed-off-by: Chris Patterson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 912dbf9 - Browse repository at this point
Copy the full SHA 912dbf9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3346680 - Browse repository at this point
Copy the full SHA 3346680View commit details -
Add summit digest/trip report to docs (canonical#4561)
Also moved images out of the repo (including the ones from previous years) and added to the Ubuntu asset manager for hosting to avoid bloating the repo as time goes on!
Configuration menu - View commit details
-
Copy full SHA for 3341587 - Browse repository at this point
Copy the full SHA 3341587View commit details -
tools/render-template: Make yaml loading opt-in, fix setup.py (canoni…
…cal#4564) Fixes canonicalGH-4487
Configuration menu - View commit details
-
Copy full SHA for 5aa4b6e - Browse repository at this point
Copy the full SHA 5aa4b6eView commit details -
test: Remove stale status.json value (canonical#4500)
Commit f780cf9 removed the modules-init key from status.json v1 key. Don't use it as example test data.
Configuration menu - View commit details
-
Copy full SHA for 4a15de1 - Browse repository at this point
Copy the full SHA 4a15de1View commit details -
refactor: Rename exported_errors in status.json (canonical#4500)
This key had more meaning to a developer than to a user. Replace with "recoverable_errors", and align internal variable names with external user UI for code legibility.
Configuration menu - View commit details
-
Copy full SHA for 8509d3e - Browse repository at this point
Copy the full SHA 8509d3eView commit details -
status: Remove duplicated data (canonical#4500)
If different meaning for duplicate keys is required, then a v2 can be added. Drop versioning scheme and duplicate keys to reduce unnecessary verbosity. BREAKING CHANGE: cloud-init status --json output
Configuration menu - View commit details
-
Copy full SHA for 0651d7f - Browse repository at this point
Copy the full SHA 0651d7fView commit details -
status.json: Don't override detail key with error condition (canonica…
…l#4500) The detail in this key is duplicate, and changing the value of this key during error condition is neither obvious nor documented. Make this key behave the same regardless of error condition. BREAKING CHANGE: status.json
Configuration menu - View commit details
-
Copy full SHA for 39c8209 - Browse repository at this point
Copy the full SHA 39c8209View commit details -
Add support for cloud-init "degraded" state (canonical#4500)
Summary ======= This commit `cloud-init status` to include: 1. A new exit code (2) 2. Additional running states, exported under a new key "extended_status" 3. External representation of all internal errors: - aggregate recoverable errors - per-stage recoverable errors - per-stage non-recoverable errors (aggregate key already exists) Current state: recoverable errors vs non-recoverable errors =========================================================== critical failure ---------------- If cloud-init is unable to complete, the service returns with exit code 1, and error messages are visible in the log files and in output of `cloud-init status --format json` under the top level 'error' key. recoverable failure ------------------- In the case that cloud-init is able to complete yet something goes awry, the service returns with exit code 0 and messages are visible in the log files. Future state: recoverable errors vs non-recoverable errors ========================================================== critical failure ---------------- If cloud-init is unable to complete, error messages will now additionally be visible in output of `cloud-init status --format json` within the 'error' key nested under the module-level keys: 'init-local', 'init', 'modules-config', 'modules-final'. recoverable failure ------------------- In the case that cloud-init is able to complete yet something goes awry, the service will now return with exit code 2, and error messages will be visible in the output of `cloud-init status --format` json under the top level 'recoverable_errors' key as well as within the 'error' key nested under the module-level keys: 'init-local', 'init', 'modules-config', 'modules-final'. Implementation ============== Cloud-init error codes ---------------------- 0 - success 1 - unrecoverable error 2 - recoverable error (new) This new exit code indicates recoverable errors. If cloud-init exits with exit code (2), cloud-init was able to complete gracefully, however something went wrong and the user should investigate. Additional states ----------------- For backwards compatibility, the output of `cloud-init status` remains unchanged. A new key 'extended_status' is included in the output: $ cloud-init status --format json | jq .status "done" $ cloud-init status --format json | jq .extended_status "degraded done" See Appendix A for list of possible states. Exported errors: Aggregated errors ---------------------------------- When a recoverable error occurs, the internal cloud-init state information is made visible under a top level aggregate key 'recoverable_errors' with errors sorted by error level: $ cloud-init status --format json | jq .recoverable_errors { "WARNING": [ "Failed at merging in cloud config part from part-001: empty cloud config", "No template found in /etc/cloud/templates for template named sources.list.ubuntu.deb822", "No template found in /etc/cloud/templates for template named sources.list", "No template found, not rendering /etc/apt/sources.list.d/ubuntu.sources" ] } See Appendix B for list of possible error levels. Exported errors: Per-stage errors --------------------------------- The keys 'errors' and 'recoverable_errors' are also exported for each stage to allow attribution of recoverable and non-recoverable errors to their source. $ cloud-init status --format json | jq .init.recoverable_errors { "WARNING": [ "Failed at merging in cloud config part from part-001: empty cloud config" ] } Note: Only cloud-init stages which have completed are listed in the output of `cloud-init status --format json`. See Appendix C for list of possible cloud-init stages. Limitations of internal errors ============================== - Exported recoverable errors represent logged messages, which are not guaranteed to be stable between releases. The contents of the 'errors' and 'recoverable_errors' keys are not guaranteed to have stable output! - Exported errors and recoverable errors may occur at different stages since users may reorder configuration modules to run at different stages via cloud.cfg. Appendices ========== Appendix A: Extended states --------------------------- "not running" "running" "done" "error" "degraded done" "degraded running" "disabled" Appendix B: Error levels ------------------------ Reported recoverable error messages are grouped by the level at which they are logged. Complete list of levels: WARNING DEPRECATED ERROR CRITICAL Appendix C: Stages of cloud-init -------------------------------- The json representation of cloud-init stages (in run order) is: "init-local" "init" "modules-config" "modules-final" This commit implements design specification US057[1]. [1] https://discourse.ubuntu.com/t/spec-improve-error-and-warning-visibility/39765
Configuration menu - View commit details
-
Copy full SHA for 70e7def - Browse repository at this point
Copy the full SHA 70e7defView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cc5527 - Browse repository at this point
Copy the full SHA 8cc5527View commit details -
refresh patches against origin/main
patches: debian/patches/do-not-block-user-login.patch
Configuration menu - View commit details
-
Copy full SHA for bc0eec0 - Browse repository at this point
Copy the full SHA bc0eec0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 185b127 - Browse repository at this point
Copy the full SHA 185b127View commit details -
Configuration menu - View commit details
-
Copy full SHA for a63f603 - Browse repository at this point
Copy the full SHA a63f603View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f6c569 - Browse repository at this point
Copy the full SHA 0f6c569View commit details
Commits on Nov 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for de0c5fa - Browse repository at this point
Copy the full SHA de0c5faView commit details -
refresh patches against upstream/main
patches: debian/patches/status-do-not-remove-duplicated-data.patch
Configuration menu - View commit details
-
Copy full SHA for f9a5f5b - Browse repository at this point
Copy the full SHA f9a5f5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c7f731 - Browse repository at this point
Copy the full SHA 5c7f731View commit details
Commits on Dec 5, 2023
-
d/p/series: bring back retain-old-groups.patch
This patch was inadvertently dropped in 5d4a3cf.
Configuration menu - View commit details
-
Copy full SHA for c1f6916 - Browse repository at this point
Copy the full SHA c1f6916View commit details -
Configuration menu - View commit details
-
Copy full SHA for 650547d - Browse repository at this point
Copy the full SHA 650547dView commit details -
Configuration menu - View commit details
-
Copy full SHA for da2bc97 - Browse repository at this point
Copy the full SHA da2bc97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39a664a - Browse repository at this point
Copy the full SHA 39a664aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4614cb6 - Browse repository at this point
Copy the full SHA 4614cb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7584f3 - Browse repository at this point
Copy the full SHA e7584f3View commit details
Commits on Dec 14, 2023
-
d/p/retain-apt-pre-deb822.patch:
- Disable apt source list generation with DEB822 style
Configuration menu - View commit details
-
Copy full SHA for db8e692 - Browse repository at this point
Copy the full SHA db8e692View commit details -
Configuration menu - View commit details
-
Copy full SHA for d437aec - Browse repository at this point
Copy the full SHA d437aecView commit details -
fix: Handle systemctl commands when dbus not ready (canonical#4681)
fix: Handle systemctl commands when dbus not ready During `cloud-init status`, we check systemctl to ensure the status we're reporting is accurate. However, we can get an error from systemctl if dbus isn't ready yet. This commit will either ignore the error if we can assume that cloud-init is still running, or retry until we get a proper response from systemctl. Fixes canonicalGH-4676
Configuration menu - View commit details
-
Copy full SHA for af28f4b - Browse repository at this point
Copy the full SHA af28f4bView commit details -
Bump the version in cloudinit/version.py to 23.4.1 and update ChangeLog.
Configuration menu - View commit details
-
Copy full SHA for 2c452eb - Browse repository at this point
Copy the full SHA 2c452ebView commit details
Commits on Dec 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 590a2c6 - Browse repository at this point
Copy the full SHA 590a2c6View commit details -
refresh patches against 23.4.1
patches: debian/patches/retain-apt-pre-deb822.patch debian/patches/status-do-not-remove-duplicated-data.patch
Configuration menu - View commit details
-
Copy full SHA for 1f466cd - Browse repository at this point
Copy the full SHA 1f466cdView commit details
Commits on Jan 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1c842d1 - Browse repository at this point
Copy the full SHA 1c842d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41cbfec - Browse repository at this point
Copy the full SHA 41cbfecView commit details
Commits on Jan 8, 2024
-
d/p/status-retain-recoverable-error-exit-code.patch:
Retain exit code in cloud-init status for recoverable errors. (LP: #2048522).
Configuration menu - View commit details
-
Copy full SHA for 9c7fd8e - Browse repository at this point
Copy the full SHA 9c7fd8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bb0a96 - Browse repository at this point
Copy the full SHA 9bb0a96View commit details
Commits on Jan 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c284689 - Browse repository at this point
Copy the full SHA c284689View commit details
Commits on Jan 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6788fa5 - Browse repository at this point
Copy the full SHA 6788fa5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 632a752 - Browse repository at this point
Copy the full SHA 632a752View commit details
Commits on Jan 25, 2024
-
Bump the version in cloudinit/version.py to 23.4.2 and update ChangeLog.
Configuration menu - View commit details
-
Copy full SHA for c9f12ca - Browse repository at this point
Copy the full SHA c9f12caView commit details
Commits on Feb 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0f7eef9 - Browse repository at this point
Copy the full SHA 0f7eef9View commit details -
refresh patches against upstream/main
patches: debian/patches/retain-netplan-world-readable.patch debian/patches/status-do-not-remove-duplicated-data.patch debian/patches/status-retain-recoverable-error-exit-code.patch
Configuration menu - View commit details
-
Copy full SHA for 8b243a4 - Browse repository at this point
Copy the full SHA 8b243a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff488a0 - Browse repository at this point
Copy the full SHA ff488a0View commit details
Commits on Feb 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 49efc43 - Browse repository at this point
Copy the full SHA 49efc43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 488f756 - Browse repository at this point
Copy the full SHA 488f756View commit details -
fix(netplan)!: netplan in jammy requires 600 perms for root
netplan 106.1-7 requires that netplan config parts are root-readonly. Any files with more open permissions will generate warnings on the netplan cli. This change in behavior was introduced in netplan.io to mitigate some security concerns where netplan files could contain sensitive information. Align with this security guidance and ensure cloud-init writes /etc/netplan/50-cloud-init.yaml as root 600 instea of world-readable. LP: #2053157
Configuration menu - View commit details
-
Copy full SHA for 4e08e70 - Browse repository at this point
Copy the full SHA 4e08e70View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc0a6f9 - Browse repository at this point
Copy the full SHA dc0a6f9View commit details
Commits on Feb 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 926fa73 - Browse repository at this point
Copy the full SHA 926fa73View commit details -
docs: add create_hostname_file to all hostname user-data examples (ca…
…nonical#4727) If a cloud or user sets create_hostname_file to false (as GCP does) the examples in our docs for setting the hostname will not work. This change updates those examples to also set create_hostname_file to true.
Configuration menu - View commit details
-
Copy full SHA for e29ede0 - Browse repository at this point
Copy the full SHA e29ede0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3101b93 - Browse repository at this point
Copy the full SHA 3101b93View commit details -
tests: add status --wait blocking test from early boot
In bugs such as LP: #2046483, cloud-init status --wait produces a traceback early when dbus or other resources are not yet available resulting in an early unblock from status --wait. Add an integration test inserting a systemd unit before cloud-init-local.service that will block until cloud-init is done. Assert that the timestamp of marker file created when this test unit unblocks, occurs after cloud-init.target was reached.
Configuration menu - View commit details
-
Copy full SHA for c111a18 - Browse repository at this point
Copy the full SHA c111a18View commit details -
test: Bring back dhcp6 integration test changes (canonical#4855)
This reverts commit 9c6bbc3.
Configuration menu - View commit details
-
Copy full SHA for 19742c6 - Browse repository at this point
Copy the full SHA 19742c6View commit details -
feat(azure): Add ProvisionGuestProxyAgent OVF setting (canonical#4860)
Add ProvisionGuestProxyAgent Boolean configuration setting into the OvfEnv class. This PR is only logging the value of ProvisionGuestProxyAgent.
Configuration menu - View commit details
-
Copy full SHA for a197333 - Browse repository at this point
Copy the full SHA a197333View commit details -
feat(dhcp): Support InfiniBand with dhcpcd (canonical#4830)
Dhcpcd will default to sending a default of hardware family and hardware address when no argument is given. Since this is the required behavior for dhcp on InfiniBand, use this flag if an InfiniBand interface is detected. from dhcpcd(8): -I, --clientid clientid Send the clientid. If the string is of the format 01:02:03 then it is encoded as hex. For interfaces whose hardware address is longer than 8 bytes, or if the clientid is an empty string then dhcpcd sends a default clientid of the hardware family and the hardware address.
Configuration menu - View commit details
-
Copy full SHA for 6f90340 - Browse repository at this point
Copy the full SHA 6f90340View commit details -
feat(dhcp): Make udhcpc use same client id (canonical#4830)
Currently it uses the OpenStack codepath which grabs some random bytes out of the hardware address.
Configuration menu - View commit details
-
Copy full SHA for 1389084 - Browse repository at this point
Copy the full SHA 1389084View commit details -
fix: Address TIOBE abstract interpretation issues (canonical#4866)
These involve operations on possibly null variables or impossible logic.
Configuration menu - View commit details
-
Copy full SHA for ba738e1 - Browse repository at this point
Copy the full SHA ba738e1View commit details -
The test removes dhcp clients to force imds recrawling, but didn't remove the dhcpcd one, after 21b2b6e the dhcpcd one is used and the test preconditoin is not met. Co-authored-by: Chad Smith <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a39ef2d - Browse repository at this point
Copy the full SHA a39ef2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4fb02c - Browse repository at this point
Copy the full SHA b4fb02cView commit details -
test: fix test_cli.test_valid_userdata
cloud-init status should not fail on valid userdata.
Configuration menu - View commit details
-
Copy full SHA for fdea6b5 - Browse repository at this point
Copy the full SHA fdea6b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff623ff - Browse repository at this point
Copy the full SHA ff623ffView commit details -
feat(bootspeed)!: cloud-config.service drop After=snapd.seeded
Historically cloud-config.service was declared the boot stage blocked on After=snapd.seeded.service to allow for any config module to potentially leverage snap utilities if present. In practice, only the config modules cc_snap, cc_lxd, cc_ubuntu_autoinstall and cc_runcmd are the modules that may strictly rely on snaps being seeded during initial boot. So the systemd ordering is not necessary in the majority of deployment cases. Avoid a hard systemd ordering `After=snapd-seeded.service` in cloud-config.service. Instead, directly call `snap system wait seed.loaded` if user-data requires that snaps are present and seeded. Add a semphore runner set limited to frequency PER_ONCE which calls snap wait system seed.loaded one time to block if any related cloud-config modules are active which may require snap interaction. Add this helper to each affected cloud-config module: snap, lxd, ubuntu_autoinstall. The runner will prevent cloud-init from making multiple calls to snap wait even if user-data requires snappy interaction is applicable for multiple config modules with a dependency on snaps. If runcmd user-data or any scripts-per-boot, scripts-per-instance or scripts-per-once are dependent on snaps being installed and active, those scripts should first run: snap wait system seed.loaded. BREAKING CHANGE: users of runcmd and scripts-per-X may need snap wait
Configuration menu - View commit details
-
Copy full SHA for fe1dd54 - Browse repository at this point
Copy the full SHA fe1dd54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a68c5c - Browse repository at this point
Copy the full SHA 7a68c5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2694652 - Browse repository at this point
Copy the full SHA 2694652View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e4efa3 - Browse repository at this point
Copy the full SHA 9e4efa3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 907dc8f - Browse repository at this point
Copy the full SHA 907dc8fView commit details -
test: fix test_combined_cloud_config_json (canonical#4868)
Features are series dependent, make the test aware of that. The test now distinguishes between devel and in_place cloud-init packages which would carry quilt patches modifying features. Co-authored-by: Chad Smith <[email protected]> Co-authored-by: James Falcon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0fdc061 - Browse repository at this point
Copy the full SHA 0fdc061View commit details -
test: harden test_dhcp.py::test_noble_and_newer_force_client
Update apt sources and ensure target dhcp client is correctly installed.
Configuration menu - View commit details
-
Copy full SHA for b587951 - Browse repository at this point
Copy the full SHA b587951View commit details -
feat(hotplug): hook-hotplug is now POSIX shell add OpenRC init script
Change hooj-hotplug from being Bash-specific to POSIX shell. Add OpenRC init script for starting hotplug "daemon". Add hotplug "daemon" that corresponds to cloud-init's cloud-init-hotplugd.service/cloud-init-hotplugd.socket functionality.
Configuration menu - View commit details
-
Copy full SHA for 8c48c7b - Browse repository at this point
Copy the full SHA 8c48c7bView commit details -
feat(ec2): support multi NIC/IP setups (canonical#4799)
For EC2 instances with multiple NICs, policy-based routing will be configured on secondary NICs / secondary IPs to ensure outgoing packets are routed via the correct interface. Without this extra routing config, traffic coming via secondary NICs was routed using the main routing table, which can only contain one default route and the kernel only takes the destination IP address into account when selecting a route. Packets for destination beyond local networks were always routed through the default route, the one associated with the primary NIC. If traffic based on specific source IP addresses is associated with another NIC, wihtout these routing policies, this traffic would flow over the default route and the connection couldn't be established. References: [1] https://bootstack.canonical.com/cases/00336928 [2] https://bootstack.canonical.com/cases/00377150
Configuration menu - View commit details
-
Copy full SHA for 1c56a91 - Browse repository at this point
Copy the full SHA 1c56a91View commit details -
feat(cc_install_hotplug): trigger hook on known ec2 drivers (canonica…
…l#4799) Add extra logic to only trigger hook-hotplug on NICs with known drivers on EC2. This aviods the hook being triggered on any add/remove event on net devices, causing uneeded CPU usage, as on instance that start and stop a lot of docker containers, see [1]. Rename 10-cloud-init-hook-hotplug.rules to 90-cloud-init-hook-hotplug.rules as ID_NET_DRIVER is not defined until [2]80-net-setup-link.rules is sourced. References: [1] https://bugs.launchpad.net/cloud-init/+bug/1946003 [2] https://github.com/systemd/systemd/blob/main/rules.d/80-net-setup-link.rules
Configuration menu - View commit details
-
Copy full SHA for 7530275 - Browse repository at this point
Copy the full SHA 7530275View commit details -
feat(ec2): support instances with repeated device-number (canonical#4799
) Some instances, as p5 instances, can have multiple network cards and repeated device-numbers within them, see [0,1]. Add support to properly render the network configuration associated with them. References: [0] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#network-cards [1] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/p5-efa.html
Configuration menu - View commit details
-
Copy full SHA for e5016db - Browse repository at this point
Copy the full SHA e5016dbView commit details -
feat(ec2): add hotplug as a default network update event (canonical#4799
Configuration menu - View commit details
-
Copy full SHA for 085326e - Browse repository at this point
Copy the full SHA 085326eView commit details -
distro: add eject FreeBSD code path (canonical#4838)
OpenBSD, and NetBSD both have an eject(1), so they should be covered in the default code path. FreeBSD and Dragonfly however, do not have eject in base. Here, eject is an (unmaintained) port. In base, we do however, have camcontrol(8) and cdcontrol(1), both of which have an eject subcommand. Let's use camcontrol(8) here. Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for edfde5e - Browse repository at this point
Copy the full SHA edfde5eView commit details -
fix: unpin jsonschema and update tests (canonical#4882)
In 034a5cd , we pinned jsonschema version due to failing tests. Test failures were due to jsonschema library changing error messages. This commit unpins the version and updates tests accordingly. Fixes canonicalGH-4783 Co-authored-by: dermotbradley <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0f7dc5c - Browse repository at this point
Copy the full SHA 0f7dc5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2951337 - Browse repository at this point
Copy the full SHA 2951337View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38a6302 - Browse repository at this point
Copy the full SHA 38a6302View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42448f2 - Browse repository at this point
Copy the full SHA 42448f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1138bb4 - Browse repository at this point
Copy the full SHA 1138bb4View commit details -
d/p/retain-ec2-default-net-update-events.patch:
Reverts 4dbb08f to not change behavior on stable releases.
Configuration menu - View commit details
-
Copy full SHA for bd6507a - Browse repository at this point
Copy the full SHA bd6507aView commit details -
d/cloud-init.postinst: change priority of hotplug rules
Avoids LP: #1946003 on upgraded systems. References: [0] canonical#4799 [1] canonical@b519d86
Configuration menu - View commit details
-
Copy full SHA for 22f7e45 - Browse repository at this point
Copy the full SHA 22f7e45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 205181a - Browse repository at this point
Copy the full SHA 205181aView commit details
Commits on Feb 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 08e5cd3 - Browse repository at this point
Copy the full SHA 08e5cd3View commit details -
refresh patches against upstream/main
patches: debian/patches/retain-ec2-default-net-update-events.patch
Configuration menu - View commit details
-
Copy full SHA for a76bdd5 - Browse repository at this point
Copy the full SHA a76bdd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80c58fd - Browse repository at this point
Copy the full SHA 80c58fdView commit details
Commits on Feb 20, 2024
-
test: fix verify_clean_log (canonical#4903)
verify_clean_log assumed shadowed warning messages to be contained in a single line entry with a `[WARNING]`, but warnings can be multiline as: ``` 2024-02-16 15:01:49,354 - activators.py[WARNING]: Running ['netplan', 'apply'] resulted in stderr output: Cannot call Open vSwitch: ovsdb-server.service is not running. Failed to connect system bus: No such file or directory Falling back to a hard restart of systemd-networkd.service ``` wrongly asserting the number of expected_warnings. Make this check more reliable by asserting that the number of lines containing `WARNINGS` is less or equal than the number of appearances of the shadowed warning messages.
Configuration menu - View commit details
-
Copy full SHA for bdcde3c - Browse repository at this point
Copy the full SHA bdcde3cView commit details -
feat(schema): support ubuntu_pro key and deprecate ubuntu_advantage
Create generalized ubuntu_pro.properties definition to be shared in the ubuntu_pro and ubuntu_advantage property schemas as they are identical schema definitions. Given that ubuntu_advantage is now deprecated, add the schema keys deprecated, deprecated_version and deprecated description to provide descriptive warning logs when deprecated keys are present in user-data.
Configuration menu - View commit details
-
Copy full SHA for 7dc17ee - Browse repository at this point
Copy the full SHA 7dc17eeView commit details -
feat(ubuntu pro): deprecate ubuntu_pro key in favor of ubuntu_advantage
Update cc_ubuntu_advantage module, comments, logs and examples to prefer ubuntu_pro key over ubuntu_advantage to align with the updated product naming. - Deprecate ubuntu_advantage key and represent ubuntu_pro is prioritized - Update product URL to ubuntu.com/pro instead of /advantage - Update log messaging and examples to reference Ubuntu Pro instead of Ubuntu Advantage - Add logic to error when both ubuntu_advantage and ubuntu-advantage keys are present in userdata.
Configuration menu - View commit details
-
Copy full SHA for 7f10125 - Browse repository at this point
Copy the full SHA 7f10125View commit details -
chore: rename cc_ubuntu_advantage to cc_ubuntu_pro (SC-1555)
Move the cc_ubuntu_advantage module to cc_ubuntu_pro, updating schema definitions to align with new module name and default /etc/cloud/cloud.cfg to represent ubuntu_pro instead of ubuntu_advantage module.
Configuration menu - View commit details
-
Copy full SHA for 18b2bea - Browse repository at this point
Copy the full SHA 18b2beaView commit details -
doc: update ubuntu_advantage references to pro
Also update stale /etc/cloud/cloud.cfg example adding new config modules present in tip of tree.
Configuration menu - View commit details
-
Copy full SHA for 3bfe2d1 - Browse repository at this point
Copy the full SHA 3bfe2d1View commit details -
chore: Rename sysvinit/gentoo directory to sysvinit/openrc (canonical…
…#4906) The files in the sysvinit/gentoo directory are OpenRC files not specific to Gentoo and are used by other distro (i.e. Alpine).
Configuration menu - View commit details
-
Copy full SHA for 0f22968 - Browse repository at this point
Copy the full SHA 0f22968View commit details -
test: fix kernel override test (canonical#4913)
On focal we detect NoCloud rather than LXD, so ensure the test reflects this.
Configuration menu - View commit details
-
Copy full SHA for 050f7eb - Browse repository at this point
Copy the full SHA 050f7ebView commit details -
test: Retry longer in test_status.py integration test (canonical#4910)
Saw "cat: /before-local.start-nostatusjson: No such file or directory" failures. After this change, I no longer see these failures.
Configuration menu - View commit details
-
Copy full SHA for 357b23f - Browse repository at this point
Copy the full SHA 357b23fView commit details -
feat(Alpine) cc_growpart.py: fix handling of /dev/mapper devices (can…
…onical#4876) Unlike the majority of other Linux distros /dev/mapper entries in Alpine Linux are NOT symlinks to /dev/dm-X block devices but rather are actual block devices themselves. This is a side-effect of Alpine's use of mdev, rather than udev, in its initramfs. Therefore this change works out the corresponding /dev/dm-X for any /dev/mapper/XYZ device on Alpine.
Configuration menu - View commit details
-
Copy full SHA for 2fe03a3 - Browse repository at this point
Copy the full SHA 2fe03a3View commit details -
feat(dhcp): Make dhcpcd the default dhcp client (canonical#4912)
isc-dhcp-client is no longer supported by upstream BREAKING CHANGE: dhcpcd has been promoted to the default dhcp client. Previous behavior can be configured in cloud.cfg via the dhcp_client_priority key.
Configuration menu - View commit details
-
Copy full SHA for 6357027 - Browse repository at this point
Copy the full SHA 6357027View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84c70f2 - Browse repository at this point
Copy the full SHA 84c70f2View commit details -
Add d/p/keep-dhclient-as-priority-client.patch
Keep dhclient as default client.
Configuration menu - View commit details
-
Copy full SHA for abc9b5a - Browse repository at this point
Copy the full SHA abc9b5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 56c4625 - Browse repository at this point
Copy the full SHA 56c4625View commit details
Commits on Feb 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 33107fe - Browse repository at this point
Copy the full SHA 33107feView commit details -
refresh patches against upstream/main
patches: debian/patches/keep-dhclient-as-priority-client.patch debian/patches/revert-551f560d-cloud-config-after-snap-seeding.patch
Configuration menu - View commit details
-
Copy full SHA for 88ec494 - Browse repository at this point
Copy the full SHA 88ec494View commit details -
Configuration menu - View commit details
-
Copy full SHA for c076145 - Browse repository at this point
Copy the full SHA c076145View commit details
Commits on Feb 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e5743a6 - Browse repository at this point
Copy the full SHA e5743a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45cf454 - Browse repository at this point
Copy the full SHA 45cf454View commit details
Commits on Feb 27, 2024
-
tests: pro integration tests supply ubuntu_advantage until pro v32 (c…
…anonical#4935) Until ubuntu-advantage-tools version 32 is SRU'd to stable series Pro images will continue to auto-attach by default unless an ubuntu_advantage key is provided in user-data. Allow our integration test to provide ubuntu_advantage and ubuntu_pro keys knowing that any ubuntu_pro config overrides ubuntu_advantage in latest cloud-init. This will emit a warning message about preference of ubuntu_pro over ubuntu_advantage and deprecation warnings, but the integration test doesn't validate deprecation warnings. We can drop ubuntu_advantage from our user-data in May when Pro 32 releases.
Configuration menu - View commit details
-
Copy full SHA for 9f6044b - Browse repository at this point
Copy the full SHA 9f6044bView commit details -
tests: lxd_vm early boot status test ordered After=systemd-remount-fs (…
…canonical#4936) Fix errors seen on lxd_vm where test service before-cloud-init-local.service gets run before the filesytem is mounted read-write. Test failures exhibit the following failure: systemctl status before-cloud-init-local.service: /waitoncloudinit.sh: 7: cannot create /before-local: Read-only file system
Configuration menu - View commit details
-
Copy full SHA for e8dae14 - Browse repository at this point
Copy the full SHA e8dae14View commit details -
tests: on noble, expect default /etc/apt/sources.list
livecd-rootfs changes now place a default /etc/apt/sources.list file in Ubuntu Noble and later where deb822 feature flag is enabled in cloud-init. Assert that the /etc/apt/sources.list content matches expectations.
Configuration menu - View commit details
-
Copy full SHA for cccd00e - Browse repository at this point
Copy the full SHA cccd00eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 761e8a1 - Browse repository at this point
Copy the full SHA 761e8a1View commit details -
test: limit temp dhcp6 changes to < NOBLE (canonical#4942)
canonical#4474 landed in Noble, so this block isn't needed.
Configuration menu - View commit details
-
Copy full SHA for 190c68c - Browse repository at this point
Copy the full SHA 190c68cView commit details -
test: Use correct lxd network-config keys (canonical#4950)
Focal uses user.network-config while others use cloud-init.network-config. Ensure we handle all cases approparitely in test_networking.py There are also some minor refactors
Configuration menu - View commit details
-
Copy full SHA for 3a1a000 - Browse repository at this point
Copy the full SHA 3a1a000View commit details -
refactor: Refactor status.py (canonical#4864)
The one major functional change in this commit is around how we detect running vs error states. Status reporting has a fundamental problem in that we can't accurately tell if cloud-init is done because cloud-init is actually several processes. There isn't always a way to tell whether a service isn't running because it simply hasn't started yet vs the service being blocked/crashed and will never start/finish. In the past, if any of the cloud-init services reported an error, we would assume that cloud-init as a whole has crashed and report that cloud-init is "done", but with error. This commit flips that logic to assume that cloud-init is always running unless we see indication that cloud-init has completely finished. This means that `cloud-init status --wait` may run forever if cloud-init has crashed or is blocked on another service. This is preferable to returning early and potentially allowing provisioning scripts that wait for cloud-init to continue provisioning. On systemd-enabled systems, there is extra logic to inspect the state of the services, so this should rarely be a problem in practice. Additionally, this commit includes the following refactoring: - Split UXAppStatus into RunningStatus and ConditionStatus so they can be tracked independently - Simplify the tabular printing - On error print extended_status as "error - done" or "error - running" - Add several helper functions in `get_status_details` to simplify logic - Rename `_get_error_or_running_from_systemd` to `systemd_failed` and only return if error is detected - Change "is running" logic to be determined solely by the existence of the status.json and results.json files.
Configuration menu - View commit details
-
Copy full SHA for f5e48f4 - Browse repository at this point
Copy the full SHA f5e48f4View commit details -
fix: Remove hardcoded /var/lib/cloud hotplug path (canonical#4940)
The cloud dir is configurable, so we shouldn't be hardcoding the hotplug.enabled file location
Configuration menu - View commit details
-
Copy full SHA for c74dbe5 - Browse repository at this point
Copy the full SHA c74dbe5View commit details -
tests: Check that smbios seed works
- Verify that NoCloud smbios seed gets read for file:// - Verify that NoCloud smbios seed gets read from http:// and https://
Configuration menu - View commit details
-
Copy full SHA for 7e099b2 - Browse repository at this point
Copy the full SHA 7e099b2View commit details -
fix(nocloud): smbios datasource definition
deprecate nocloud-net name
Configuration menu - View commit details
-
Copy full SHA for 0d2be58 - Browse repository at this point
Copy the full SHA 0d2be58View commit details -
Release 23.4.4 (canonical#4955)
Bump the version in cloudinit/version.py to 23.4.4 and update ChangeLog. Co-authored-by: Brett Holman <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e384dff - Browse repository at this point
Copy the full SHA e384dffView commit details -
refresh patches against upstream/main
patches: debian/patches/status-do-not-remove-duplicated-data.patch debian/patches/status-retain-recoverable-error-exit-code.patch debian/patches/revert-551f560d-cloud-config-after-snap-seeding.patch
Configuration menu - View commit details
-
Copy full SHA for c367e80 - Browse repository at this point
Copy the full SHA c367e80View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9bf232 - Browse repository at this point
Copy the full SHA b9bf232View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9364cb0 - Browse repository at this point
Copy the full SHA 9364cb0View commit details -
refresh patches against upstream/main
patches: debian/patches/status-do-not-remove-duplicated-data.patch debian/patches/status-retain-recoverable-error-exit-code.patch
Configuration menu - View commit details
-
Copy full SHA for 7c9f681 - Browse repository at this point
Copy the full SHA 7c9f681View commit details -
Configuration menu - View commit details
-
Copy full SHA for 353b759 - Browse repository at this point
Copy the full SHA 353b759View commit details
Commits on Mar 13, 2024
-
netifaces is being removed from tip of main in canonicalGH-4634. This change also removes it from the Ubuntu packaging.
Configuration menu - View commit details
-
Copy full SHA for a890f4b - Browse repository at this point
Copy the full SHA a890f4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e60250 - Browse repository at this point
Copy the full SHA 3e60250View commit details
Commits on Mar 21, 2024
-
Remove netifaces runtime dependency
Build time dependency was already removed and changelog already updated
Configuration menu - View commit details
-
Copy full SHA for 049966c - Browse repository at this point
Copy the full SHA 049966cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 35c7264 - Browse repository at this point
Copy the full SHA 35c7264View commit details -
refresh patches against upstream/main
patches: debian/patches/expire-on-hashed-users.patch debian/patches/revert-551f560d-cloud-config-after-snap-seeding.patch
Configuration menu - View commit details
-
Copy full SHA for f2beec5 - Browse repository at this point
Copy the full SHA f2beec5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fa422f - Browse repository at this point
Copy the full SHA 4fa422fView commit details
Commits on Apr 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2c9fb5a - Browse repository at this point
Copy the full SHA 2c9fb5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ecfc5e - Browse repository at this point
Copy the full SHA 5ecfc5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 95d413e - Browse repository at this point
Copy the full SHA 95d413eView commit details -
fix(cacerts): Correct configuration customizations for Photon (canoni…
…cal#5077) * Fixes certificates being placed in the wrong folder (/etc/pki/tls/certs/ instead of the correct /etc/ssl/certs/) * Fixes certificates having the wrong extension (.crt instead of .pem)
Configuration menu - View commit details
-
Copy full SHA for 0660aa3 - Browse repository at this point
Copy the full SHA 0660aa3View commit details -
docs: set the home directory using homedir, not home (canonical#5101)
According to the JSON schema, the "homedir" directive should be used to set a user's home directory. However, we use "home" in a documented example. Supplying the example cloud-config to cloud-init schema fails with: Additional properties are not allowed ('home' was unexpected), Fixed by replacing "home" with "homedir" in the example. LP: #2047796
Configuration menu - View commit details
-
Copy full SHA for b4a7351 - Browse repository at this point
Copy the full SHA b4a7351View commit details -
fix: Ensure network config in DataSourceOracle can be unpickled (cano…
…nical#5073) `_network_config` is only explicitly set on the instance if `_is_iscsi_root()` is True. This means that when `_is_iscsi_root()` is False, we're modifying the class variable directly. When the instance gets pickled, the class variable is not included so such changes do not get persisted. This commit fixes this.
Configuration menu - View commit details
-
Copy full SHA for eb875e8 - Browse repository at this point
Copy the full SHA eb875e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e341e9 - Browse repository at this point
Copy the full SHA 9e341e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ebedf4 - Browse repository at this point
Copy the full SHA 8ebedf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 829c395 - Browse repository at this point
Copy the full SHA 829c395View commit details -
fix(rhel): Fix network ordering in sysconfig
NM_CONTROLLED=true allows cloud-init to wait until network devices are online.
Configuration menu - View commit details
-
Copy full SHA for af5deb1 - Browse repository at this point
Copy the full SHA af5deb1View commit details -
fix: Always use single datasource if specified (canonical#5098)
This change may require a user to add `None` to the `datasource_list` defined in `/etc/cloud/cloud.cfg[.d]` if they have a customized datasource_list and want the DataSourceNone fallback behavior. ds-identify would automatically append "None" to the datasource_list if a single entry was provided in /etc/cloud/cloud.cfg[.d]. This wasn't a problem in the past as the python code would detect a single datasource along with None as an indication to automatically use that datasource. Since the python code no longer does that, we should ensure that one specified datasource results in one specified datasource after ds-identify has run. Fixes canonicalGH-5091
Configuration menu - View commit details
-
Copy full SHA for d673e50 - Browse repository at this point
Copy the full SHA d673e50View commit details -
chore: Handle all level 1 TiCS security violations (canonical#5103)
Ignore these bandit violations as we're not dealing with untrusted input. Violations ignored in this commit are: B314: xml_bad_ElementTree B318: xml_bad_mindom B405: import_xml_etree B406: import_xml_sax B408: import_xml_minidom B603: subprocess_without_shell_equals_true
Configuration menu - View commit details
-
Copy full SHA for 2f69a69 - Browse repository at this point
Copy the full SHA 2f69a69View commit details -
Bump the version in cloudinit/version.py to 24.1.3 and update ChangeLog.
Configuration menu - View commit details
-
Copy full SHA for 0d57bfd - Browse repository at this point
Copy the full SHA 0d57bfdView commit details -
ephemeral(dhcpcd): Set dhcpcd interface down
Address assignment and link management is manual for isc-dhcp-client whereas dhcpcd brings up its own interface and assigns the IP address. Interface rename code assumes that the link will be down for rename. Make sure to set dhcpcd's interface to the same state.
Configuration menu - View commit details
-
Copy full SHA for 5a852df - Browse repository at this point
Copy the full SHA 5a852dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 22fa49b - Browse repository at this point
Copy the full SHA 22fa49bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1634c4f - Browse repository at this point
Copy the full SHA 1634c4fView commit details -
fix: Fall back to cached local ds if no valid ds found (canonical#4997)
Rebooting an instance which has finished VMware guest customization with DataSourceVMware will load DataSourceNone due to metadata is NOT available. This is mostly a re-post of PR#229, few differences are: 1. Let ds decide if fallback is allowed, not always fall back to previous cached LOCAL ds. 2. No comparing instance-id of cached ds with previous instance-id due to I think they are always identical. Fixes canonicalGH-3402
Configuration menu - View commit details
-
Copy full SHA for 67c9034 - Browse repository at this point
Copy the full SHA 67c9034View commit details -
ec2: Do not enable dhcp6 on EC2 (canonical#5104)
When cloud-init finds any ipv6 information in the instance metadata, it automatically enables dhcp6 for the network interface. However, this brings up the instance with a broken IPv6 configuration because SLAAC should be used for almost all situations on EC2. Red Hat BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2092459 Fedora Pagure: https://pagure.io/cloud-sig/issue/382 Upstream: https://bugs.launchpad.net/cloud-init/+bug/1976526 Fixes canonicalGH-3980 Signed-off-by: Major Hayden <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1442071 - Browse repository at this point
Copy the full SHA 1442071View commit details -
net/dhcp: bump dhcpcd timeout to 300s (canonical#5127)
On most distros, including Ubuntu, the default timeout for dhclient is 300s. There is no cloud-init controlled duration for the dhclient process as it doesn't fork until after it receives an IP address and there is no timeout value passed to subp(). I have seen some distros configure dhclient with a timeout of 60s, but is far less common. Given that a cloud VM is not very useful with DHCP, err on the generous side and allow up to 300 seconds for dhcpcd to get an address. Note that there is still an issue with dhcpcd retries which will be addressed later in a separate PR. Signed-off-by: Chris Patterson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 24acbc7 - Browse repository at this point
Copy the full SHA 24acbc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5713da0 - Browse repository at this point
Copy the full SHA 5713da0View commit details -
fix: Fix runtime file locations for cloud-init (canonical#4820)
Update various hard-coded filepaths. Also make sure we bootstrap our Paths() config correctly so that we read from the configured rundir. Co-authored-by: Mina Galić <[email protected]> Sponsored by: The FreeBSD Foundation Fixes canonicalGH-4766
Configuration menu - View commit details
-
Copy full SHA for ee1fb82 - Browse repository at this point
Copy the full SHA ee1fb82View commit details -
net/dhcp: raise InvalidDHCPLeaseFileError on error parsing dhcpcd lea…
…se (canonical#5128) Seeing a fairly large number of lease parsing failures on Azure similar to: ``` Traceback (most recent call last): File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAzure.py", line 851, in _get_data crawled_data = util.log_time( ^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 2828, in log_time ret = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/cloudinit/sources/helpers/azure.py", line 45, in impl return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAzure.py", line 660, in crawl_metadata self._wait_for_pps_savable_reuse() File "/usr/lib/python3/dist-packages/cloudinit/sources/helpers/azure.py", line 45, in impl return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAzure.py", line 1236, in _wait_for_pps_savable_reuse self._wait_for_hot_attached_primary_nic(nl_sock) File "/usr/lib/python3/dist-packages/cloudinit/sources/helpers/azure.py", line 45, in impl return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAzure.py", line 1142, in _wait_for_hot_attached_primary_nic primary_nic_found = self._setup_ephemeral_networking( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/cloudinit/sources/helpers/azure.py", line 45, in impl return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAzure.py", line 440, in _setup_ephemeral_networking lease = self._ephemeral_dhcp_ctx.obtain_lease() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/cloudinit/net/ephemeral.py", line 293, in obtain_lease self.lease = maybe_perform_dhcp_discovery( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/cloudinit/net/dhcp.py", line 103, in maybe_perform_dhcp_discovery return distro.dhcp_client.dhcp_discovery(interface, dhcp_log_func, distro) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/cloudinit/net/dhcp.py", line 656, in dhcp_discovery lease = self.get_newest_lease(interface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/cloudinit/net/dhcp.py", line 829, in get_newest_lease return self.parse_dhcpcd_lease( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/cloudinit/net/dhcp.py", line 787, in parse_dhcpcd_lease lease = dict( ^^^^^ ValueError: dictionary update sequence element #0 has length 1; 2 is required ``` Catch this error in parse_dhcpcd_lease() and raise InvalidDHCPLeaseFileError after logging an error. Signed-off-by: Chris Patterson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4517acd - Browse repository at this point
Copy the full SHA 4517acdView commit details -
test: fix upgrade dhcp6 on ec2 (canonical#5131)
After [0, 1], dhcp6 is going to be always false after upgrading cloud-init. Correct this in the integration test. Refs: [0] canonical#3980 [1] https://bugs.launchpad.net/cloud-init/+bug/1976526
Configuration menu - View commit details
-
Copy full SHA for 6f903d5 - Browse repository at this point
Copy the full SHA 6f903d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b9dd3c - Browse repository at this point
Copy the full SHA 5b9dd3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a54a88b - Browse repository at this point
Copy the full SHA a54a88bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 63083af - Browse repository at this point
Copy the full SHA 63083afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79e7f8f - Browse repository at this point
Copy the full SHA 79e7f8fView commit details
Commits on Apr 8, 2024
-
This reverts commit 79e7f8f.
Configuration menu - View commit details
-
Copy full SHA for 31b8091 - Browse repository at this point
Copy the full SHA 31b8091View commit details -
Revert "new patch revert-dhcp6-on-ec2.patch"
This reverts commit 63083af. Not needed after canonicalGH-5145.
Configuration menu - View commit details
-
Copy full SHA for e91097d - Browse repository at this point
Copy the full SHA e91097dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 26b3253 - Browse repository at this point
Copy the full SHA 26b3253View commit details -
refresh patches against upstream/main
patches: debian/patches/keep-dhclient-as-priority-client.patch debian/patches/retain-ec2-default-net-update-events.patch debian/patches/retain-old-groups.patch
Configuration menu - View commit details
-
Copy full SHA for d4fd6ce - Browse repository at this point
Copy the full SHA d4fd6ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 668a5d3 - Browse repository at this point
Copy the full SHA 668a5d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e41c41 - Browse repository at this point
Copy the full SHA 1e41c41View commit details
Commits on May 1, 2024
-
fix(cli): retain support for --files argument before subcommand
Upstream dropped support for a generic positional --file argument ordered on the command line before the cloud-init subcommand because the --files argument is only applicable to the specific subcommands init, modules and single. Add functionality to retain support for --file or -f argument both before and after the subcommand to avoid regressions in stable releases due to a change in behavior. LP: #2064300
Configuration menu - View commit details
-
Copy full SHA for 50990ee - Browse repository at this point
Copy the full SHA 50990eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b925b2 - Browse repository at this point
Copy the full SHA 4b925b2View commit details
Commits on Jun 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 85aee20 - Browse repository at this point
Copy the full SHA 85aee20View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab45e3d - Browse repository at this point
Copy the full SHA ab45e3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82fe04c - Browse repository at this point
Copy the full SHA 82fe04cView commit details
Commits on Jun 22, 2024
-
drop d/p/do-not-block-user-login: upstream has cloud-init.service Bef…
…ore=systemd-user-sessions
Configuration menu - View commit details
-
Copy full SHA for efd4c95 - Browse repository at this point
Copy the full SHA efd4c95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9295441 - Browse repository at this point
Copy the full SHA 9295441View commit details
Commits on Jun 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b708aeb - Browse repository at this point
Copy the full SHA b708aebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e41b92 - Browse repository at this point
Copy the full SHA 6e41b92View commit details
Commits on Jun 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a0ac2ea - Browse repository at this point
Copy the full SHA a0ac2eaView commit details -
refresh patches against upstream/main
patches: debian/patches/cli-retain-file-argument-as-main-cmd-arg.patch debian/patches/revert-551f560d-cloud-config-after-snap-seeding.patch
Configuration menu - View commit details
-
Copy full SHA for a5a63cc - Browse repository at this point
Copy the full SHA a5a63ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 67b31c7 - Browse repository at this point
Copy the full SHA 67b31c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4058f8c - Browse repository at this point
Copy the full SHA 4058f8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ec6029c - Browse repository at this point
Copy the full SHA ec6029cView commit details
Commits on Jul 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 30eef49 - Browse repository at this point
Copy the full SHA 30eef49View commit details -
Configuration menu - View commit details
-
Copy full SHA for e77ed9b - Browse repository at this point
Copy the full SHA e77ed9bView commit details -
patches: debian/patches/deprecation-version-boundary.patch debian/patches/revert-551f560d-cloud-config-after-snap-seeding.patch
Configuration menu - View commit details
-
Copy full SHA for 59dcb7e - Browse repository at this point
Copy the full SHA 59dcb7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c0f3f1 - Browse repository at this point
Copy the full SHA 7c0f3f1View commit details
Commits on Jul 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0e9f685 - Browse repository at this point
Copy the full SHA 0e9f685View commit details -
Configuration menu - View commit details
-
Copy full SHA for d667efd - Browse repository at this point
Copy the full SHA d667efdView commit details -
Configuration menu - View commit details
-
Copy full SHA for a28f0b4 - Browse repository at this point
Copy the full SHA a28f0b4View commit details
Commits on Aug 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4bd7406 - Browse repository at this point
Copy the full SHA 4bd7406View commit details -
Configuration menu - View commit details
-
Copy full SHA for cee5047 - Browse repository at this point
Copy the full SHA cee5047View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8944ddd - Browse repository at this point
Copy the full SHA 8944dddView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba45d64 - Browse repository at this point
Copy the full SHA ba45d64View commit details
Commits on Aug 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 099a808 - Browse repository at this point
Copy the full SHA 099a808View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e67c58 - Browse repository at this point
Copy the full SHA 4e67c58View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5dc35e0 - Browse repository at this point
Copy the full SHA 5dc35e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab29a92 - Browse repository at this point
Copy the full SHA ab29a92View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43b7a0c - Browse repository at this point
Copy the full SHA 43b7a0cView commit details -
refresh patches against upstream/main
patches: debian/patches/no-nocloud-network.patch debian/patches/no-single-process.patch
Configuration menu - View commit details
-
Copy full SHA for 8e1c216 - Browse repository at this point
Copy the full SHA 8e1c216View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa84ac8 - Browse repository at this point
Copy the full SHA aa84ac8View commit details -
Configuration menu - View commit details
-
Copy full SHA for d140d23 - Browse repository at this point
Copy the full SHA d140d23View commit details
Commits on Aug 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ec7029b - Browse repository at this point
Copy the full SHA ec7029bView commit details
Commits on Aug 30, 2024
-
Bump the version in cloudinit/version.py to 24.3 and update ChangeLog.
Configuration menu - View commit details
-
Copy full SHA for 10449cb - Browse repository at this point
Copy the full SHA 10449cbView commit details
Commits on Sep 4, 2024
-
fix(netops): fix ip addr flush command (canonical#5651)
Drop unnecessary environment variable. Fixes canonicalGH-5648
Configuration menu - View commit details
-
Copy full SHA for 6963dcc - Browse repository at this point
Copy the full SHA 6963dccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 92e380e - Browse repository at this point
Copy the full SHA 92e380eView commit details -
Release 24.3.1 (canonical#5375)
Bump the version in cloudinit/version.py to 24.3.1 and update ChangeLog.
Configuration menu - View commit details
-
Copy full SHA for 337c651 - Browse repository at this point
Copy the full SHA 337c651View commit details
Commits on Sep 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e2fcf54 - Browse repository at this point
Copy the full SHA e2fcf54View commit details -
refresh patches against 24.3.1
patches: debian/patches/cli-retain-file-argument-as-main-cmd-arg.patch debian/patches/no-nocloud-network.patch debian/patches/revert-551f560d-cloud-config-after-snap-seeding.patch
Configuration menu - View commit details
-
Copy full SHA for 8f71cd8 - Browse repository at this point
Copy the full SHA 8f71cd8View commit details
Commits on Sep 9, 2024
-
fix(no-single-process.patch): revert references to cloud-init-network
Revert remaning functional references to cloud-init-network service which will not exist on stable releases.
Configuration menu - View commit details
-
Copy full SHA for a3f81ee - Browse repository at this point
Copy the full SHA a3f81eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 582a490 - Browse repository at this point
Copy the full SHA 582a490View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1889c3 - Browse repository at this point
Copy the full SHA d1889c3View commit details
Commits on Sep 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 94db4ef - Browse repository at this point
Copy the full SHA 94db4efView commit details -
patches: - d/p/keep-dhclient-as-priority-client.patch - d/p/no-single-process.patch
Configuration menu - View commit details
-
Copy full SHA for ec1249e - Browse repository at this point
Copy the full SHA ec1249eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 22c81c6 - Browse repository at this point
Copy the full SHA 22c81c6View commit details