<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/tests/integration_tests, branch mergify/bp/circinus/pr-85</title>
<subtitle> (mirror of https://github.com/vyos/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=mergify%2Fbp%2Fcircinus%2Fpr-85</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=mergify%2Fbp%2Fcircinus%2Fpr-85'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/'/>
<updated>2022-02-14T15:51:03+00:00</updated>
<entry>
<title>tests: when generating crypted password, generate in target env (#1252)</title>
<updated>2022-02-14T15:51:03+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2022-02-14T15:51:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=17818549b3dda58a907ef44ed7de9f837ad66c3c'/>
<id>urn:sha1:17818549b3dda58a907ef44ed7de9f837ad66c3c</id>
<content type='text'>
There are inconsistencies for cryptographic libraries across
major distribution releases.

From a bionic host, which doesn't support yescrypt hashing scheme,
attempting run run crypt.crypt locally using a yescrypt hash
from a Jammmy /etc/shadow file will result in failure to produce an
encrypted password. For "unsupported" hash schemes, crypt.crypt
returns None.

To avoid inconsistencies of python cryptographic libs across Linux
releases, perform the password encryption on the system under test.</content>
</entry>
<entry>
<title>test_apt_security: azure platform has specific security URL overrides (#1263)</title>
<updated>2022-02-11T14:34:43+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2022-02-11T14:34:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=6dc67d732a92536dd42947af60cf4bfb25411489'/>
<id>urn:sha1:6dc67d732a92536dd42947af60cf4bfb25411489</id>
<content type='text'>
Delivered in /etc/cloud/cloud.cfg.d/90-azure.cfg</content>
</entry>
<entry>
<title>tests: lsblk --json output changes mountpoint key to mountpoinst [] (#1261)</title>
<updated>2022-02-10T22:37:17+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2022-02-10T22:37:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=deb3ae828ea88090931c4cfe47957ae044f18ca8'/>
<id>urn:sha1:deb3ae828ea88090931c4cfe47957ae044f18ca8</id>
<content type='text'>
Ubuntu Jammy output from lsblk --json now contains
'mountpoints': [...] instead of 'mountpoint' for children devs.

Let our integration test handle either case.</content>
</entry>
<entry>
<title>mounts: fix mount opts string for ephemeral disk (#1250)</title>
<updated>2022-02-10T22:09:03+00:00</updated>
<author>
<name>Chris Patterson</name>
<email>cpatterson@microsoft.com</email>
</author>
<published>2022-02-10T22:09:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=8d96687e558d87fd767bdba9dff71e406f9bcf39'/>
<id>urn:sha1:8d96687e558d87fd767bdba9dff71e406f9bcf39</id>
<content type='text'>
Fixes the spaces introduced in #1213

Signed-off-by: Chris Patterson &lt;cpatterson@microsoft.com&gt;</content>
</entry>
<entry>
<title>Shell script handlers by freq (#1166)</title>
<updated>2022-02-10T21:49:38+00:00</updated>
<author>
<name>Chris Lalos</name>
<email>chris.lalos@gmail.com</email>
</author>
<published>2022-02-10T21:49:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=600b870b399feb9e072748e07ea223556261fbe7'/>
<id>urn:sha1:600b870b399feb9e072748e07ea223556261fbe7</id>
<content type='text'>
Handlers for per-boot/per-instance/per-once multipart MIME

Add handlers for adding scripts to userdata that can be run at various
frequencies. Scripts of type x-shellscript-per-boot,
x-shellscript-per-instance, or x-shellscript-per-once can be added
to a multipart MIME userdata message as part of instance userdata.
These scripts will then be added to the appropriate per-boot,
per-instance, or per-once directory in /var/lib/cloud/scripts/
during processing of userdata.</content>
</entry>
<entry>
<title>cloud-id: publish /run/cloud-init/cloud-id-&lt;cloud-type&gt; files (#1244)</title>
<updated>2022-02-10T20:18:00+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2022-02-10T20:18:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=217ef6ba6c52788f4363b998b6da08863fea5cd9'/>
<id>urn:sha1:217ef6ba6c52788f4363b998b6da08863fea5cd9</id>
<content type='text'>
Once a valid datasource is detected, publish the following artifacts
to expedite cloud-identification without having to invoke cloud-id from
shell scripts or sheling out from python.
    
These files can also be relied on in systemd ConditionPathExists
directives to limit execution of services and units to specific
clouds.
    
/run/cloud-init/cloud-id:
 - A symlink with content that is the canonical cloud-id of the
   datasource detected. This content is the same lower-case value
   as the output of /usr/bin/cloud-id.

/run/cloud-init/cloud-id-&lt;canonical-cloud-id&gt;:
 - A single file which will contain the canonical cloud-id encoded
   in the filename</content>
</entry>
<entry>
<title>tests: do not check instance.pull_file().ok() (#1246)</title>
<updated>2022-02-07T14:46:16+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2022-02-07T14:46:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=a804c108f51c806f1aa91a127433fcc3d8f8a78f'/>
<id>urn:sha1:a804c108f51c806f1aa91a127433fcc3d8f8a78f</id>
<content type='text'>
Test pycloudlib's BaseInstance.pull_file doesn't return a Result
object. So we can't call ok() on the response in integration tests.

Leave the try/except handling as pull_file will raise an
IOError if there is an error connecting via paramiko's sftp.get.</content>
</entry>
<entry>
<title>testing: stop universally overwriting /etc/cloud/cloud.cfg.d (#1237)</title>
<updated>2022-02-03T22:05:02+00:00</updated>
<author>
<name>James Falcon</name>
<email>james.falcon@canonical.com</email>
</author>
<published>2022-02-03T22:05:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=aa47ec0ce020c56afb4308476a3b85254f15569d'/>
<id>urn:sha1:aa47ec0ce020c56afb4308476a3b85254f15569d</id>
<content type='text'>
As part of IN_PLACE testing, /etc/cloud/cloud.cfg.d get overwritten by
what's in the source tree. This can cause problems when the directory is
mounted in, because tests need the ability to modify files in
/etc/cloud. Attempting to 'lxc file push'  instead will fail on LXD VMs
because the LXD agent isn't available yet.

If such functionality is desired, one can temporarily use the
'lxd_setup' mark while writing a test and push the files manually.</content>
</entry>
<entry>
<title>Integration test changes (#1240)</title>
<updated>2022-02-03T21:37:14+00:00</updated>
<author>
<name>James Falcon</name>
<email>james.falcon@canonical.com</email>
</author>
<published>2022-02-03T21:37:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=3f0918b57c6042de99da25bc6a9d120a074b8a8e'/>
<id>urn:sha1:3f0918b57c6042de99da25bc6a9d120a074b8a8e</id>
<content type='text'>
* Wrap the log fetching code in a try/except in case file is missing
* Stop checking NoCloud seed dir when testing datasource detection</content>
</entry>
<entry>
<title>integration: do not LXD bind mount /etc/cloud/cloud.cfg.d (#1234)</title>
<updated>2022-02-03T04:38:56+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2022-02-03T04:38:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=6ed3c5dfcd9392784d2199224ac7d28d1abfdf7b'/>
<id>urn:sha1:6ed3c5dfcd9392784d2199224ac7d28d1abfdf7b</id>
<content type='text'>
Since lxc bind mounts will be read-only as nobody:nogroup
we don't want to bind mount /etc/cloud/cloud.cfg.d into the
instance because some tests add artifacts to /etc/cloud/cloud.cfg.d.

Also make LXD push_file pull_file methods assert that the
file transfer was a success, otherwise we miss the root-cause
for test failures.

This resulted in failed Jenkins runs in test_lxd_discovery with a
symptom of NoCloud being detected instead of LXD datasource.
The root-case was that instance.file_push failed due to permission
errors for root on the bind mounted /etc/cloud/cloud.cfg.d.

Also bump pycloudlib commitish to get Azure Jammy image support.</content>
</entry>
</feed>
