Last commit made on 2022-11-23
Get this branch:
git clone -b 22.4.x
Members of cloud-init Commiters can upload to this branch. Log in for directions.

Branch merges

Branch information


Recent commits

606a0a7... by Alberto Contreras

Release 22.4.2

Bump the version in cloudinit/ to 22.4.2 and
update ChangeLog.

79ec927... by Alberto Contreras

status: handle ds not defined in status.json (#1876)

Handles any situation where `status.json` does not yet contain
datasource information, by gracefully fulfilling a
`datasource=None` in `StatusDetails`.

LP: #1997559

d51bfa4... by James Falcon

Release 22.4.1

Bump the version in cloudinit/ to 22.4.1 and
update ChangeLog.

25f8d83... by Anh Vo (MSFT)

net: skip duplicate mac check for netvsc nic and its VF (#1853)

When accelerated network is enabled on Azure, the host presents
two network interfaces with the same mac address to the VM:
a synthetic nic (netvsc) and a VF nic, which is enslaved to the synthetic

The net module is already excluding slave nics when enumerating
interfaces. However, if cloud-init starts enumerating after the kernel
makes the VF visible to userspace, but before the enslaving has finished,
cloud-init will see two nics with duplicate mac.

This change will skip the duplicate mac error if one of the two nics
with duplicate mac is a netvsc nic

LP: #1844191

1cfca96... by Chad Smith

ChangeLog: whitespace cleanup (#1850)

bc1b78b... by Chad Smith

changelog: capture 22.3.1-4 releases

Manually capture in changelog published releases and security fixes.

85e86e5... by James Falcon

Release 22.4 (#1832)

Bump the version in cloudinit/ to 22.4 and
update ChangeLog.

fe115f9... by Alberto Contreras

test: fix pro integration test

Ensure Pro instances are detached before the test run and
that the test only runs on LTS releases.

As ua.UserFacingError is not properly converted to str,
manually pick its msg to provide the user a more informative
logging msg.

7b04985... by Dermot Bradley

cc_disk_setup: pass options in correct order to utils (#1829)

When testing cc_disk_setup it failed with the following error:

  Unexpected error while running command.
  Command: ['/sbin/mkfs.ext4', '/dev/sdc1', '-L', 'disk3-fs2']
  Exit code: 1
  Reason: -
  Stderr: mke2fs 1.46.5 (30-Dec-2021)
          mkfs.ext4: invalid blocks '-L' on device '/dev/sdc1'

The manpages for mkfs.ext4, mkfs.xfs, and mkswap all indicate that
options should be passed *before* the device name but cc_disk_setup
passed them after the device name - in the case of mkfx.ext4 a
"fs-size" can be passed after the device and that is what the
"-L disk3-fs2" option is being misintepreted as.

This PR ensures that the device name is passed last. The underlying
issue appears to be due to a different in behaviour between glibc and
musl where glibc "helps" applications by re-ordered command-line
parameters by musl does not[1] as it sticks to POSIX spec.

This PR also modifies 2 testcases to cater for this change in the code,
adds a note to disk_setup to clarify that when creating a swap partition
a fs_entry also needs to be specified so that mkswap is run, adds to the
examples how to specify a non-default partition type (i.e. for swap),
and modifies the description for disk_setup to clarify this.


fe3dbc2... by Chad Smith

tests: text_lxd basic_preseed verify_clean_log (#1826)