Merge ~paelzer/ubuntu/+source/libvirt:lp-1899180-flaky-smoke-lxc-FOCAL into ubuntu/+source/libvirt:ubuntu/focal-devel

Proposed by Christian Ehrhardt 
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: dc7889e974bfb56ffa38aff5380486dea5a8777b
Merged at revision: dc7889e974bfb56ffa38aff5380486dea5a8777b
Proposed branch: ~paelzer/ubuntu/+source/libvirt:lp-1899180-flaky-smoke-lxc-FOCAL
Merge into: ubuntu/+source/libvirt:ubuntu/focal-devel
Diff against target: 87 lines (+41/-6)
3 files modified
debian/changelog (+9/-0)
debian/tests/control (+1/-1)
debian/tests/smoke-lxc (+31/-5)
Reviewer Review Type Date Requested Status
Robie Basak sru Approve
Canonical Server Pending
git-ubuntu developers Pending
Review via email: mp+395009@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Robie Basak (racb) wrote :

Matches Hirsute upload. Since Hirsute isn't uploaded yet (as it was pending review), shall I leave it to you to upload all of these, and then all I need to do is check the upload matches these MPs and then let the SRU through?

review: Approve (sru)
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I've uploaded Hirsute - after waiting a bit (build and some tests at least) I'll also upload these to the SRU queue.
I'd then ping you to get them processed - thanks in advance.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

To ssh://git.launchpad.net/~usd-import-team/ubuntu/+source/libvirt
 * [new tag] upload/6.0.0-0ubuntu8.6 -> upload/6.0.0-0ubuntu8.6

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading libvirt_6.0.0-0ubuntu8.6.dsc: done.
  Uploading libvirt_6.0.0-0ubuntu8.6.debian.tar.xz: done.
  Uploading libvirt_6.0.0-0ubuntu8.6_source.buildinfo: done.
  Uploading libvirt_6.0.0-0ubuntu8.6_source.changes: done.
Successfully uploaded packages.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index c4f2b0d..e043ce2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
1libvirt (6.0.0-0ubuntu8.6) focal; urgency=medium
2
3 * Improve flaky smoke-lxc test (LP: #1899180)
4 - d/t/control, d/t/smoke-lxc: retry service restart and skip test if
5 failing; This was flaky on some release/architectures
6 - d/t/smoke-lxc: retry check_domain being flaky on arm64
7
8 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Tue, 08 Dec 2020 15:09:17 +0100
9
1libvirt (6.0.0-0ubuntu8.5) focal; urgency=medium10libvirt (6.0.0-0ubuntu8.5) focal; urgency=medium
211
3 * d/p/ubuntu/lp-1887490-*: add named types and definitions for EPYC-Rome12 * d/p/ubuntu/lp-1887490-*: add named types and definitions for EPYC-Rome
diff --git a/debian/tests/control b/debian/tests/control
index 92766be..065bc8e 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -9,7 +9,7 @@ Restrictions: allow-stderr, isolation-container
99
10Tests: smoke-lxc10Tests: smoke-lxc
11Depends: libvirt-daemon-system, libvirt-daemon-driver-lxc, libvirt-clients, libxml2-utils11Depends: libvirt-daemon-system, libvirt-daemon-driver-lxc, libvirt-clients, libxml2-utils
12Restrictions: allow-stderr, needs-root, isolation-machine12Restrictions: allow-stderr, needs-root, isolation-machine, skippable
1313
14Tests: build-test14Tests: build-test
15Depends: libvirt-dev, build-essential, pkg-config15Depends: libvirt-dev, build-essential, pkg-config
diff --git a/debian/tests/smoke-lxc b/debian/tests/smoke-lxc
index 081854a..344c000 100755
--- a/debian/tests/smoke-lxc
+++ b/debian/tests/smoke-lxc
@@ -16,10 +16,36 @@ cleanup()
16 fi16 fi
17}17}
1818
19try_check_domain()
20{
21 for _ in $(seq 10); do
22 check_domain && return
23 sleep 2s
24 done
25 echo "Known to be unreliable on test infrastructure - skipping"
26 exit 77
27}
28
19check_domain()29check_domain()
20{30{
21 virsh list | grep -qs "${DOMAIN}[[:space:]]\+running"31 rc=0
22 virsh lxc-enter-namespace --noseclabel ${DOMAIN} /bin/ls /bin/ls32 virsh list | grep -qs "${DOMAIN}[[:space:]]\+running"
33 rc=$((rc+$?))
34 virsh lxc-enter-namespace --noseclabel ${DOMAIN} /bin/ls /bin/ls
35 rc=$((rc+$?))
36 return $rc
37}
38
39try_restart_libvirtd()
40{
41 for _ in $(seq 10); do
42 systemctl restart libvirtd && return
43 sleep 2s
44 done
45 # This turned out to be flaky, non reproducible outside of LP-infra and
46 # is not what we want to test, Skip the test in this case
47 echo "Restart failed while checking for container-survival-through restart - skipping".
48 exit 77
23}49}
2450
25trap cleanup EXIT51trap cleanup EXIT
@@ -35,10 +61,10 @@ rm -f /var/log/libvirt/lxc/sl.log
35virsh start ${DOMAIN}61virsh start ${DOMAIN}
36# Check virtlogd is running62# Check virtlogd is running
37grep -qs "starting up" /var/log/libvirt/lxc/sl.log63grep -qs "starting up" /var/log/libvirt/lxc/sl.log
38check_domain64try_check_domain
39# Make sure a restart doesn't termiante the domain65# Make sure a restart doesn't termiante the domain
40systemctl restart libvirtd66try_restart_libvirtd
41check_domain67try_check_domain
42virsh destroy ${DOMAIN} || true68virsh destroy ${DOMAIN} || true
43virsh undefine ${DOMAIN}69virsh undefine ${DOMAIN}
44CLEANED_UP=170CLEANED_UP=1

Subscribers

People subscribed via source and target branches