/srv/irclogs.ubuntu.com/2022/02/02/#cloud-init.txt

blackboxswminor fix for jammy image support in pycloudlib https://github.com/canonical/pycloudlib/pull/180 for CI breakage00:29
ubottuPull 180 in canonical/pycloudlib "azure: add jammy daily image support" [Open]00:29
jbgblackboxsw: thanks, the connectivity_url solved it02:05
slingamni'm on ubuntu focal and i'm trying to run the cloud-init integration tests08:12
slingamni created a virtualenv and installed pycloudlib from pip, it fetched pycloudlib-18.8.tar.gz08:13
slingamnbut then it fails because it can't find python-simplestreams08:13
slingamni was able to install the tarball of simplestreams from launchpad: https://launchpad.net/simplestreams/trunk/0.1.0/+download/simplestreams-0.1.0.tar.gz08:32
slingamnthe version of pycloudlib available from pip doesn't seem to expose the members expected by the integration tests, e.g. `from pycloudlib import LXDContainer` fails09:18
slingamni tried installing the master branch from github here: https://github.com/canonical/pycloudlib09:19
slingamnbut now i've got a dependency problem i don't understand:09:19
slingamnerror: cryptography 36.0.1 is installed but cryptography<=3.4.7,>=3.2.1 is required by {'oci'}09:19
jbgseems pretty clear doesn't it?13:57
jbgoce wants `cryptography` no newer than 3.4.713:57
jbgyou have 36.0.113:57
jbg36 is bigger than 313:58
=== rharper_ is now known as rharper
smoserslingamn: well i am able to build the environment with:15:31
smoser ./tools/tox-venv integration-tests15:32
smoser(fails to run, but i think that is the intended way to build the env)15:32
blackboxswslingamn: beyond my pip outofdate comment: smoser's reference to  ./tools/tox-venv integration-tests should setup the right env. You'll need to additionally/minimally create a ~/.config/pycloudlib.toml file (or provide PYCLOUDLIB_CONFIG=path_to_your_pycloudlib.toml)  that looks like this https://github.com/canonical/pycloudlib/blob/main/pycloudlib.toml.template21:16
blackboxswGenerally `tox -re integration-tests`should be pulling in all the specific dependencies and versions that are needed so you don't get hit by virtualenv conflicts I hope.21:21
=== CodeMouse92 is now known as Guest1476
=== Guest1476 is now known as CodeMouse92
blackboxswinteresting:  seeing strange CI failures using pycloudlib on LXD containers where our logging looks like it is doing the right thing on the instance, yet the files are untouched 21:49
blackboxsw`2022-02-02 21:42:47 INFO      pycloudlib.instance:instance.py:183 executing: sudo -- sh -c 'mv /var/tmp/a2551de0-9eb7-4100-be66-24b34e2b492a.tmp /etc/cloud/cloud.cfg.d/99-detect-lxd.cfg'.`  21:49
blackboxswyet /var/tmp/a2551de0-9eb7-4100-be66-24b34e2b492a.tmp still exists on the test instance21:49
blackboxswlooks like we don't check result.ok there on our execute call. I bet we can pull on this string to fix whatever is affecting CI failures there.21:54
blackboxswheh: "mv: cannot create regular file '/etc/cloud/cloud.cfg.d/99-detect-lxd.cfg': Permission denied"21:55
blackboxswokey dokey will have an integration test fix in a min21:55

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!