aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/cloud-init
AgeCommit message (Collapse)Author
2024-03-15cloud-init: update to 24.1.1Bruce Ashfield
Bumping cloud-init to version 24.1.1, which comprises the following commits: e982c2087 Release 24.1.1 2a4c0b6f7 fix: Include DataSourceCloudStack attribute in unpickle test (#5039) f1e43986f bug(vmware): initialize new DataSourceVMware attributes at unpickle (#5021) f32228e75 fix(apt): Don't warn on apt 822 source format (#5028) 3eefceb3b fix: Add "broadcast" to network v1 schema (#5034) 8eba10ca2 pro: honor but warn on custom ubuntu_advantage in /etc/cloud/cloud.cfg (#5030) 8aa31e3d3 net/dhcp: handle timeouts for dhcpcd (#5022) caea5619e fix: Make wait_for_url respect explicit arguments 1f38828d5 bug(wait_for_url): when exceptions occur url is unset, use url_exc c2bb381e7 test: Fix scaleway retry assumptions 3b93a01a9 fix: Make DataSourceOracle more resilient to early network issues (#5025) c9bdb1a67 tests: Fix wsl test (#5008) 49df54730 Release 24.1 5c15e7997 fix: Don't warn on vendor directory (#4986) 12126f574 apt: kill spawned keyboxd after gpg cmd interaction c8507a49b tests: upgrade tests should only validate current boot log fc150eb86 net/dhcp: fix maybe_perform_dhcp_discovery check for interface=None f6a98c80d doc(network-v2): fix section nesting levels 545991488 fix(tests): don't check for clean log on minimal image (#4965) fc81fb325 fix(cc_resize): Don't warn if zpool command not found (#4969) aa285fe67 feat(subp): Make invalid command warning more user-friendly (#4972) f8cbd5ca9 docs: Remove statement about device path matching (#4966) 3780ee7cc test: Fix xfail to check the dhcp client name (#4971) cb49eee0c tests: avoid console prompts when removing gpg on Noble d8b6ac2bc test: fix test_get_status_systemd_failure 1447bfe49 Release 23.4.4 (#4955) 66b5ce9d5 fix(nocloud): smbios datasource definition 4b694a45d tests: Check that smbios seed works beddd97c1 fix: Remove hardcoded /var/lib/cloud hotplug path (#4940) d175170ae refactor: Refactor status.py (#4864) 05ea2c020 test: Use correct lxd network-config keys (#4950) e8c2eaf2f test: limit temp dhcp6 changes to < NOBLE (#4942) 89ebcc394 test: allow downgrades when install debs (#4941) 758536152 tests: on noble, expect default /etc/apt/sources.list e5249ab5a tests: lxd_vm early boot status test ordered After=systemd-remount-fs (#4936) 6f52f15f4 tests: pro integration tests supply ubuntu_advantage until pro v32 (#4935) 05eac8ba1 feat(hotplug): add cmd to enable hotplug (#4821) 05ed5472a test: fix test_combined_cloud_config_json (#4925) 9bd0f5264 test: xfail udhcpc on azure (#4924) 4c822bd6b feat: Implement the WSL datasource (#4786) 2e89bb317 refactor(openrc): Improve the OpenRC files (#4916) 0234f1b0b tests: use apt install instead of dpkg -i to install pkg deps b74299efe tests: inactive module rename ubuntu_advantage to ubuntu_pro 4ed78b116 test: fix tmpdir in test_cc_apk_configure (#4914) 94f58e812 test: fix jsonschema version checking in pro test (#4915) 6d61b63f3 feat(dhcp): Make dhcpcd the default dhcp client (#4912) 5fd3fc72f feat(Alpine) cc_growpart.py: fix handling of /dev/mapper devices (#4876) 90fd7ac0e test: Retry longer in test_status.py integration test (#4910) 29c215fa8 test: fix kernel override test (#4913) 4775327e7 chore: Rename sysvinit/gentoo directory to sysvinit/openrc (#4906) 4779679e7 doc: update ubuntu_advantage references to pro 09bb6190e chore: rename cc_ubuntu_advantage to cc_ubuntu_pro (SC-1555) b9b125fd8 feat(ubuntu pro): deprecate ubuntu_pro key in favor of ubuntu_advantage 25bc74cc4 feat(schema): support ubuntu_pro key and deprecate ubuntu_advantage 0754ed2d6 test: fix verify_clean_log (#4903) a41401199 test: limit test_no_hotplug_triggered_by_docker to stable releases d6dc417d2 tests: generalize warning Open vSwitch warning from netplan apply (#4894) 64631260b fix(hotplug): remove literal quotes in args cd5a72743 feat(apt): skip known /etc/apt/sources.list content 9d08c1177 feat(apt): use APT deb822 source format by default 48ab789b9 test(ubuntu-pro): change livepatch to esm-infra 99394ecb9 doc(ec2): fix metadata urls (#4880) c948e4182 fix: unpin jsonschema and update tests (#4882) 160b5ac8f distro: add eject FreeBSD code path (#4838) 4dbb08f5f feat(ec2): add hotplug as a default network update event (#4799) f2750c058 feat(ec2): support instances with repeated device-number (#4799) b519d861a feat(cc_install_hotplug): trigger hook on known ec2 drivers (#4799) 0ca5f3104 feat(ec2): support multi NIC/IP setups (#4799) e70cd4784 feat(hotplug): hook-hotplug is now POSIX shell add OpenRC init script 7d605eae6 test: harden test_dhcp.py::test_noble_and_newer_force_client 9c4b799e6 test: fix test_combined_cloud_config_json (#4868) c7c4a334f feat(apport): Disable hook when disabled (#4874) 0af00e48d chore: Add pyright ignore comments (#4874) 534cbc26c bug(apport): Fix invalid typing (#4874) be68e2aac refactor: Move general apport hook to main branch (#4874) 551f560d1 feat(bootspeed)!: cloud-config.service drop After=snapd.seeded 7a03691a8 chore: update CI package build to oldest supported Ubuntu release focal (#4871) 4e87db2be test: fix test_cli.test_valid_userdata ee7994071 feat: handle error when log file is empty (#4859) 15f786a5b test: fix test_ec2_ipv6 5e7ef1032 fix: Address TIOBE abstract interpretation issues (#4866) c608a9c94 feat(dhcp): Make udhcpc use same client id (#4830) 5c03247a4 feat(dhcp): Support InfiniBand with dhcpcd (#4830) 7ed89d3f7 feat(azure): Add ProvisionGuestProxyAgent OVF setting (#4860) b7c7be95f test: Bring back dhcp6 integration test changes (#4855) 39c106364 tests: add status --wait blocking test from early boot e6d56b636 tests: fix retry decorator to return the func value cb08cab5d docs: add create_hostname_file to all hostname user-data examples (#4727) fdefe08ad fix: Fix typos (#4850) 33148a072 feat(dhcpcd): Read dhcp option 245 for azure wireserver (#4835) 928e79029 tests(dhcp): Add udhcpc client to test matrix (#4839) b08193b37 fix: Add types to network v1 schema (#4841) 40d65002a docs(vmware): fixed indentation on example userdata yaml (#4854) 66c427ce1 tests: Remove invalid keyword from method call 4e0329331 Release 23.4.3 1f6eddd5b fix: Handle systemctl when dbus not ready (#4842) 89cba2950 fix(schema cli): avoid netplan validation on net-config version 1 7dab72dd5 tests: reduce expected reports due to dropped rightscale module ae38732be tests(net-config): add awareness of netplan on stable Ubuntu d45beaa88 fix(source): fix argument boundaries when parsing cmdline (#4825) 2060e8359 feat: fall back to cdrom_id eject if eject is not available (#4769) 81051acc6 fix(packages/bddeb): restrict debhelper-compat to 12 in focal (#4831) 2c748f502 tests: Add kernel commandline test (#4833) fc4e23334 fix: Ensure NetworkManager renderer works without gateway (#4829) 2b693c656 test: Correct log parsing in schema test (#4832) 1a248b592 refactor: Remove cc_rightscale_userdata (#4813) d27eab110 refactor: Replace load_file with load_binary_file to simplify typing (#4823) 0e90131d5 refactor: Add load_text_file function to simplify typing (#4823) 31fff57de refactor: Change variable name for consistent typing (#4823) 21b2b6e44 feat(dhcp): Add support for dhcpcd (#4746) ba6fbfe4f refactor: Remove unused networking code (#4810) e8928418f test: Add more DNS net tests f7e0c4174 BREAKING CHANGE: Stop adding network v2 DNS to global DNS a85f0678c doc: update DataSource.default_update_events doc (#4815) 15c78e8b2 chore: do not modify instance attribute (#4815) ef2e48e93 test: fix mocking leaks (#4815) a74653f98 Revert "ci: Pin pytest<8.0.0. (#4816)" (#4815) dba337bf7 test: Update tests for passlib (#4818) e168b4a13 fix(net-schema): no warn when skipping schema check on non-netplan 56aa87969 feat(SUSE): reboot marker file is written as /run/reboot-needed (#4788) ddbb7aa08 test: Cleanup unwanted logger setup calls (#4817) cb58abe04 refactor(cloudinit.util): Modernize error handling, add better warnings (#4812) 7c96c9cd9 ci: Pin pytest<8.0.0. (#4816) 180da9ba3 fix(tests): fixing KeyError on integrations tests (#4811) 39c578140 tests: integration for network schema on netplan systems (#4767) 275b66e3e feat(schema): use netplan API to validate network-config (#4767) dad4ad925 chore: define CLOUDINIT_NETPLAN_FILE static var (#4767) 81a3fa462 fix: cli schema config-file option report network-config type (#4767) ae9a6ff43 refactor(azure): replace BrokenAzureDataSource with reportable errors (#4807) 72418838f Fix Alpine and Mariner /etc/hosts templates (#4780) 5370c3e26 tests: revert #4792 as noble images no longer return 2 (#4809) 0a91df832 tests: use client fixture instead of class_client in cleantest (#4806) 7ee0dc8ef tests: enable ds-idenitfy xfail test LXD-kvm-not-MAAS-1 (#4808) 48bdc150f fix(tests): failing integration tests due to missing ua token (#4802) d9677655e Release 23.4.2 8ff94fe94 Revert "Use grep for faster parsing of cloud config in ds-identify (#4327)" f2851e099 tests: Demonstrate ds-identify yaml parsing broken 3b9397ff8 tests: add exit 2 on noble from cloud-init status (#4792) 9d22a63bf fix: linkcheck for ci to ignore scaleway anchor URL (#4793) 84b322c6f feat: Update cacerts to support VMware Photon (#4763) b620c0424 fix: netplan rendering integrations tests (#4795) bc2e24e5e azure: remove cloud-init.log reporting via KVP (#4715) ae38d4b07 feat(Alpine): Modify ds-identify for Alpine support and add OpenRC init.d script (#4785) ce07818f9 doc: Add DatasourceScaleway documentation (#4773) bb8ed452a fix: packaged logrotate file lacks suffix on ubuntu (#4790) d9865e2ac feat(logrotate): config flexibility more backups (#4790) da08a2609 fix(clean): stop warning when running clean command (#4761) 17caebb26 feat: network schema v1 strict on nic name length 15 (#4774) 0e247c897 logrotate config (#4721) 494035101 test: Enable coverage in integration tests (#4682) f1ca01c5b test: Move unit test helpers to global test helpers (#4682) 1c5726b1c test: Remove snapshot option from install_new_cloud_init (#4682) 5b5eb8bd8 docs: fix cloud-init single param docs (#4682) 5b6d08deb Alpine: fix location of dhclient leases file (#4782) 034a5cdf1 test(jsonschema): Pin jsonschema version (#4781) 1baa9ff06 refactor(IscDhclient): discover DHCP leases at distro-provided location (#4683) b729a4c4a feat: datasource check for WSL (#4730) f79505db9 test: Update hostname integration tests (#4744) 901a9a695 test: Add mantic and noble releases to integration tests (#4744) 436e6f5ce refactor: Ensure internal DNS state same for v1 and v2 (#4756) 42d1c9571 feat: Add v2 route mtu rendering to NetworkManager (#4748) dc94a3901 tests: stable ubuntu releases will not exit 2 on warnings (#4757) bda164459 doc(ds-identify): Describe ds-identify irrespective of distro (#4742) 812df5038 fix: relax NetworkManager renderer rules (#4745) 598e0560d fix: fix growpart race (#4618) 0d787d0a2 feat: apply global DNS to interfaces in network-manager (#4723) 39abae9ec feat(apt): remove /etc/apt/sources.list when deb22 preferred (#4740) 960faf87d chore: refactor schema data as enums and namedtuples (#4585) 3274d2306 feat(schema): improve CLI message on unprocessed data files (#4585) 8937b5e5a fix(config): relocate /run to /var/run on BSD (canonical#4677) 83f99b547 fix(ds-identify): relocate /run on *BSD (#4677) ccf5bc4dc fix(sysvinit): make code a bit more consistent (#4677) b51536bc7 doc: Document how cloud-init is, not how it was (#4737) 720665263 tests: add expected exit 2 on noble from cloud-init status (#4738) 367300257 test(linkcheck): ignore github md and rst link headers (#4734) b6a1c635d test: Update webhook test due to removed cc_migrator module (#4726) 0f3afb41b fix(ds-identify): Return code 2 is a valid result, use cached value cb36bf38b fix(cloudstack): Use parsed lease file for virtual router in cloudstack 53eb8555e fix(dhcp): Guard against FileNotFoundError and NameError exceptions d662ffc5e fix(apt_configure): disable sources.list if rendering deb822 (#4699) 21c1d9161 docs: Add link to contributing to docs (#4725) 5a021d50b chore: remove commented code (#4722) fb5a7186d chore: Add log message when create_hostname_file key is false (#4724) c2c100e8c fix: Correct v2 NetworkManager route rendering (#4637) 82162cb47 azure/imds: log http failures as warnings instead of info (#4714) bb1e298b4 fix(setup): Relocate libexec on OpenBSD (#4708) 4f60ff099 feat(jinja): better jinja feedback and error catching (#4629) c698d8e2a test: Fix silent swallowing of unexpected subp error (#4702) 9308e8767 fix: Move cloud-final.service after time-sync.target (#4610) 1003d438b feat(log): Make logger name more useful for __init__.py 468c0f62e Release 23.4.1 (#4695) 1b0719420 chore: Remove cc_migrator module (#4690) c071f69ac fix(tests): make cmd/devel/tests work on non-GNU e90cb10bb chore: Remove cmdline from spelling list (#4670) 290b0a0f7 doc: Document boot status meaning (#4670) 5e1cf09c4 doc: Set expectations for new datasources (#4670) addfc845b ci: Show linkcheck broken links in job output (#4670) d29b744e7 fix: Handle systemctl commands when dbus not ready (#4681) 4006c23cb dmi: Add support for OpenBSD (#4654) 4ed09d63d ds-identify: fake dmidecode support on OpenBSD (#4654) 533ec66bd ds-identify: add OpenBSD support in uname (#4654) 949af5483 refactor: Ensure '_cfg' in Init class is dict (#4674) a6ef369ad refactor: Make event scope required in stages.py (#4674) da62f298f refactor: Remove unused argument (#4674) 305ec6bec chore: Move from lintian to a sphinx spelling plugin (#3639) 3e7caf3d0 fix(doc): Fix spelling errors found by sphinxcontrib-spelling (#3639) 75ee2f073 ci: Add Python 3.13 (#4567) 78a653bfe Add AlexSv04047 to CLA signers file (#4671) 969671bc7 fix(openbsd): services & build tool (#4660) bb474df78 tests/unittests: add a new unit test for network manager net activator (#4672) b45d23ce3 Implement DataSourceCloudStack.get_hostname() (#4433) d1d516689 net/nm: check for presence of ifcfg files when nm connection files are absent (#4645) 1d6918bdf doc: Overhaul debugging documentation (#4578) 084c053d2 doc: Move dangerous commands to dev docs (#4578) ebb843371 doc: Relocate file location docs (#4578) 12950ae0a doc: Remove the debugging page (#4578) cfb1bef67 fix(util): Fix boottime to work on OpenBSD (#4667) 0264e9691 net: allow dhcp6 configuration from generate_fallback_configuration() 29dd5ace7 net/network_manager: do not set "may-fail" to False for both ipv4 and ipv6 dhcp 72d6e187a feat(subp): Measure subprocess command time (#4606) 09b70436b fix(python3.13): Fix import error for passlib on Python 3.13 (#4669) 45501aaa1 style(brpm/bddeb): add black and ruff for packages build scripts (#4666) 4d6b96d8b copr: remove TODO.rst from spec file d798bb5e0 fix(packages/brpm): correct syntax error and typo 9994f7f56 style(ruff): fix tip target 12bb6818a config: Module documentation updates (#4599) 3bad8b5a5 refactor(subp): Remove redundant parameter 'env' (#4555) ad6808f82 refactor(subp): Remove unused parameter 'target' (#4555) e6d0acde2 refactor: Remove 'target' boilerplate from cc_apt_configure (#4555) 3ee514ace refactor(subp): Re-add return type to subp() (#4555) 36959b6ab refactor(subp): Add type information to args (#4555) 3924113df refactor(subp): Use subprocess.DEVNULL (#4555) 9af8a4a07 refactor(subp): Remove parameter 'combine_capture' (#4555) e9b9971f6 refactor(subp): Remove unused parameter 'status_cb' (#4555) c02098ff0 fix(cli): fix parsing of argparse subcommands (#4559) 9160bdb68 chore!: drop support for dsa ssh hostkeys in docs and schema (#4456) 3c0eca190 chore!: do not generate ssh dsa host keys (#4456) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-01-04cloud-init: update to 23.4.1Bruce Ashfield
Bumping cloud-init to version 23.4.1, which comprises the following commits: 2c452ebfb Release 23.4.1 af28f4bb7 fix: Handle systemctl commands when dbus not ready (#4681) 6e04a2c54 Release 23.4 90825eb30 tests: datasourcenone use client.restart to block until done (#4635) a84d7884f tests: increase number of retries across reboot to 90 (#4651) efb97f45a fix: Add schema for merge types (#4648) fe144a58e feat: Allow aliyun ds to fetch data in init-local (#4590) 30761d528 azure: report failure to eject as error instead of debug (#4643) 10281c815 bug(schema): write network-config if instance dir present (#4635) e4d178f20 test: fix schema fuzzing test (#4639) 191b5fe88 Update build-on-openbsd dependencies (#4644) cd35cadc5 fix(test): Fix expected log for ipv6-only ephemeral network (#4641) 16ad372ca refactor: Remove metaclass from network_state.py (#4638) 05f039c9c schema: non-root fallback to default paths on perm errors (# 4631) 2fb656fd9 fix: Don't loosen the permissions of the log file (#4628) 86a6973cd Revert "logging: keep current file mode of log file if its stricter than the new mode (#4250)" 26ad42d22 ephemeral: Handle link up failure for both ipv4 and ipv6 (#4547) fddde8124 fix(main): Don't call logging too early (#4595) f5b0bad10 fix: Remove Ubuntu-specific kernel naming convention assertion (#4617) 00b4967a2 fix(log): Do not implement handleError with a self parameter (#4617) 798f8ee0c fix(log): Don't try to reuse stderr logger (#4617) 2a815c779 feat: Standardize logging output to stderr (#4617) 00ec7ab42 chore: Sever unmaintained TODO.rst (#4625) ce48aadd6 test: Skip failing tests 44bf4ce99 distros: Add suse 074541b41 test: Add default hello package version (#4614) ddafa5d83 fix(net): Improve DHCPv4 SUSE code, add test 7c4d05ab3 net: Fix DHCPv4 not enabled on SUSE in some cases 424bacc71 fix(schema): Warn if missing dependency (#4616) 0c9fd4e77 fix(cli): main source cloud_config for schema validation (#4562) 88ff75795 feat(schema): annotation path for invalid top-level keys (#4562) cce2e48d7 feat(schema): top-level additionalProperties: false (#4562) 498a7bb55 test: ensure top-level properties tests will pass (#4562) 0449fe249 fix(schema): Add missing schema definitions (#4562) e92f3f42d test: Fix snap tests (#4562) be8ed188f azure: Check for stale pps data from IMDS (#4596) 9c6bbc327 test: Undo dhcp6 integration test changes (#4612) 5496745b3 azure: update diagnostic from warning level to debug 047d51202 azure/imds: remove limit for connection errors if route present (#4604) 0b90fbf5b [enhancement]: Add shellcheck to CI (#4488) 8c275a1f7 chore: add conventional commits template (#4593) 29ed5f5b6 Revert "net: allow dhcp6 configuration from generate_fallback_configuration()" (#4607) 745fbf6d1 azure: workaround to disable reporting IMDS failures on Azure Stack 9def422ee cc_apt_pipelining: Update docs, deprecate options (#4571) 3f5153871 test: add gh workflows on push to main, update status badges (#4597) 87b89014e util: Remove function abs_join() (#4587) 4182851c1 url_helper: Remove unused function retry_on_url_exc() (#4587) a11bde5a8 cc_resizefs: Add bcachefs resize support (#4594) 0cb0b80fa integration_tests: Support non-Ubuntu distros (#4586) 86d27724a fix(cmdline): fix cmdline parsing with MAC containing cc: bf177fa13 azure/errors: include http code in reason for IMDS failure ee1e71b77 tests: cloud-init schema --system does not return exit code 2 37175dd45 github: allow pull request to specify desired rebase and merge c756b8eb7 tests: fix integration test expectations of exit 2 on schema warning d78ff3780 tests: fix schema test expected cli output Valid schema <type> d9436adae fix(schema cli): check raw userdata when processed cloud-config empty d1be23b09 azure: report failure to host if ephemeral DHCP secondary NIC (#4558) 74e3e76ba man: Document cloud-init error codes (#4500) 70acb7f2a Add support for cloud-init "degraded" state (#4500) 7f5caeafa status.json: Don't override detail key with error condition (#4500) 40b54bfef status: Remove duplicated data (#4500) fa065e0c7 refactor: Rename exported_errors in status.json (#4500) d62c00ebe test: Remove stale status.json value (#4500) a6f858b28 tools/render-template: Make yaml loading opt-in, fix setup.py (#4564) 92fe106eb Add summit digest/trip report to docs (#4561) a78e11102 doc: Fix incorrect statement about `cloud-init analyze` 76972b4a3 azure/imds: ensure new errors are logged immediately when retrying (#4468) c1272f324 Clarify boothook docs (#4543) 1ab5f9baf boothook: allow stdout/stderr to emit to cloud-init-output.log 7be024562 summit-notes: add 2023 notes for reference in mailinglist/discourse 5012d77bd fix: added mock to stop leaking journalctl that slows down unit test (#4556) 99b6f6443 tests: maas test for DataSourceMAASLocal get_data 7c1f2c26d maas tests: avoid using CiTest case and prefer pytest.tmpdir fixture 5df30894a MAAS: Add datasource to init-local timeframe ff377cfef Ensure all tests passed and/or are skipped b2ee332e1 Support QEMU in integration tests 7f3c2c684 fix(read-dependencies): handle version specifiers containing [~!] 6326af40d test: unpin pytest db0fd2dda schema: network-config optional network key. route uses oneOf (#4482) bbd01621d schema: add cloud_init_deepest_matches for best error message (#4482) ee86a37fe network: warn invalid cfg add /run/cloud-init/network-config (#4482) ff3beb3fd schema: add network-config support to schema subcommand (#4482) 40a0120ff Update version number and merge ChangeLog from 23.3.3 into main (#4553) afc75849b azure: check for primary interface when performing DHCP (#4465) 14b76c444 Fix hypothesis failure 9a401b4a2 subp: add a log when skipping a file for execution for lack of exe permission (#4506) 7377c7774 azure/imds: refactor max_connection_errors definition (#4467) c541a3aea chore: fix PR template rendering (#4526) 2ab1f3404 fix(cc_apt_configure): avoid unneeded call to apt-install (#4519) b2f8683c0 comment difference between sysconfig and NetworkManager renderer (#4517) 8114ce21c Set Debian's default locale to be c.UTF-8 (#4503) 422018c94 Convert test_debian.py to pytest (#4503) 4edc5c357 doc: fix cloudstack link b73950eda doc: fix development/contributing.html references e6f3484b9 doc: hide duplicated links d0f00bd54 Revert "ds-identify/CloudStack: $DS_MAYBE if vm running on vmware/xen (#4281)" (#4511) 2cf2aa20d Fix the missing mcopy argument c84369ac4 tests: Add logging fix (#4499) a0f53bd12 Update upgrade test to account for dhcp6 0cf010e6c Remove logging of PPID path (#4502) 928b7e37f Make Python 3.12 CI test non-experimental (#4498) de5fc365f ds-identify: exit 2 on disabled state from marker or cmdline (#4399) 2ba7946eb cloud-init-generator: Various performance optimizations (#4399) ec7dde804 systemd: Standardize cloud-init systemd enablement (#4399) 5368ef3f8 benchmark: benchmark cloud-init-generator independent of ds-identify (#4399) c5cd17d71 tests/integration_tests: add cloud-init disablement coverage (#4399) 2244a9838 doc: Describe disabling cloud-init using an environment variable (#4399) 36b7f48d7 fix: cloud-init status --wait broken with KERNEL_CMDLINE (#4399) d113ed6ef azure/imds: retry on 429 errors for reprovisiondata (#4470) f780cf9ca cmd: Don't write json status files for non-boot stages (#4478) 9fde06955 ds-identify: Allow disable service and override environment (#4485) 3267098e8 Update DataSourceNWCS.py (#4496) 5c46995b7 Add r00ta to CLA signers file b1e659c74 Fix override of systemd_locale_conf in rhel 46fb87ec8 ci(linkcheck): minor fixes (#4495) 4dcd72a8d integration test fix for deb822 URI format (#4492) 33d1f0a1a test: use a mantic-compatible tz in t/i/m/test_combined.py (#4494) abbcfc00f ua: shift CLI command from ua to pro for all interactions 5f57c861b pro: avoid double-dash when enabling inviddual services on CLI 518047aea net: allow dhcp6 configuration from generate_fallback_configuration() (#4474) 2a730844e tests: apt re.search to match alternative ordering of installed pkgs 527839d46 apt: doc apt_pkg performance improvement over subp apt-config dump 271ec8b3e Tidy up contributing docs (#4469) 3d629fc92 [enhancement]: Automatically linkcheck in CI (#4479) 6ed6b69ee Revert allowing pro service warnings (#4483) d0312faa9 Export warning logs to status.json (#4455) 376af8e3e Fix regression in package installation (#4466) 893b89a97 schema: cloud-init schema in early boot or in dev environ (#4448) 4bea707dd schema: annotation of nested dicts lists in schema marks (#4448) 506e70fa1 feat(apport): collect ubuntu-pro logs if ubuntu-advantage.log present (#4443) 494bb1ae8 apt_configure: add deb822 support for default sources file (#4437) d9cdc2980 net: remove the word "on instance boot" from cloud-init generated config (#4457) c1f6f59e9 style: Make cloudinit.log functions use snake case (#4449) ae9f3bf83 Don't recommend using cloud-init as a library (#4459) 3a031a75e vmware: Fall back to vmtoolsd if vmware-rpctool errs (#4444) dfe6170c2 azure: add option to enable/disable secondary ip config (#4432) 226ba2582 Allow installing snaps via package_update_upgrade_install module (#4202) 55c13f5cf docs: Add cloud-init overview/introduction (#4440) 015543d30 apt: install software-properties-common when absent but needed (#4441) d18c9cc0b sources/Azure: Ignore system volume information folder while scanning for files in the ntfs resource disk (#4446) a3b9a1eff refactor: Remove unnecessary __main__.py file e8ea89de8 style: Drop vi format comments 107aa74ac cloudinit.log: Use more appropriate exception (#4435) de472d050 cloudinit.log: Don't configure NullHandler (#4435) 6bbbfbbb0 Simplify root logger configuration (#4435) b0326156b cloudinit.log: Remove unnecessary module function and variables (#4435) 40bfa351c cloudinit.log: Remove unused getLogger wrapper (#4435) 0044c8351 cloudinit.log: Standardize use of cloudinit's logging module (#4435) 461f2610d Remove unnecessary logging wrapper in Cloud class (#4435) 67bb6aa31 integration test: allow pro service warnings (#4447) 5be5f587b integration tests: fix mount indentation (#4445) 86185638c sources/Azure: fix for conflicting reports to platform (#4434) e9224e578 docs: link the cloud-config validation service (#4442) 13938f749 Fix pip-managed ansible on pip < 23.0.1 (#4403) e9cdd7e39 Install gnupg if gpg not found (#4431) 97e09dfea Add "phsm" as contributor (#4429) 349ca1e10 cc_ubuntu_advantage: do not rely on uaclient.messages module (#4397) 461e08049 tools/ds-identify: match Azure datasource's ds_detect() behavior (#4430) 5023e9f9c Refactor test_apt_source_v1.py to use pytest (#4427) 76b7b3814 sources: do not override datasource detection if None is in list (#4426) be7f64d76 feat: check for create_hostname_file key before writing /etc/hostname (SC-1588) (#4330) 0d9f149a3 Pytestify apt config test modules (#4424) efcd006b5 upstream gentoo patch (#4422) 937e84c4d Work around no instance ip (#4419) 436e6717b Fix typing issues in subp module (#4401) fd214a124 net: fix ipv6_dhcpv6_stateful/stateless/slaac configuration for rhel (#4395) 80e460835 Release 23.3.1 f6bb55302 apt: kill dirmngr/gpg-agent without gpgconf dependency b79dacd8f integration tests: fix mount indentation (#4405) 816e05d48 Use grep for faster parsing of cloud config in ds-identify (#4327) b826731ba doc: fix instructions on how to disable cloud-init from kernel command line (#4406) dec3b65e4 doc/vmware: Update contents relevant to disable_vmware_customization 40c9fe4f6 Bring back flake8 for python 3.6 (#4394) 60b50dd4f integration tests: Fix cgroup parsing (#4402) 10ce8ad56 summary: Update template parameter descriptions in docs dc7c48b9b Log PPID for better debugging (#4398) 8761fe8c5 integration tests: don't clean when KEEP_* flags true (#4400) 06a678856 clean: add a new option to clean generated config files 72949eede pep-594: drop deprecated pipes module import 3b5883575 Release 23.3 (#4388) ac3c9d7c8 Bump pycloudlib to 1!5.1.0 for ec2 mantic daily image support (#4390) b06f6f5fb Fix cc_keyboard in mantic 980f69003 ec2: initialize get_instance_userdata return value to bytes (#4387) b05517fbc cc_users_groups: Add doas/opendoas support (#4363) b417b2181 Fix pip-managed ansible f7a2c48f2 status: treat SubState=running and MainPID=0 as service exited b669f31c3 azure/imds: increase read-timeout to 30s (#4372) 9436569e2 collect-logs fix memory usage (SC-1590) (#4289) 327759039 cc_mounts: Use fallocate to create swapfile on btrfs (#4369) 3473bba3f Undocument nocloud-net (#4318) 440465a38 feat(akamai): add akamai to settings.py and apport.py (#4370) 7263cb489 read-version: fallback to get_version when git describe fails (#4366) 842d04524 apt: fix cloud-init status --wait blocking on systemd v 253 (#4364) f69a6f3b3 integration tests: Pass username to pycloudlib (#4324) 90b015972 Bump pycloudlib to 1!5.1.0 (#4353) cda82fe4c cloud.cfg.tmpl: reorganise, minimise/reduce duplication (#4272) 4f09548b4 analyze: fix (unexpected) timestamp parsing (#4347) 1e1624ff8 cc_growpart: fix tests to run on FreeBSD (#4351) 0c17a341b subp: Fix spurious test failure on FreeBSD (#4355) 10d6f303b cmd/clean: fix tests on non-Linux platforms (#4352) 8a70dbc49 util: Fix get_proc_ppid() on non-Linux systems (#4348) 0cfc5c613 cc_wireguard: make tests pass on FreeBSD (#4346) 37c2a66be unittests: fix breakage in test_read_cfg_paths_fetches_cached_datasource (#4328) b90a0a8e8 Fix test_tools.py collection (#4315) 8d9da9024 cc_keyboard: add Alpine support (#4278) b1f4a27b7 Flake8 fixes (#4340) 11a4fd1f8 cc_mounts: Fix swapfile not working on btrfs (#4319) 7949bb3de ds-identify/CloudStack: $DS_MAYBE if vm running on vmware/xen (#4281) 658837389 ec2: Support double encoded userdata (#4276) 9cc3b8f54 cc_mounts: xfs is a Linux only FS (#4334) 4a37eaaa5 tests/net: fix TestGetInterfaces' mock coverage for get_master (#4336) 441d8f818 change openEuler to openeuler and fix some bugs in openEuler (#4317) e2ae75542 Replace flake8 with ruff (#4314) d41264cb4 NM renderer: set default IPv6 addr-gen-mode for all interfaces to eui64 (#4291) 9fdc7a9cd cc_ssh_import_id: add Alpine support and add doas support (#4277) 7cbe0f647 Release 23.2.2 (#4300) 4b342918b sudoers not idempotent (SC-1589) (#4296) 02c826a9e Added support for Akamai Connected Cloud (formerly Linode) (#4167) a31370afe Fix reference before assignment (#4292) ee9078a77 Overhaul module reference page (#4237) a608fbc81 replaced spaces with commas for setting passenv (#4269) 4a6a9d3f6 DS VMware: modify a few log level (#4284) 1f1ca55c0 tools/read-version refactors and unit tests (#4268) 5509b7900 Ensure get_features() grabs all features (#4285) 5ed70cc09 Don't always require passlib dependency (#4274) 297d1719a tests: avoid leaks into host system checking of ovs-vsctl cmd (#4275) fda2ec6f5 Fix NoCloud kernel commandline key parsing (#4273) 86c700713 testing: Clear all LRU caches after each test (#4249) f755bad5d Remove the crypt dependency (#2139) a0e4ec15a logging: keep current file mode of log file if its stricter than the new mode (#4250) 9d815c6f5 Remove default membership in redundant groups (#4258) d409e80b7 doc: improve datasource_creation.rst (#4262) 392346ccd Remove duplicate Integration testing button (#4261) 6543c88e0 tools/read-version: fix the tool so that it can handle version parsing errors (#4234) ce7d597a6 net/dhcp: add udhcpc support (#4190) 862a6e0ec DS VMware: add i386 arch dir to deployPkg plugin search path 7d82c481a LXD moved from linuxcontainers.org to Canonical ebd7b2b69 cc_mounts.py: Add note about issue with creating mounts inside mounts (#4232) c38337ec5 lxd: install lxd from snap, not deb if absent in image b88e09704 landscape: use landscape-config to write configuration 1c9b1f314 Add deprecation log during init of DataSourceDigitalOcean (#4194) e2adc9725 doc: fix typo on apt.primary.arches (#4238) cf474da7f Inspect systemd state for cloud-init status (#4230) 7f933d4d0 instance-data: add system-info and features to combined-cloud-config (#4224) b3c9b6a79 systemd: Block login until config stage completes (#2111) 7b46837ef tests: proposed should invoke apt-get install -t=<release>-proposed (#4235) 66a70c5ea cloud.cfg.tmpl: reinstate ca_certs entry (#4236) e2a7178a5 Remove feature flag override ability (#4228) 317a0232a tests: drop stray unrelated file presence test (#4227) 7f1d841bf Update LXD URL (#4223) 39b6aa774 schema: add network v1 schema definition and validation functions 3a320b439 tests: daily PPA for devel series is version 99.daily update tests to match (#4225) 59fd01d68 instance-data: write /run/cloud-init/combined-cloud-config.json e371d63e0 mount parse: Fix matching non-existent directories (#4222) 8836c7824 Specify build-system for pep517 (#4218) c68305a91 Fix network v2 metric rendering (#4220) 5674a7dc8 Migrate content out of FAQ page (SD-1187) (#4205) c70ea0178 setup: fix generation of init templates (#4209) cce37f69f docs: Correct some bootcmd example wording 16b7097e6 fix changelog e5a617fea Release 23.2.1 (#4207) 2125cc758 tests: reboot client to assert x-shellscript-per-boot is triggered 0e374f83a nocloud: parse_cmdline no longer detects nocloud-net datasource (#4204) d8960054b Add docstring and typing to mergemanydict (#4200) 529e108ca BSD: add dsidentify to early startup scripts (#4182) e6c069d47 handler: report errors on skipped merged cloud-config.txt parts 4538a2ec4 Add cloud-init summit writeups (#4179) 5267ebbf3 tests: Update test_clean_log for oci (#4187) df2a053be gce: improve ephemeral fallback NIC selection (CPC-2578) (#4163) d1268cdf6 tests: pin pytest 7.3.1 to avoid adverse testpaths behavior (#4184) 06a147577 Ephemeral Networking for FreeBSD (#2165) 8615c240c Clarify directory syntax for nocloud local filesystem. (#4178) a1f375095 Set default renderer as sysconfig for centos/rhel (#4165) ae43cc883 Test static routes and netplan 0.106 98fd7fb74 FreeBSD fix parsing of mount and mount options (#2146) 25f4c85cd test: add tracking bug id (#4164) 57d29d046 tests: can't match MAC for LXD container veth due to netplan 0.106 (#4162) 4014f82e1 Add kaiwalyakoparkar as a contributor (#4156) 3d0ad7c35 BSD: remove datasource_list from cloud.cfg template (#4159) 51431af3d launching salt-minion in masterless mode (#4110) ee1e7b3d2 tools: fix run-container builds for rockylinux/8 git hash mismatch (#4161) 32e61372c fix doc lint: spellchecker tripped up (#4160) 95364bbf7 Support Ephemeral Networking for BSD (#2127) 78650806d Added / fixed support for static routes on OpenBSD and FreeBSD (#2157) 71d667c5f cc_rsyslog: Refactor for better multi-platform support (#4119) afdba1e1b tests: fix test_lp1835584 (#4154) d8cc29885 cloud.cfg mod names: docs and rename salt_minion and set_password (#4153) 84d9a83ae tests: apt support for deb822 format .sources files on mantic 4f0f4396a vultr: remove check_route check (#2151) 321fe7b2d Update SECURITY.md (#4150) 9689e3d44 Update CONTRIBUTING.rst (#4149) 5da6d7bd0 Update .github-cla-signers (#4151) e0a96d78c Standardise module names in cloud.cfg.tmpl to only use underscore (#4128) 29a4edbdc tests: update test_webhook_reporting f109955bf Modify PR template so autoclose works dd24c21eb doc: add missing semi-colon to nocloud cmdline docs (#4120) d48530ed3 .gitignore: extend coverage pattern (#4143) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-01-04cloud-init: fix sysvinit script installBruce Ashfield
cloud-init has dropped all RPM based distros sysvinit reference scripts. We switch to debian to keep sysvinit working (although very lightly tested). Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-08-29cloud-init: bump SRCREV to fix update to 23.2.2Martin Jansa
* the update from commit 0f1601d98f2c926a109b7beb7df21a5dfe6188d9 Author: Bruce Ashfield <bruce.ashfield@gmail.com> Date: Thu Aug 3 20:15:04 2023 +0000 Subject: cloud-init: update to 23.2.2 Bumping cloud-init to version 23.2.2, which comprises the following commits: e65a715d Release 23.2.2 was missing the SRCREV update, so it was still 23.1: cloud-init/v23.2.2+git/git $ git describe --tags 23.1-52-ge02c46079 fix that by using the right one of the 23.2.2 tag: cloud-init/v23.2.2+git/git $ git show-ref -d 23.2.2 293c6546f038ef4da98910dfeb8d0ade65707952 refs/tags/23.2.2 e65a715d524456285e07ac521457424713ea4aa5 refs/tags/23.2.2^{} * this fix also allows up to drop the patch backported from 23.2 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-08-24recipes/classes/scripts: Drop SRCPV usageBruce Ashfield
bitbake has been enhanced such that SRCPV is no longer needed in PV to handle updating git hashes and task signatures. We can simplify our PV by dropping SRCPV Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-08-15cloud-init: fix usrmerge QA issueMartin Jansa
* backport a fix from 23.2 version (notice that the recipe claims to be: v23.2.2+git, but the commit in master-next which updated PV only changed the branch name, not the SRCREV, so it's still 23.1 and missing this fix cloud-init/v23.2.2+git/git $ git describe --tags 23.1-53-g57752970e * fixes: ERROR: cloud-init-v23.2.2+git-r0 do_package_qa: QA Issue: cloud-init package is not obeying usrmerge distro feature. /lib should be relocated to /usr. [usrmerge] caused by udev rules: $ find cloud-init/v23.2.2+git/image/lib/ cloud-init/v23.2.2+git/image/lib/ cloud-init/v23.2.2+git/image/lib/udev cloud-init/v23.2.2+git/image/lib/udev/rules.d cloud-init/v23.2.2+git/image/lib/udev/rules.d/66-azure-ephemeral.rules Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-08-15cloud-init: update to 23.2.2Bruce Ashfield
Bumping cloud-init to version 23.2.2, which comprises the following commits: e65a715d Release 23.2.2 7e22ea8b Fix reference before assignment (#4292) bd909995 Fix NoCloud kernel commandline key parsing (#4273) cda47255 Release 23.2.1 0bbf84e5 nocloud: parse_cmdline no longer detects nocloud-net datasource (#4204) cdc24d86 Release 23.2 2f83ab48 BSD: simplify finding MBR partitions by removing duplicate code 10721027 tests: bump pycloudlib version for mantic builds f663e94a network-manager: Set higher autoconnect priority for nm keyfiles (#3671) 2a927738 alpine.py: change the locale file used (#4139) e0b1a477 cc_ntp: Sync up with current FreeBSD ntp.conf (#4122) ddb07212 config: drop refresh_rmc_and_interface as RHEL 7 no longer supported a5366e24 docs: Add feedback button to docs 009dbf85 net/sysconfig: enable sysconfig renderer if network manager has ifcfg-rh plugin (#4132) 431d2c14 For Alpine use os-release PRETTY_NAME (#4138) 5d440856 network_manager: add a method for ipv6 static IP configuration (#4127) 06eadd8a correct misnamed template file host.mariner.tmpl (#4124) ea573ba6 nm: generate ipv6 stateful dhcp config at par with sysconfig (#4115) 6d09df5e Add templates for GitHub Issues 1b9c2b57 Add 'peers' and 'allow' directives in cc_ntp (#3124) 8c1a3ff8 FreeBSD: Fix user account locking (#4114) 21006925 FreeBSD: add ResizeGrowFS class to cc_growpart (#2334) ffdb7a7d Update tests in Azure TestCanDevBeReformatted class (#2771) ce2f26c2 Replace Launchpad references with GitHub Issues 7c52b8a5 Fix KeyError in iproute pformat (#3287) 73f34575 schema: read_cfg_paths call init.fetch to lookup /v/l/c/instance 9f845036 azure/errors: introduce reportable errors for imds (#3647) 60248d88 FreeBSD (and friends): better identify MBR slices (#2168) 481bf4d3 azure/errors: add host reporting for dhcp errors (#2167) 0c4d53f2 net: purge blacklist_drivers across net and azure (#2160) 64227612 net: refactor hyper-v VF filtering and apply to get_interfaces() (#2153) 6cc09f3c tests: avoid leaks to underlying filesystem for /etc/cloud/clean.d (#2251) a0f5279b net: refactor find_candidate_nics_on_linux() to use get_interfaces() (#2159) 0dfe06ba resolv_conf: Allow > 3 nameservers (#2152) e07ad4a5 Remove mount NTFS error message (#2134) b1a14a2a integration tests: fix image specification parsing (#2166) 4d28d203 ci: add hypothesis scheduled GH check (#2149) a18442af Move supported distros list to docs (#2162) e8ef58b9 Fix logger, use instance rather than module function (#2163) ed2ebf09 README: Point to Github Actions build status (#2158) 59edb3f1 Revert "fix linux-specific code on bsd (#2143)" (#2161) c53f04ae Do not generate dsa and ed25519 key types when crypto FIPS mode is enabled (#2142) 76fe7ddb Add documentation label automatically (#2156) 96710408 sources/azure: report success to host and introduce kvp module (#2141) 5abf5f5f setup.py: use pkg-config for udev/rules path (#2137) 7ffd0bcd openstack/static: honor the DNS servers associated with a network (#2138) a9cec5da fix linux-specific code on bsd (#2143) e9d1d3a0 cli: schema validation of jinja template user-data (SC-1385) (#2132) aa0cd62c gce: activate network discovery on every boot (#2128) be3441b2 tests: update integration test to assert 640 across reboots (#2145) a378b7e4 Make user/vendor data sensitive and remove log permissions (#2144) c1b47220 Update kernel command line docs (SC-1457) (#2133) 1132b2ce docs: update network configuration path links (#2140) 6e380dd6 sources/azure: report failures to host via kvp (#2136) 34637a49 net: Document use of `ip route append` to add routes (#2130) 0a534a6d dhcp: Add missing mocks (#2135) 4f3fe823 azure/imds: retry fetching metadata up to 300 seconds (#2121) 5942f402 [1/2] DHCP: Refactor dhcp client code (#2122) 9e4cb4f0 azure/errors: treat traceback_base64 as string (#2131) d6de22e3 azure/errors: introduce reportable errors (#2129) 3ee38468 users: schema permit empty list to indicate create no users b7179409 azure: introduce identity module (#2116) 34e8c914 Standardize disabling cloud-init on non-systemd (#2112) 44ab4f4a Update .github-cla-signers (#2126) f146fe71 NoCloud: Use seedfrom protocol to determine mode (#2107) 24945cad rhel: Remove sysvinit files. (#2114) a664b712 tox.ini: set -vvvv --showlocals for pytest (#2104) 250280ad Fix NoCloud kernel commandline semi-colon args d9844fa8 run-container: make the container/VM timeout configurable (#2118) e572643f suse: Remove sysvinit files. (#2115) e71f0a13 test: Backport assert_call_count for old requests (#2119) 9490585f Add "licebmi" as contributor (#2113) e02c4607 Adapt DataSourceScaleway to upcoming IPv6 support (#2033) 6d42aa8e rhel: make sure previous-hostname file ends with a new line (#2108) 55eaba2f Adding contributors for DataSourceAkamai (#2110) 0273712c Cleanup ephemeral IP routes on exception (#2100) 09a64bad Fix private key permissions when openssh not earlier than 9.0 #2072 612b4de8 Standardize kernel commandline user interface (#2093) 2a61a589 config/cc_resizefs: fix do_resize arguments (#2106) b33d528e Fix test_dhclient_exits_with_error (#2105) c82ace92 net/dhcp: catch dhclient failures and raise NoDHCPLeaseError (#2083) 4fbf5317 sources/azure: move pps handling out of _poll_imds() (#2075) d6ac22e1 tests: bump pycloudlib version (#2102) d7bdba6f schema: do not manipulate draft4 metaschema for jsonschema 2.6.0 (#2098) ed3ebfc4 sources/azure/imds: don't count timeout errors as connection errors (#2074) e3f1ec3f Fix Python 3.12 unit test failures (#2099) 2562f933 integration tests: Refactor instance checking (#1989) ad33cbba ci: migrate remaining jobs from travis to gh (#2085) 4b6e4e13 missing ending quote in instancedata docs(#2094) baad0946 refactor: stop passing log instances to cc_* handlers (#2016) 7803f9c6 tests/vmware: fix test_no_data_access_method failure (#2092) 56c88caf Don't change permissions of netrules target (#2076) e54ca3ad tests/sources: patch util.get_cmdline() for datasource tests (#2091) ceb66d45 macs: ignore duplicate MAC for devs with driver driver qmi_wwan (#2090) 055395d3 Fedora: Enable CA handling (#2086) 74ed9ef2 Add frantisekz as contributor (#2087) 7f91bdea Send dhcp-client-identifier for InfiniBand ports (#2043) 85b2fbc2 cc_ansible: complete the examples and doc (#2082) eaa4ccb1 contributor: add bdrung c13f4738 bddeb: for dev package, derive debhelper-compat from host system 7382cb66 apport: only prompt for cloud_name when instance-data.json is absent a60c0845 datasource: Optimize datasource detection, fix bugs (#2060) 36346784 Handle non existent ca-cert-config situation (#2073) 5eb43b95 sources/azure: add networking check for all source PPS (#2061) fc6c1d37 do not attempt dns resolution on ip addresses (#2040) 8a0feb1e chore: fix style tip (#2071) 2e697bb0 Fix metadata IP in instancedata.rst (#2063) b463f30c util: Pass deprecation schedule in deprecate_call() (#2064) 9af4b0bf config: Update grub-dpkg docs (#2058) b91dd0e8 docs: Cosmetic improvements and styling (#2057) 2fd24cc8 cc_grub_dpkg: Added UEFI support (#2029) 20335153 tests: Write to /var/spool/rsyslog to adhere to apparmor profile (#2059) 6b9bf7b9 oracle-ds: prefer system_cfg over ds network config source (#1998) b728b4e7 Remove dead code (#2038) 4896402b Release 23.1.1 (#2052) d1ffbea5 source: Force OpenStack when it is only option (#2045) 635b5a52 cc_ubuntu_advantage: improve UA logs discovery d781e14c sources/azure: fix regressions in IMDS behavior (#2041) 5d1d2544 tests: fix test_schema (#2042) b2220798 dhcp: Cleanup unused kwarg (#2037) f79efeba sources/vmware/imc: fix-missing-catch-few-negtive-scenarios (#2027) 2ee614aa dhclient_hook: remove vestigal dhclient_hook command (#2015) 6100fda6 log: Add standardized deprecation tooling (SC-1312) (#2026) 46fcd031 Enable SUSE based distros for ca handling (#2036) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-04-05cloud-init: update to 23.1Bruce Ashfield
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-27treewide: bulk update patches with status fieldBruce Ashfield
While the insane.bbclass upstream-status check hasn't been made default, users of meta-virtualization may have it enabled in their distros .. so the effect is the same. We must have this tracking tag in out patches. This is a bulk update to add the tag and silence the QA message. As packages get updated, the normal/routine process of checking the patches will continue, and the status fields may (or may not) get more useful. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-10-04cloud-init: add Apache-2.0 as a LICENSE optionDan McGregor
cloud-init has been dual licensed for a while. According to the LICENSE file this package is dual-licensed Apache 2 and GPL 3. This has been the case since commit b2a9f3361 in 2016. This has applied to every release since 17.1. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-10-04cloud-init: package nonarch_libdirDan McGregor
cloud-init installs its data in nonarch_libdir, not libdir, so package that. On non-multilib builds this wouldn't be noticed. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-06-27cloud-init: install sysvinit initscriptsJeremy Puhlman
The redhat versions work with out modification. Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-06-27cloud-init: add rdpends for netifaces and charset-normalizerJeremy Puhlman
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-06-27cloud-init: add depend on udev in sysvinit case.Jeremy Puhlman
Just as with systemd, the build needs the dev manager installed as a dependancy Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-11cloud-init: inherit setuptools3_legacyTim Orling
cloud-init still requires legacy setup.py behavior. Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-02-18global: update licence values to SPDX valuesBruce Ashfield
These changes are the result of running the convert-spdx-licenses.py oe-core script. There's no impact to the build, but we will avoid issues when interacting with core QA by the alignment. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-12-21cloud-init: update to 21.4Bruce Ashfield
Bumping cloud-init to version 21.4-47-ga97fd062 - patch refresh - add bash to RDPENDS Commit summary: a97fd062 Add .git-blame-ignore-revs (#1161) bae9b11d Adopt Black and isort (SC-700) (#1157) 2bcf4fa9 Include dpkg frontend lock in APT_LOCK_FILES (#1153) 3da3bdae tests/cmd/query: fix test run as root and add coverage for defaults (#1156) 9a6e65a2 Schema processing changes (SC-676) (#1144) 35711700 Add dependency workaround for impish in bddeb (#1148) 3303b704 netbsd: install new dep packages (#1151) f4692c5d find_devs_with_openbsd: ensure we return the last entry (#1149) e9634266 sources/azure: remove unnecessary hostname bounce (#1143) 24739592 find_devs/openbsd: accept ISO on disk (#1132) b591e9db Improve error log message when mount failed (#1140) 8df8f43a add KsenijaS as a contributor (#1145) 6760bf14 travis - don't run integration tests if no deb (#1139) 65c2cfd7 factor out function for getting top level directory of cloudinit (#1136) b21afb0a testing: Add deterministic test id (#1138) 2969ceaa mock sleep() in azure test (#1137) 0ed00ad9 Add miraclelinux support (#1128) cd40789a docs: Make MACs lowercase in network config (#1135) bedac77e Add Strict Metaschema Validation (#1101) f428ed16 update dead link (#1133) 0e25076b cloudinit/net: handle two different routes for the same ip (#1124) 6e39613d docs: pin mistune dependency (#1134) 039c40f9 Reorganize unit test locations under tests/unittests (#1126) ffa6fc88 Fix exception when no activator found (#1129) 0fe96a44 jinja: provide and document jinja-safe key aliases in instance-data (SC-622) (#1123) ff10fc09 testing: Remove date from final_message test (SC-638) (#1127) cf38c2cb Move GCE metadata fetch to init-local (SC-502) (#1122) a1cf55e5 Fix missing metadata routes for vultr (#1125) c39d4f45 cc_ssh_authkey_fingerprints.py: prevent duplicate messages on console (#1081) 4bf4de25 sources/azure: remove unused remnants related to agent command (#1119) 32860627 github: update PR template's contributing URL (#1120) b36b4e2f docs: Rename HACKING.rst to CONTRIBUTING.rst (#1118) 31daf667 testing: monkeypatch system_info call in unit tests (SC-533) (#1117) 1343584d Fix Vultr timeout and wait values (#1113) 7ebf04e3 lxd: add preference for LXD cloud-init.* config keys over user keys (#1108) 3c6b594b VMware: source /etc/network/interfaces.d/* on Debian 62721ae7 Add cjp256 as contributor (#1109) 36adb6da integration_tests: Ensure log directory exists before symlinking to it (#1110) 7f03da35 testing: add growpart integration test (#1104) 8c52bb3f integration_test: Speed up CI run time (#1111) f0af9f78 Some miscellaneous integration test fixes (SC-606) (#1103) 918d69a0 tests: specialize lxd_discovery test for lxd_vm vendordata (#1106) 22150a20 Add convenience symlink to integration test output (#1105) fff6de4a Fix for set-name bug in networkd renderer (#1100) 3d150688 Wait for apt lock (#1034) 6421a202 testing: stop chef test from running on openstack (#1102) 820e3d1c alpine.py: add options to the apk upgrade command (#1089) db6084bd Release 21.4 (#1091) ff415cad Azure: fallback nic needs to be reevaluated during reprovisioning (#1094) 48467aa3 azure: pps imds (#1093) d54e23bf testing: Remove calls to 'install_new_cloud_init' (#1092) 77376534 Add LXD datasource (#1040) b1beb538 Fix unhandled apt_configure case. (#1065) a90d8338 Allow libexec for hotplug (#1088) 0f8428f6 Add necessary mocks to test_ovf unit tests (#1087) 28581988 Remove (deprecated) apt-key (#1068) d4fe4bf5 distros: Remove a completed "TODO" comment (#1086) d77d6bf1 cc_ssh.py: Add configuration for controlling ssh-keygen output (#1083) 1d01da5d Add "install hotplug" module (SC-476) (#1069) 75b26b0a hosts.alpine.tmpl: rearrange the order of short and long hostnames (#1084) 994339ae Add max version to docutils e6f15ae5 cloudinit/dmi.py: Change warning to debug to prevent console display (#1082) a8380a12 remove unnecessary EOF string in disable-sshd-keygen-if-cloud-init-active.conf (#1075) a4236c37 Add module 'write-files-deferred' executed in stage 'final' (#916) 81f6aa16 Bump pycloudlib to fix CI (#1080) 2db71334 Remove pin in dependencies for jsonschema (#1078) 6cf9dc87 Add "Google" as possible system-product-name (#1077) 2107ad01 Update Debian security suite for bullseye (#1076) 8c89009e Leave the details of service management to the distro (#1074) 3a6bee59 Fix typos in setup.py (#1059) 150fd30e Update Azure _unpickle (SC-500) (#1067) ee296ced cc_ssh.py: fix private key group owner and permissions (#1070) a0a68a24 VMware: read network-config from ISO (#1066) 70f0ee78 testing: mock sleep in gce unit tests (#1072) 62c2a56e CloudStack: fix data-server DNS resolution (#1004) 125dcb28 Fix unit test broken by pyyaml upgrade (#1071) a9501251 testing: add get_cloud function (SC-461) (#1038) b3e31ba2 Inhibit sshd-keygen@.service if cloud-init is active (#1028) 76166caf VMWARE: search the deployPkg plugin in multiarch dir (#1061) ca0da042 Fix set-name/interface DNS bug (#1058) 1ee2f3c3 Use specified tmp location for growpart (#1046) 048a825c .gitignore: ignore tags file for ctags users (#1057) 725a7f7f Allow comments in runcmd and report failed commands correctly (#1049) fd595774 tox integration: pass the *_proxy, GOOGLE_*, GCP_* env vars (#1050) 9c147e83 Allow disabling of network activation (SC-307) (#1048) 3d2bac8b renderer: convert relative imports to absolute (#1052) 1bbb67ca Support ETHx_IP6_GATEWAY, SET_HOSTNAME on OpenNebula (#1045) de166ec3 integration-requirements: bump the pycloudlib commit (#1047) 81a8f0a6 lp-to-git-users: adding vholer (#1044) 591e97da Allow Vultr to set MTU and use as-is configs (#1037) 392c3262 pin jsonschema in requirements.txt (#1043) ba083245 testing: remove cloud_tests (#1020) 934c8d71 Add andgein as contributor (#1042) 82d6f564 Make wording for module frequency consistent (#1039) 2d67c1b9 Use ascii code for growpart (#1036) 21aec00f Add jshen28 as contributor (#1035) c29c5b1d Skip test_cache_purged_on_version_change on Azure (#1033) 8cebc449 Remove invalid ssh_import_id from examples (#1031) 244af3f4 Cleanup Vultr support (#987) 24a15e9c docs: update cc_disk_setup for fs to raw disk (#1017) a1e78b2e HACKING.rst: change contact info to James Falcon (#1030) 089a307d tox: bump the pinned flake8 and pylint version (#1029) e27c3074 Add retries to DataSourceGCE.py when connecting to GCE (#1005) dc227869 Set Azure to apply networking config every BOOT (#1023) 612e3908 Add connectivity_url to Oracle's EphemeralDHCPv4 (#988) cb82a450 docs: fix typo and include sudo for report bugs commands (#1022) 5ea2c669 VMware: Fix typo introduced in #947 and add test (#1019) d4fe7bc4 Update IPv6 entries in /etc/hosts (#1021) 023f97d4 Integration test upgrades for the 21.3-1 SRU (#1001) 26a92b0d Add Jille to tools/.github-cla-signers (#1016) f3cc9494 Improve ug_util.py (#1013) f4c47e3e Support openEuler OS (#1012) 2ce85724 ssh_utils.py: ignore when sshd_config options are not key/value pairs (#1007) e69a8874 Set Azure to only update metadata on BOOT_NEW_INSTANCE (#1006) 7fe0f900 cc_update_etc_hosts: Use the distribution-defined path for the hosts file (#983) f6c71fd7 Add CloudLinux OS support (#1003) db72c841 puppet config: add the start_agent option (#1002) 58c2de4c Fix `make style-check` errors (#1000) 76cff793 Make cloud-id copyright year (#991) 7fc3f08e Add support to accept-ra in networkd renderer (#999) de8931ed Update ds-identify to pass shellcheck (#979) 28e56d99 Azure: Retry dhcp on timeouts when polling reprovisiondata (#998) 6803368d testing: Fix ssh keys integration test (#992) 03ee10cd Release 21.3 (#993) 3ec8ddde Azure: During primary nic detection, check interface status continuously before rebinding again (#990) 7d3f5d75 Fix home permissions modified by ssh module (SC-338) (#984) 94679e17 Add integration test for sensitive jinja substitution (#986) 776bd363 Ignore hotplug socket when collecting logs (#985) 3e63025a testing: Add missing mocks to test_vmware.py (#982) 0bf8d575 add Zadara Edge Cloud Platform to the supported clouds list (#963) b9c96b4f testing: skip upgrade tests on LXD VMs (#980) 65607405 Only invoke hotplug socket when functionality is enabled (#952) f516a7d3 Revert unnecesary lcase in ds-identify (#978) 04047438 cc_resolv_conf: fix typos (#969) 1c3b10b5 Replace broken httpretty tests with mock (SC-324) (#973) e119cece Azure: Check if interface is up after sleep when trying to bring it up (#972) 7781dec3 Update dscheck_VMware's rpctool check (#970) 82a30e6d Azure: Logging the detected interfaces (#968) b9d308b4 Change netifaces dependency to 0.10.4 (#965) d3271217 Azure: Limit polling network metadata on connection errors (#961) c62cb3af Update inconsistent indentation (#962) 9893dfcd cc_puppet: support AIO installations and more (#960) 3c858591 Add Puppet contributors to CLA signers (#964) 8b4a9bc7 Datasource for VMware (#953) 049d62b6 photon: refactor hostname handling and add networkd activator (#958) 00dbaf1e Stop copying ssh system keys and check folder permissions (#956) 13b6a857 testing: port remaining cloud tests to integration testing framework (SC-191) (#955) 8f42eb54 generate contents for ovf-env.xml when provisioning via IMDS (#959) 3d9c862b Add support for EuroLinux 7 && EuroLinux 8 (#957) 758acf97 Implementing device_aliases as described in docs (#945) 824977bd testing: fix test_ssh_import_id.py (#954) 6e7066ea Add ability to manage fallback network config on PhotonOS (#941) 4257e30a Add VZLinux support (#951) f0ab1e64 VMware: add network-config support in ovf-env.xml (#947) ec6afadb Update pylint to v2.9.3 and fix the new issues it spots (#946) a984ee78 Azure: mount default provisioning iso before try device listing (#870) 4fbe192a Document known hotplug limitations (#950) 184c836a Initial hotplug support (#936) eacb0353 Fix MIME policy failure on python version upgrade (#934) 881be6e7 run-container: fixup the centos repos baseurls when using http_proxy (#944) a185f319 tools: add support for building rpms on rocky linux (#940) 9b52405c ssh-util: allow cloudinit to merge all ssh keys into a custom user file, defined in AuthorizedKeysFile (#937) 108611ae VMware: new "allow_raw_data" switch (#939) 7f5e6822 bump pycloudlib version (#935) 894dd7c4 add renanrodrigo as a contributor (#938) 36aeb49c testing: simplify test_upgrade.py (#932) db51b656 freebsd/net_v1 format: read MTU from root (#930) 81299de5 Add new network activators to bring up interfaces (#919) 78e89b03 - Detect a Python version change and clear the cache (#857) 6e0aa175 cloud_tests: fix the Impish release name (#931) b5aecbe9 Removed distro specific network code from Photon (#929) 35aa9db6 Add support for VMware PhotonOS (#909) f5a24496 cloud_tests: add impish release definition (#927) db23b1b1 docs: fix stale links rename master branch to main (#926) abd2da57 Fix DNS in NetworkState (SC-133) (#923) fbcb224b tests: Add 'adhoc' mark for integration tests (#925) 1243c5a1 Fix the spelling of "DigitalOcean" (#924) c8d3f99b Small Doc Update for ReportEventStack and Test (#920) 950c186a Replace deprecated collections.Iterable with abc replacement (#922) 59a3d845 testing: OCI availability domain is now required (SC-59) (#910) 59a848c5 add DragonFlyBSD support (#904) 05b0e350 Use instance-data-sensitive.json in jinja templates (SC-117) (#917) b11632d1 doc: Update NoCloud docs stating required files (#918) 9c400e46 build-on-netbsd: don't pin a specific py3 version (#913) 29ac50f2 - Create the log file with 640 permissions (#858) 503e2d39 Allow braces to appear in dhclient output (#911) 63f72380 Docs: Replace all freenode references with libera (#912) fc161f8e openbsd/net: flush the route table on net restart (#908) 7c1d27b8 Add Rocky Linux support to cloud-init (#906) c8db6032 Add "esposem" as contributor (#907) 3611befb Add integration test for #868 (#901) 1793b8b7 Added support for importing keys via primary/security mirror clauses (#882) 21a0b120 [examples] config-user-groups expire in the future (#902) 6fe19837 BSD: static network, set the mtu (#894) 4c3c3629 Add integration test for lp-1920939 (#891) 57964125 Fix unit tests breaking from new httpretty version (#903) 86434699 Allow user control over update events (#834) 899bfaa9 Update test characters in substitution unit test (#893) 77320bfc cc_disk_setup.py: remove UDEVADM_CMD definition as not used (#886) 8cf40a73 Add AlmaLinux OS support (#872) 13877549 Release 21.2 (#890) f17f78fa Add \r\n check for SSH keys in Azure (#889) 5f5fa5ee Revert "Add support to resize rootfs if using LVM (#721)" (#887) 9ea643ff Add Vultaire as contributor (#881) ba82b3ef Azure: adding support for consuming userdata from IMDS (#884) 5c740dcf test_upgrade: modify test_upgrade_package to run for more sources (#883) 02db2c3e Fix chef module run failure when chef_license is set (#868) b2311664 Azure: Retry net metadata during nic attach for non-timeout errs (#878) 431b3683 Azure: Retrieve username and hostname from IMDS (#865) d5cca27a Azure: eject the provisioning iso before reporting ready (#861) ced836e6 Use `partprobe` to re-read partition table if available (#856) d132356c fix error on upgrade caused by new vendordata2 attributes (#869) 45db197c add prefer_fqdn_over_hostname config option (#859) 0d90596b Emit dots on travis to avoid timeout (#867) cc16c922 doc: Replace remaining references to user-scripts as a config module (#866) 9f9e154f azure: Removing ability to invoke walinuxagent (#799) 0ae0b1d4 Add Vultr support (#827) 83f6bbfb Fix unpickle for source paths missing run_dir (#863) fb38aa59 sysconfig: use BONDING_MODULE_OPTS on SUSE (#831) a9d3664c lp-to-git-users: adding B1Sandmann (#828) 15dd3601 bringup_static_routes: fix gateway check (#850) fc5d5415 add hamalq user (#860) 74fa008b Add support to resize rootfs if using LVM (#721) 3b7e2e82 Fix mis-detecting network configuration in initramfs cmdline (#844) 13606a12 tools/write-ssh-key-fingerprints: do not display empty header/footer (#817) 6ae1145f Azure helper: Ensure Azure http handler sleeps between retries (#842) d4acc092 Fix chef apt source example (#826) bad84ad4 .travis.yml: generate an SSH key before running tests (#848) b794d426 write passwords only to serial console, lock down cloud-init-output.log (#847) c6726c2b Fix apt default integration test (#845) dae45c3b integration_tests: bump pycloudlib dependency (#846) f35181fa Fix stack trace if vendordata_raw contained an array (#837) 3aeb14cd archlinux: Fix broken locale logic (#841) d95b448f Integration test for #783 (#832) 74e1e50d integration_tests: mount more paths IN_PLACE (#838) 9bd19645 Fix requiring device-number on EC2 derivatives (#836) 6fe99157 Remove the vi comment from the part-handler example (#835) 121bc04c net: exclude OVS internal interfaces in get_interfaces (#829) 106c57d5 tox.ini: pass OS_* environment variables to integration tests (#830) 3dd3de7c integration_tests: add OpenStack as a platform (#804) 3be66630 Add flexibility to IMDS api-version (#793) 62f7a8b1 Fix the TestApt tests using apt-key on Xenial and Hirsute (#823) a10838a6 doc: remove duplicate "it" from nocloud.rst (#825) 2757333e archlinux: Use hostnamectl to set the transient hostname (#797) 402d98ed cc_keys_to_console.py: Add documentation for recently added config key (#824) 695c4f8f Update cc_set_hostname documentation (#818) d873b9dc Release 21.1 (#820) a64b7380 Azure: Support for VMs without ephemeral resource disks. (#800) e384a543 cc_keys_to_console: add option to disable key emission (#811) 38aee6ee integration_tests: introduce lxd_use_exec mark (#802) 66e2d42d azure: case-insensitive UUID to avoid new IID during kernel upgrade (#798) 08d8902a stale.yml: don't ask submitters to reopen PRs (#816) 33b6cf29 integration_tests: fix use of SSH agent within tox (#815) 28d2d4b8 integration_tests: add UPGRADE CloudInitSource (#812) 5a9008e5 integration_tests: use unique MAC addresses for tests (#813) 6056ccd4 Update .gitignore (#814) 7f1cefe9 Port apt cloud_tests to integration tests (#808) 85e88af0 integration_tests: fix test_gh626 on LXD VMs (#809) 84e56f84 Fix attempting to decode binary data in test_seed_random_data test (#806) 09193e51 Remove wait argument from tests with session_cloud calls (#805) 0497c7b1 Datasource for UpCloud (#743) 3a0a5894 test_gh668: fix failure on LXD VMs (#801) 3cebe0df openstack: read the dynamic metadata group vendor_data2.json (#777) 36ddf1eb includedir in suoders can be prefixed by "arroba" (#783) 6efe16d8 [VMware] change default max wait time to 15s (#774) e7e7b429 Revert integration test associated with reverted #586 (#784) 5ccc8cba Add jordimassaguerpla as contributor (#787) a0fdd856 Add Rick Harding to CLA signers (#792) c343e8b3 HACKING.rst: add clarifying note to LP CLA process section (#789) 5ec01a57 Stop linting cloud_tests (#791) 4c190685 cloud-tests: update cryptography requirement (#790) a9c904dc Remove 'remove-raise-on-failure' calls from integration_tests (#788) 1527efa7 Use more cloud defaults in integration tests (#757) 2d0b6368 Adding self to cla signers (#776) e051d542 doc: avoid two warnings (#781) b3abcdc0 Use proper spelling for Red Hat (#778) ad23441d Add antonyc to .github-cla-signers (#747) c25118ac integration_tests: log image serial if available (#772) cdc5b81f Revert "ssh_util: handle non-default AuthorizedKeysFile config (#586)" (#775) 9db8620b Release 20.4.1 6fc9da99 Revert "ssh_util: handle non-default AuthorizedKeysFile config (#586)" 11630044 [VMware] Support cloudinit raw data feature (#691) 9a258eeb net: Fix static routes to host in eni renderer (#668) 162fb839 .travis.yml: don't run cloud_tests in CI (#756) 7b58982a test_upgrade: add some missing commas (#769) 37abbc43 cc_seed_random: update documentation and fix integration test (#771) 503435d1 Fix test gh-632 test to only run on NoCloud (#770) 2b2c7f39 archlinux: fix package upgrade command handling (#768) 2bfa461b integration_tests: add integration test for LP: #1910835 (#761) 4f62ae8d Fix regression with handling of IMDS ssh keys (#760) 88581e54 integration_tests: log cloud-init version in SUT (#758) 83ba4d18 Add ajmyyra as contributor (#742) 75eb007f net_convert: add some missing help text (#755) ea6fcc14 Missing IPV6_AUTOCONF=no to render sysconfig dhcp6 stateful on RHEL (#753) aa1014ca doc: document missing IPv6 subnet types (#744) 30da21bd Add example configuration for datasource `AliYun` (#751) e5c67478 integration_tests: add SSH key selection settings (#754) 48b2c5f1 fix a typo in man page cloud-init.1 (#752) b85e4a56 network-config-format-v2.rst: add Netplan Passthrough section (#750) c5f6c786 stale: re-enable post holidays (#749) aa72426b integration_tests: port ca_certs tests from cloud_tests (#732) 80847b05 Azure: Add telemetry for poll IMDS (#741) 5d017ab6 doc: move testing section from HACKING to its own doc (#739) b9a5da16 No longer allow integration test failures on travis (#738) e4f2d613 stale: fix error in definition (#740) b944cbe0 integration_tests: set log-cli-level to INFO by default (#737) 3c076f4c PULL_REQUEST_TEMPLATE.md: use backticks around commit message (#736) fad919aa stale: disable check for holiday break (#735) f38ba3ca integration_tests: log the path we collect logs into (#733) ac17c6a2 .travis.yml: add (most) supported Python versions to CI (#734) 0b932e55 integration_tests: fix IN_PLACE CLOUD_INIT_SOURCE (#731) a5484d02 cc_ca_certs: add RHEL support (#633) 91381855 Azure: only generate config for NICs with addresses (#709) e5f74595 doc: fix CloudStack configuration example (#707) eadadaa1 integration_tests: restrict test_lxd_bridge appropriately (#730) 9e89ca70 Add integration tests for CLI functionality (#729) 2022bc72 Integration test for gh-626 (#728) ca49e27b Some test_upgrade fixes (#726) 2af3f6d7 Ensure overriding test vars with env vars works for booleans (#727) 3339a5a4 integration_tests: port lxd_bridge test from cloud_tests (#718) 9ea845db Integration test for gh-632. (#725) 8321f0c0 Integration test for gh-671 (#724) 00dbc144 integration-requirements.txt: bump pycloudlib commit (#723) 212b291d Drop unnecessary shebang from cmd/main.py (#722) 97bfd21d Integration test for LP: #1813396 and #669 (#719) 1d1649e5 integration_tests: include timestamp in log output (#720) 05216aa3 integration_tests: add test for LP: #1898997 (#713) 17ca02e1 Add integration test for power_state_change module (#717) 7ec314a9 Update documentation for network-config-format-v2 (#701) b8df2547 sandbox CA Cert tests to not require ca-certificates (#715) 54e202a6 Add upgrade integration test (#693) aa6350f6 Integration test for 570 (#712) 974145d0 Add ability to keep snapshotted images in integration tests (#711) 06f7b452 Integration test for pull #586 (#706) 6c4e87bf integration_tests: introduce skipping of tests by OS (#702) ed9bd19c integration_tests: introduce IntegrationInstance.restart (#708) bd76d5cf Add lxd-vm to list of valid integration test platforms (#705) f550c876 Adding BOOTPROTO = dhcp to render sysconfig dhcp6 stateful on RHEL (#685) 2bd34bda Delete image snapshots created for integration tests (#682) de3183c1 Parametrize ssh_keys_provided integration test (#700) 53f2bfbb Drop use_sudo attribute on IntegrationInstance (#694) 6ee01078 cc_apt_configure: add riscv64 as a ports arch (#687) 4292a47b cla: add xnox (#692) bc9c6c22 Collect logs from integration test runs (#675) 47f4229e Release 20.4 (#686) 87df9d6c tox: avoid tox testenv subsvars for xenial support (#684) 6e86d2a5 Ensure proper root permissions in integration tests (#664) 8a493bf0 LXD VM support in integration tests (#678) e454dea5 Integration test for fallocate falling back to dd (#681) 66a851ac .travis.yml: correctly integration test the built .deb (#683) a4d0feb0 Ability to hot-attach NICs to preprovisioned VMs before reprovisioning (#613) 66b4be8b Support configuring SSH host certificates. (#660) 5d4a9a4a add integration test for LP: #1900837 (#679) 12ef7541 cc_resizefs on FreeBSD: Fix _can_skip_ufs_resize (#655) 73e704e3 DataSourceAzure: push dmesg log to KVP (#670) 9707a08a Make mount in place for tests work (#667) bfaee8cc integration_tests: restore emission of settings to log (#657) eea75449 DataSourceAzure: update password for defuser if exists (#671) 49d5de92 tox.ini: only select "ci" marked tests for CI runs (#677) 6df0230b Azure helper: Increase Azure Endpoint HTTP retries (#619) d807df28 DataSourceAzure: send failure signal on Azure datasource failure (#594) 96d21dfb test_persistence: simplify VersionIsPoppedFromState (#674) cd752df6 only run a subset of integration tests in CI (#672) f6801144 cli: add --system param to allow validating system user-data on a machine (#575) e1bde919 test_persistence: add VersionIsPoppedFromState test (#673) 4f2da1cc introduce an upgrade framework and related testing (#659) a925b5a0 add --no-tty option to gpg (#669) eeef783b Pin pycloudlib to a working commit (#666) 8a9ee02d DataSourceOpenNebula: exclude SRANDOM from context output (#665) 38ba6b30 cloud_tests: add hirsute release definition (#662) db2ff11d split integration and cloud_tests requirements (#652) 39cf5c4e faq.rst: add warning to answer that suggests running `clean` (#661) 2730521f Fix stacktrace in DataSourceRbxCloud if no metadata disk is found (#632) 57349eb7 Make wakeonlan Network Config v2 setting actually work (#626) 0dc2d030 HACKING.md: unify network-refactoring namespace (#658) d83c0bb4 replace usage of dmidecode with kenv on FreeBSD (#621) b542ce7a Prevent timeout on travis integration tests. (#651) c86283f0 azure: enable pushing the log to KVP from the last pushed byte (#614) f4235974 Fix launch_kwargs bug in integration tests (#654) cf6c36a1 split read_fs_info into linux & freebsd parts (#625) d1c01c1d PULL_REQUEST_TEMPLATE.md: expand commit message section (#642) 8dfd8801 Make some language improvements in growpart documentation (#649) 0184e536 Revert ".travis.yml: use a known-working version of lxd (#643)" (#650) 7978feb3 Fix not sourcing default 50-cloud-init ENI file on Debian (#598) 2c450039 remove unnecessary reboot from gpart resize (#646) 0af1ff1e cloudinit: move dmi functions out of util (#622) d619f517 integration_tests: various launch improvements (#638) 2ea3121f test_lp1886531: don't assume /etc/fstab exists (#639) 0ff34cfb Remove Ubuntu restriction from PR template (#648) 34f8e221 util: fix mounting of vfat on *BSD (#637) 815a790c conftest: improve docstring for disable_subp_usage (#644) 8642e8bc doc: add example query commands to debug Jinja templates (#645) f8c84aee Correct documentation and testcase data for some user-data YAML (#618) 0f8be879 Hetzner: Fix instance_id / SMBIOS serial comparison (#640) f72d0cb7 .travis.yml: use a known-working version of lxd (#643) a6afe9c5 tools/build-on-freebsd: fix comment explaining purpose of the script (#635) 1431c8a1 Hetzner: initialize instance_id from system-serial-number (#630) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-12-21cloud-init: switch branch to mainBruce Ashfield
Cloud-init has removed the master branch, and has switched to using main. So we adjust our recipe accordingly to avoid fetcher errors. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-02global: convert github SRC_URIs to use https protocolBruce Ashfield
github is removing git:// access, and fetches will start experiencing interruptions in service, and eventually will fail completely. bitbake will also begin to warn on github src_uri's that don't use https. So we convert the meta-virt instances to use protocol=https (done using the oe-core contrib conversion script) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-02global: add explicit branch to all SRC_URIsBruce Ashfield
As introduced in the oe-core post: https://lists.openembedded.org/g/openembedded-core/message/157623 SRC_URIs without an explicit branch will generate warnings, and eventually be an error. We run the provided conversion script to make sure that meta-virt is ready for the change. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-08-02global: overrides syntax conversionBruce Ashfield
OEcore/bitbake are moving to use the clearer ":" as an overrides separator. This is pass one of updating the meta-virt recipes to use that syntax. This has only been minimally build/runtime tested, more changes will be required for missed overrides, or incorrect conversions Note: A recent bitbake is required: commit 75fad23fc06c008a03414a1fc288a8614c6af9ca Author: Richard Purdie <richard.purdie@linuxfoundation.org> Date: Sun Jul 18 12:59:15 2021 +0100 bitbake: data_smart/parse: Allow ':' characters in variable/function names It is becomming increasingly clear we need to find a way to show what is/is not an override in our syntax. We need to do this in a way which is clear to users, readable and in a way we can transition to. The most effective way I've found to this is to use the ":" charater to directly replace "_" where an override is being specified. This includes "append", "prepend" and "remove" which are effectively special override directives. This patch simply adds the character to the parser so bitbake accepts the value but maps it back to "_" internally so there is no behaviour change. This change is simple enough it could potentially be backported to older version of bitbake meaning layers using the new syntax/markup could work with older releases. Even if other no other changes are accepted at this time and we don't backport, it does set us on a path where at some point in future we could require a more explict syntax. I've tested this patch by converting oe-core/meta-yocto to the new syntax for overrides (9000+ changes) and then seeing that builds continue to work with this patch. (Bitbake rev: 0dbbb4547cb2570d2ce607e9a53459df3c0ac284) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-09cloud-init: fix usrmerge QA error:Martin Jansa
* respect udevdir variable * with usrmerge cloud-init triggers QA error: ERROR: cloud-init-20.3-r0 do_package_qa: QA Issue: cloud-init package is not obeying usrmerge distro feature. /lib should be relocated to /usr. [usrmerge] ERROR: cloud-init-20.3-r0 do_package_qa: QA run found fatal errors. Please consider fixing them. because of: /lib/udev/rules.d/66-azure-ephemeral.rules Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-09cloud-init: add dependency on systemd to fix installed-vs-shipped QA issueMartin Jansa
* without systemd in RSS, setup.py will fail to call: "pkg-config systemd --variable=systemdsystemunitdir" and then clound-init might fail with: ERROR: cloud-init-20.3-r0 do_package: QA Issue: cloud-init: Files/directories were installed but not shipped in any package: /lib/systemd /lib/systemd/system-generators /lib/systemd/system /lib/systemd/system-generators/cloud-init-generator /lib/systemd/system/cloud-final.service /lib/systemd/system/cloud-init.service /lib/systemd/system/cloud-config.target /lib/systemd/system/cloud-init.target /lib/systemd/system/cloud-init-local.service /lib/systemd/system/cloud-config.service Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. cloud-init: 10 installed and not shipped files. [installed-vs-shipped] when systemd on host or in the systemd fallback uses different systemdsystemunitdir value than what OE packages with: FILES_${PN}-systemd += "${systemd_unitdir}/*" setup.py fallback: def pkg_config_read(library, var): fallbacks = { 'systemd': { 'systemdsystemunitdir': '/lib/systemd/system', 'systemdsystemgeneratordir': '/lib/systemd/system-generators', } } .. ubuntu: meta-virtualization$ pkg-config systemd --variable=systemdsystemunitdir /lib/systemd/system OE (with usrmerge in DISTRO_FEATURES): cloud-init/20.3-r0$ pkg-config systemd --variable=systemdsystemunitdir /usr/lib/systemd/system Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-05guest: import cloud-init from meta-openstackBruce Ashfield
Bringing cloud-init from meta-openstack into meta-virtualization to make it more visible/obvious for use with Xen and k*s images. Not only is this an import, it is a significant update to the package and the way it is built. Out of the box, it installs either systemd or sysvinit startup services, templates and the main script/binary. It is not expected that this will be useful out of the box, but will need to be bbappended and have variables added to the main recipe to make it flexible for more use cases. But we can't gather those use cases, without the package being available, so we integrate this as a starting point. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>