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

Proposed by Christian Ehrhardt 
Status: Merged
Approved by: Christian Ehrhardt 
Approved revision: e252aec1fbd72282d74ab41f6689beb255640e83
Merged at revision: e252aec1fbd72282d74ab41f6689beb255640e83
Proposed branch: ~paelzer/ubuntu/+source/libvirt:lp-1899180-flaky-smoke-lxc-GROOVY
Merge into: ubuntu/+source/libvirt:ubuntu/groovy-devel
Diff against target: 85 lines (+39/-4)
3 files modified
debian/changelog (+9/-0)
debian/tests/control (+1/-1)
debian/tests/smoke-lxc (+29/-3)
Reviewer Review Type Date Requested Status
Robie Basak sru Approve
Canonical Server Pending
git-ubuntu developers Pending
Review via email: mp+395010@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.6.0-1ubuntu3.2 -> upload/6.6.0-1ubuntu3.2

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading libvirt_6.6.0-1ubuntu3.2.dsc: done.
  Uploading libvirt_6.6.0-1ubuntu3.2.debian.tar.xz: done.
  Uploading libvirt_6.6.0-1ubuntu3.2_source.buildinfo: done.
  Uploading libvirt_6.6.0-1ubuntu3.2_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 cdbae25..eacc9ef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
1libvirt (6.6.0-1ubuntu3.2) groovy; 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> Fri, 04 Dec 2020 08:12:02 +0100
9
1libvirt (6.6.0-1ubuntu3.1) groovy; urgency=medium10libvirt (6.6.0-1ubuntu3.1) groovy; urgency=medium
211
3 * d/p/ubuntu/lp-1901242-util-Fix-logic-in-virFileSetCOW.patch: fix dir pool12 * d/p/ubuntu/lp-1901242-util-Fix-logic-in-virFileSetCOW.patch: fix dir pool
diff --git a/debian/tests/control b/debian/tests/control
index e38fa30..e1856fd 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -19,7 +19,7 @@ Depends:
19 libvirt-daemon-driver-lxc,19 libvirt-daemon-driver-lxc,
20 libvirt-daemon-system,20 libvirt-daemon-system,
21 libxml2-utils,21 libxml2-utils,
22Restrictions: allow-stderr, needs-root, isolation-machine22Restrictions: allow-stderr, needs-root, isolation-machine, skippable
2323
24Tests: build-test24Tests: build-test
25Depends:25Depends:
diff --git a/debian/tests/smoke-lxc b/debian/tests/smoke-lxc
index ee29328..5713880 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{
31 rc=0
21 virsh list | grep -qs "${DOMAIN}[[:space:]]\+running"32 virsh list | grep -qs "${DOMAIN}[[:space:]]\+running"
33 rc=$((rc+$?))
22 virsh lxc-enter-namespace --noseclabel ${DOMAIN} /bin/ls /bin/ls34 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