Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
tests: add basic lxd test #3372
Conversation
| + | ||
| + # FIXME: workaround for missing squashfuse | ||
| + lxd.lxc exec my-ubuntu apt update | ||
| + lxd.lxc exec my-ubuntu apt install squashfuse |
mvo5
May 22, 2017
Collaborator
Well, maybe, it is only needed if more dependencies pulled in but still a good idea, so +1
fgimenez
approved these changes
May 22, 2017
Supernice, thanks for this! Just a question about big downloads
| + echo "Create a trivial container using the lxd snap" | ||
| + wait_for_lxd | ||
| + lxd init --auto | ||
| + lxd.lxc launch ubuntu:16.04 my-ubuntu |
fgimenez
May 22, 2017
Contributor
Pardon my ignorance but, will this pull the container? If so and the download is big we could modify the images to include it from the beginning.
mvo5
May 22, 2017
Collaborator
Yes, it will download an image and the image is big(ish). So I'm happy about any suggestions that can improve the speed here :)
fgimenez
May 31, 2017
Contributor
@mvo5 sorry for the very late response, IMO it's tricky because, given that we use lxd from the snap, if we initialize the linode image with it and put a container image in place, when the suite is initialized all the previous state would be whipped.
One possible solution could be to make the container image available at some well-known location in the linode image and, after the lxd snap is installed during the test, move the container image files to /var/snap/lxd/common/lxd/images, so that we don't need to download it during the test, do you think that would be a good approach?
mvo5
added some commits
May 23, 2017
| + | ||
| +# only run this on ubuntu, we need a reasonable new kernel | ||
| +systems: [-debian-*] | ||
| + |
sergiocazzolato
May 31, 2017
Contributor
Should you need to run on restore stop and delete for the container?
|
@mvo5 what's the state of this? it seems lxd doesn't work in the autopkgtests, the spread ones seems unrelated but not sure |
mvo5
added some commits
Jun 2, 2017
codecov-io
commented
Jun 6, 2017
•
Codecov Report
@@ Coverage Diff @@
## master #3372 +/- ##
==========================================
+ Coverage 75.63% 75.64% +<.01%
==========================================
Files 407 407
Lines 35034 35034
==========================================
+ Hits 26499 26502 +3
+ Misses 6654 6652 -2
+ Partials 1881 1880 -1
Continue to review full report at Codecov.
|
mvo5
added some commits
Jun 6, 2017
| +summary: Ensure that lxd works | ||
| + | ||
| +# only run this on ubuntu, we need a reasonable new kernel | ||
| +systems: [-debian-*] |
zyga
Jun 8, 2017
Contributor
You need to tweak this to exclude fedora and openSUSE though ideally only after checking it really doesn't work there
|
The test failures (in travis and xenial-i386 at least) are germane. |
chipaca
added
Decaying
and removed
Decaying
labels
Jul 10, 2017
mvo5
added some commits
Jul 25, 2017
|
This is a huge download if I need to run the whole suite locally on qemu, it will take hours, perhaps this kind of tests could be just executed on linode or nightly. |
|
Closing for now until I find time to actually make the test work everywhere. |
mvo5
closed this
Aug 24, 2017
mvo5
reopened this
Aug 25, 2017
|
Reopening to get another full spread run after tweaking the test slightly. It should indeed go to the night suite as @sergiocazzolato suggested. |
mvo5
added some commits
Aug 25, 2017
|
This should work now #3815 is merged and we can install snaps that have bash completion files on core again. |
mvo5
added some commits
Aug 29, 2017
niemeyer
approved these changes
Aug 29, 2017
LGTM, but it's worth noticing that the new tests takes 2 to 3 minutes to run. We're back at 30+ minutes.
mvo5 commentedMay 22, 2017
This adds a test to ensure that the basic lxd functionality is available. It covers that lxd as a snap is functional and that snaps inside an lxd container can be used.