<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/cloudinit/config/tests, branch 20.4</title>
<subtitle> (mirror of https://github.com/marekm72/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=20.4</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=20.4'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/'/>
<updated>2020-11-20T20:59:51+00:00</updated>
<entry>
<title>Support configuring SSH host certificates. (#660)</title>
<updated>2020-11-20T20:59:51+00:00</updated>
<author>
<name>Jonathan Lung</name>
<email>lungj@users.noreply.github.com</email>
</author>
<published>2020-11-20T20:59:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=66b4be8b6da188a0667bd8c86a25155b6f4f3f6c'/>
<id>urn:sha1:66b4be8b6da188a0667bd8c86a25155b6f4f3f6c</id>
<content type='text'>
Existing config writes keys to /etc/ssh after deleting files matching
a glob that includes certificate files. Since sshd looks for
certificates in the same directory as the keys, a host certificate
must be placed in this directory. This update enables the certificate's
contents to be specified along with the keys.

Co-authored-by: jonathan lung &lt;lungj@heresjono.com&gt;
Co-authored-by: jonathan lung &lt;jlung@kepler.space&gt;</content>
</entry>
<entry>
<title>cc_mounts: correctly fallback to dd if fallocate fails (#585)</title>
<updated>2020-10-20T21:13:37+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-10-20T21:13:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=5f8a2bbc5f26c7abafbc9bd3d1b1b655ffdcc1ae'/>
<id>urn:sha1:5f8a2bbc5f26c7abafbc9bd3d1b1b655ffdcc1ae</id>
<content type='text'>
`create_swap()` was previously catching and not re-raising the
ProcessExecutionError that indicated swap creation failure; this meant
that the fallback logic could never be triggered.

This commit adds the required re-raise (as well as removing a duplicated
log message).

LP: #1897099</content>
</entry>
<entry>
<title>Enable use of the caplog fixture in pytest tests, and add a cc_final_message test using it (#461)</title>
<updated>2020-06-30T17:17:40+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-06-30T17:17:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=66e114a660c53400e389f119781f378311b65108'/>
<id>urn:sha1:66e114a660c53400e389f119781f378311b65108</id>
<content type='text'>
caplog is only available in pytest itself from 3.0 onwards. In xenial, we only have pytest 2.8.7. However, in xenial we do have pytest-catchlog available (as python3-pytest-catchlog), so we use that where appropriate.</content>
</entry>
<entry>
<title>cc_final_message: don't create directories when writing boot-finished (#445)</title>
<updated>2020-06-22T14:30:05+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-06-22T14:30:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=0755cff078d5931e1d8e151bdcb84afb92bc0f02'/>
<id>urn:sha1:0755cff078d5931e1d8e151bdcb84afb92bc0f02</id>
<content type='text'>
If the instance symlink doesn't exist, then we shouldn't create a
directory in its place, because that breaks future boots.

LP: #1883903</content>
</entry>
<entry>
<title>Move subp into its own module. (#416)</title>
<updated>2020-06-08T16:49:12+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2020-06-08T16:49:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=3c551f6ebc12f7729a2755c89b19b9000e27cc88'/>
<id>urn:sha1:3c551f6ebc12f7729a2755c89b19b9000e27cc88</id>
<content type='text'>
This was painful, but it finishes a TODO from cloudinit/subp.py.

It moves the following from util to subp:
  ProcessExecutionError
  subp
  which
  target_path

I moved subp_blob_in_tempfile into cc_chef, which is its only caller.
That saved us from having to deal with it using write_file
and temp_utils from subp (which does not import any cloudinit things now).

It is arguable that 'target_path' could be moved to a 'path_utils' or
something, but in order to use it from subp and also from utils,
we had to get it out of utils.</content>
</entry>
<entry>
<title>cc_grub_dpkg: determine idevs in more robust manner with grub-probe (#358)</title>
<updated>2020-06-01T21:55:40+00:00</updated>
<author>
<name>Matthew Ruffell</name>
<email>github@ruffell.nz</email>
</author>
<published>2020-06-01T21:55:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=fc07d633f7cb694423349a2c4b10c91c4b4981a2'/>
<id>urn:sha1:fc07d633f7cb694423349a2c4b10c91c4b4981a2</id>
<content type='text'>
Replace the hardcoded list of devices with a more robust way of determining
the device which grub is installed to.

We use grub-probe to fetch the underlying disk the /boot directory is
located on, and attempt to match the disk with its /dev/disk/by-id value.
If no such /dev/disk/by-id/ value exists, we fallback to the plain disk
name.

The changes are robust to unstable kernel device names and ordering, and use
/dev/disk/by-id values to populate grub-pc/install_devices where possible.

LP: #1877491</content>
</entry>
<entry>
<title>cc_snap: validate that assertions property values are strings (#370)</title>
<updated>2020-05-21T15:16:35+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-05-21T15:16:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=98a6d9a0da82a764943c9495d7f21f3acc5ccd05'/>
<id>urn:sha1:98a6d9a0da82a764943c9495d7f21f3acc5ccd05</id>
<content type='text'>
And add an example of providing a list of assertions.</content>
</entry>
<entry>
<title>test_resolv_conf: refresh stale comment (#374)</title>
<updated>2020-05-20T02:52:18+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-05-20T02:52:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=fae90f14f0668a673e02bc7313bc84828e7cae71'/>
<id>urn:sha1:fae90f14f0668a673e02bc7313bc84828e7cae71</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cc_snap: apply validation to snap.commands properties (#364)</title>
<updated>2020-05-18T17:30:27+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-05-18T17:30:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=8bcf1c069d8ddf28898342e541254bdeb54445df'/>
<id>urn:sha1:8bcf1c069d8ddf28898342e541254bdeb54445df</id>
<content type='text'>
Specifically, ensure that given values are either strings, or arrays of strings.</content>
</entry>
<entry>
<title>cloudinit: minor pylint fixes (#360)</title>
<updated>2020-05-14T19:39:19+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-05-14T19:39:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=09492b1d0f4b1826a7a98709c61d48bf14a1ec64'/>
<id>urn:sha1:09492b1d0f4b1826a7a98709c61d48bf14a1ec64</id>
<content type='text'>
We recently discovered that pylint is failing to report some errors when
invoked across our entire codebase (see
https://github.com/PyCQA/pylint/issues/3611).  I've run pylint across
every Python file under cloudinit/[0], and this commit fixes the issues
so-discovered.

[0] find cloudinit/ -name "*.py" | xargs -n 1 -t .tox/pylint/bin/python -m pylint</content>
</entry>
</feed>
