~samkenx/cloud-init:main

Last commit made on 2021-12-16
Get this branch:
git clone -b main https://git.launchpad.net/~samkenx/cloud-init
Only SamKenXStream can upload to this branch. If you are SamKenXStream please log in for upload directions.

Branch merges

Branch information

Name:
main
Repository:
lp:~samkenx/cloud-init

Recent commits

a97fd06... by James Falcon

Add .git-blame-ignore-revs (#1161)

So git doesn't use formatting changes for git blame

bae9b11... by James Falcon

Adopt Black and isort (SC-700) (#1157)

Applied Black and isort, fixed any linting issues, updated tox.ini
and CI.

2bcf4fa... by James Falcon

Include dpkg frontend lock in APT_LOCK_FILES (#1153)

3da3bda... by Chris Patterson <email address hidden>

tests/cmd/query: fix test run as root and add coverage for defaults (#1156)

test_handle_args_error_on_invalid_vaname_paths() would fail when run
as root due to invocation of load_userdata() on the default user/vendor
data locations under the instance link.

- Mock load_userdata() for this test case to avoid loads.
- Update _setup_paths() to configure cloud_dir in temporary location.
- Add new test case to verify that the default locations are loaded
  when unspecified.

LP: #1825027

Signed-off-by: Chris Patterson <email address hidden>

9a6e65a... by James Falcon

Schema processing changes (SC-676) (#1144)

* Use proper logging
* Add parsing for patternProperties
* Add label to annotate patternProperties
* Log warning if schema parsing fails during metaschema processing
* Some schema test fixes

3571170... by Brett Holman <email address hidden>

Add dependency workaround for impish in bddeb (#1148)

dh_systemd is now included in the default helper,
no need to specify it anymore for impish

3303b70... by Gonéri Le Bouder

netbsd: install new dep packages (#1151)

- netifaces
- jsonschema

f4692c5... by Gonéri Le Bouder

find_devs_with_openbsd: ensure we return the last entry (#1149)

`sysctl -n hw.disknames` returns a trailing `\n`. We need to clean
this up. In addition, the criteria matching system is a source of
problem because:

- we don't have a way to look up the label of the partition
- we've got situation where an ISO image can be exposed through a virtio
  block device.

So we just totally ignore the value of `criteria`. We end-up with a
slightly longer loop of mount-retry. But this way we're sure we don't
miss a configuration disk.

Tested on Kubvirt with the help of Brady Pratt @jbpratt.

e963426... by Chris Patterson <email address hidden>

sources/azure: remove unnecessary hostname bounce (#1143)

Thanks to [1], the hostname is set prior to network bring-up.

The Azure data source has been bouncing the hostname during
setup(), occurring after the hostname has already been
properly configured.

Note that this doesn't prevent leaking the image's hostname
during Azure's _get_data() when it brings up ephemeral DHCP.
However, as are not guaranteed to have the hostname metadata
available from a truly "local" source, this behavior is to
be expected unless we disable `send host-name` from dhclient
config.

[1]: https://github.com/canonical/cloud-init/commit/133ad2cb327ad17b7b81319fac8f9f14577c04df

Signed-off-by: Chris Patterson <email address hidden>

2473959... by Gonéri Le Bouder

find_devs/openbsd: accept ISO on disk (#1132)

When the metadata is an ISO image and is exposed through a disk,
the device is called `/dev/sd?a` internally. For instance `/dev/sd1a`.

It can then be mounted with `mount_cd9660 /dev/sd1a /mnt`.

Metadata in the FAT32 format are exposed as `/dev/sd?i`.

With this change, we try to mount `/dev/sd?a` in addition to `/dev/sd?i`.

Closes: https://github.com/ContainerCraft/kmi/issues/12