<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/tests/cloud_tests/platforms, branch crux</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=crux</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=crux'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/'/>
<updated>2018-07-27T16:04:08+00:00</updated>
<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>
<entry>
<title>tests: fix run_tree and bddeb</title>
<updated>2018-03-15T16:39:32+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-03-15T16:39:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=2f5d4cebb243cf2f30c665f034668ba4b14178f9'/>
<id>urn:sha1:2f5d4cebb243cf2f30c665f034668ba4b14178f9</id>
<content type='text'>
This was broken probably when we inserted the ssh keys into Platform.
  tox -e citest tree_run
and
  tox -e citest bddeb

would fail with KeyError in Platform.init due to lack of a data_dir.

Also here are a few fixes found from attempting to make it work.
</content>
</entry>
<entry>
<title>tests: Fix some warnings in tests that popped up with newer python.</title>
<updated>2018-03-15T15:45:12+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-03-15T15:45:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=bef2f2c945fdee4a1141c3177b3e48b1537027e4'/>
<id>urn:sha1:bef2f2c945fdee4a1141c3177b3e48b1537027e4</id>
<content type='text'>
When running 'tox -e pylint' on a bionic system (python 3.6.4) I started
seeing errors today like:
  tests/cloud_tests/platforms/__init__.py:5: [E0401(import-error), ]
      Unable to import 'tests.cloud_tests.platforms.ec2'

The fix for those first errors was simply to create the __init__.py.
The second set of changes fixes fallout found from actually now having
pylint properly run on more of the cloud_tests.
</content>
</entry>
<entry>
<title>tests: add support for logs with lxd from snap and future lxd 3.</title>
<updated>2018-02-12T15:53:49+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-01-26T21:00:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=f576b2a24b8014e91087933d19a7a0d396787c30'/>
<id>urn:sha1:f576b2a24b8014e91087933d19a7a0d396787c30</id>
<content type='text'>
This puts in place detection for if 'show-log' will work with lxc
client, and uses that if present. The 'lxc console --show-log' is
not expected to work until lxd/liblxc3.0. That should come in a
few months. The hope is that when that function arrives, this
code will move over to using it.

For other scenarios (all current lxd installs) this will now
support getting logs from a snap installed lxd or a package installed
lxd via the old 'lxc.console.logfile'.

If installed from snap, a platform error will be raised until
the user does:
   sudo mkdir --mode=1777 -p /var/snap/lxd/common/consoles

LP: #1745663
</content>
</entry>
<entry>
<title>tests: Collect script output as binary, collect systemd journal, fix lxd.</title>
<updated>2018-01-25T19:26:34+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-01-25T19:26:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=bc84f5023f795c261e32cf0690b2d29e12cfaedd'/>
<id>urn:sha1:bc84f5023f795c261e32cf0690b2d29e12cfaedd</id>
<content type='text'>
This adds collection a gzip compressed systemd journal on systemd systems.
The file can later be reviewed with:
  zcat system.journal.gz &gt; system.journal
  journalctl --file=system.journal [-o short-monotonic ..]

To support this:
  * modify test harness infrastructure to not assume content is utf-8.
  * fix lxd platform to support make '_execute' return bytes rather
    than a string. https://github.com/lxc/pylxd/issues/268

Also switched the base collectors to use /bin/sh as others already did.
</content>
</entry>
<entry>
<title>tests: Fix EC2 Platform to return console output as bytes.</title>
<updated>2018-01-24T02:05:21+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@ubuntu.com</email>
</author>
<published>2018-01-19T14:43:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=32a6a1764e902c31dd3af9b674cea14cd6501187'/>
<id>urn:sha1:32a6a1764e902c31dd3af9b674cea14cd6501187</id>
<content type='text'>
The EC2 test platform uses boto, and boto decodes console output
with decode('utf-8', 'replace). It is known that Ubuntu consoles
contain non-utf8 characters, making this call lossy.

The change here is to patch the boto session to include a OutputBytes
entry in the console_output response, and then to utilize that in
console_log.

More information on problem and solution at:
   https://github.com/boto/botocore/issues/1351
</content>
</entry>
</feed>
