<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/tests/cloud_tests/platforms, branch 20.1</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.1</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=20.1'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/'/>
<updated>2020-02-13T20:11:17+00:00</updated>
<entry>
<title>azurecloud: fix issues with instances not starting (#205)</title>
<updated>2020-02-13T20:11:17+00:00</updated>
<author>
<name>Ryan Harper</name>
<email>ryan.harper@canonical.com</email>
</author>
<published>2020-02-13T20:11:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=ecffd25df840277ab1fa7d5372659abe833cacbe'/>
<id>urn:sha1:ecffd25df840277ab1fa7d5372659abe833cacbe</id>
<content type='text'>
The azurecloud platform did not always start instances
during collect runs.  This was a result of two issues. First
the image class _instance method did not invoke the start()
method which then allowed collect stage to attempt to run
scripts without an endpoint.  Second, azurecloud used the
image_id as both an instance handle (which is typically
vmName in azure api) as well as an image handle (for image
capture).  Resolve this by adding a .vm_name property to
the AzureCloudInstance and reference this property in
AzureCloudImage.

Also in this branch

- Fix error encoding user-data when value is None
- Add additional logging in AzureCloud platform
- Update logging format to print pathname,funcName and line number
  This greatly eases debugging.

LP: #1861921</content>
</entry>
<entry>
<title>util: rename get_architecture to get_dpkg_architecture (#173)</title>
<updated>2020-01-16T18:30:12+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-01-16T18:30:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=651e24066ba4b9464c7843553f60d17a459cf06e'/>
<id>urn:sha1:651e24066ba4b9464c7843553f60d17a459cf06e</id>
<content type='text'>
This makes it clearer that we should only use this in code paths that
will definitely have dpkg available to them.

- Rename get_architecture -&gt; get_dpkg_architecture
- Add docstring to get_dpkg_architecture</content>
</entry>
<entry>
<title>cloud_tests: add azure platform support to integration tests</title>
<updated>2019-11-26T18:36:00+00:00</updated>
<author>
<name>ahosmanmsft</name>
<email>ahosman@microsoft.com</email>
</author>
<published>2019-11-26T18:36:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=aa3e4961ceae5a5c5b5cf13221b5f6721991fe75'/>
<id>urn:sha1:aa3e4961ceae5a5c5b5cf13221b5f6721991fe75</id>
<content type='text'>
Added Azure to cloud tests supporting upstream integration testing.

Implement the inherited platform classes, Azure configurations
to release/platform, and docs on how to run Azure CI.
</content>
</entry>
<entry>
<title>cloud_test/lxd: Retry container delete a few times</title>
<updated>2019-10-11T16:52:13+00:00</updated>
<author>
<name>Ryan Harper</name>
<email>ryan.harper@canonical.com</email>
</author>
<published>2019-10-11T16:52:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=823708ea031290c864e3aef67f60f6eb495f281d'/>
<id>urn:sha1:823708ea031290c864e3aef67f60f6eb495f281d</id>
<content type='text'>
LXD integration tests fail sometimes due to failure to delete the
container, usually related to ZFS backend.  This is a transient
issue unrelated to the test itself.  Teach LXD platform to retry
this a few times before returning an error.
</content>
</entry>
<entry>
<title>cloud_tests: updates and fixes</title>
<updated>2019-07-18T19:53:50+00:00</updated>
<author>
<name>Ryan Harper</name>
<email>ryan.harper@canonical.com</email>
</author>
<published>2019-07-18T19:53:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=a02c0c9aa24a16f1983a81fe5dbfadac3d7e0ad3'/>
<id>urn:sha1:a02c0c9aa24a16f1983a81fe5dbfadac3d7e0ad3</id>
<content type='text'>
- Update paramiko and cryptography module versions (2.4.2) to
  address issues with algo and deprecation warnings.
- Modify ssh keypair generation to work with updated paramiko
- tools/xkvm sync with newer version from curtin
- Update NoCloudKvm instance.py to work with updated xkvm
  - pass -name to instance, useful for debugging on shared host
  - Add cache_mode platform config; default to cache=none,aio=native
- Switch to yaml.safe_load() in platforms.py
</content>
</entry>
<entry>
<title>tests: improve LXDInstance trying to workaround or catch bug.</title>
<updated>2018-07-27T16:04:08+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-07-27T16:04:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=361ae34d3fd2f5784ddac23c6650ac5a8f2e14cd'/>
<id>urn:sha1:361ae34d3fd2f5784ddac23c6650ac5a8f2e14cd</id>
<content type='text'>
Described in bug 1783198 we have seen some transient failures when
using pylxd -&gt; lxd api.
This does:
 * adds a str() representation of LXDInstance
 * checks the value of the pylxd_container object on instantion
 * sets pylxd_container object to None on deletion.
 * adds retry logic to shutdown()
</content>
</entry>
<entry>
<title>cloud_tests: help pylint</title>
<updated>2018-05-17T15:57:37+00:00</updated>
<author>
<name>Ryan Harper</name>
<email>ryan.harper@canonical.com</email>
</author>
<published>2018-05-17T15:57:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=2dab7046f88e540836498b363c90ad46302a7cc4'/>
<id>urn:sha1:2dab7046f88e540836498b363c90ad46302a7cc4</id>
<content type='text'>
pylint missed finding a typo in the lxd platform because it could not
determine that the variable was being used was a string.  The variable
was set by loading a yaml file which pylint couldn't know that it
would be a string.  In these cases, we can be more explicit.
</content>
</entry>
<entry>
<title>tests: restructure SSH and initial connections</title>
<updated>2018-05-16T14:16:10+00:00</updated>
<author>
<name>Joshua Powers</name>
<email>josh.powers@canonical.com</email>
</author>
<published>2018-05-16T14:16:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=589b542bfb3b6630b931a506ca017635059cef1d'/>
<id>urn:sha1:589b542bfb3b6630b931a506ca017635059cef1d</id>
<content type='text'>
The SSH function was retrying and waiting for SSH for over an
hour when an SSH connection was failing to be established. This
reduces the amount of retries and time between each retry to
prevent tests from running for hours.

Also restructures how waiting for the system works: the system
will attempt to SSH up to the boot timeout time by catching
SSH connection failures and retrying until the timeout is
reached. If the limit is reached now an exception is thrown
to abort the test.

Drive by - this also fixes printing of the instance name when
collecting the console log, rather than showing a Python object
address.

Fixes LP: #1758409
</content>
</entry>
<entry>
<title>pylint: pay attention to unused variable warnings.</title>
<updated>2018-04-20T03:30:08+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-04-20T03:30:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=1081962eacf2814fea6f4fa3255c530de14e4a24'/>
<id>urn:sha1:1081962eacf2814fea6f4fa3255c530de14e4a24</id>
<content type='text'>
This enables warnings produced by pylint for unused variables (W0612),
and fixes the existing errors.
</content>
</entry>
<entry>
<title>tests: fix integration tests to support lxd 3.0 release</title>
<updated>2018-04-03T22:52:13+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2018-04-03T22:52:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=05926e48eae0fa70a26da6449617e04e87c4e704'/>
<id>urn:sha1:05926e48eae0fa70a26da6449617e04e87c4e704</id>
<content type='text'>
Integration tests previously had a logic path that was unexercised on
jenkins because we were on an older version of lxc. With an upgrade to lxd
version 3.0 we need to bump pylxd dependency pin and fix a typo in
integration tests which checked the lxd version.
</content>
</entry>
</feed>
