ubuntu_lxc - Failed setting up GPG keyring on X/ T variants

Bug #1916087 reported by Ian May
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Po-Hsu Lin

Bug Description

Seeing a failure in ubuntu_lxc.exercise

Running '/bin/sh /home/jenkins/autotest/client/tests/ubuntu_lxc/exercise'
PASS: lxc-tests: /usr/bin/lxc-test-apparmor
PASS: lxc-tests: /usr/bin/lxc-test-apparmor-mount
PASS: lxc-tests: /usr/bin/lxc-test-attach
PASS: lxc-tests: /usr/bin/lxc-test-automount
FAIL: lxc-tests: /usr/bin/lxc-test-autostart
---
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver.
Error creating container lxc-test-auto
FAIL
---
PASS: lxc-tests: /usr/bin/lxc-test-cgpath
PASS: lxc-tests: /usr/bin/lxc-test-checkpoint-restore
PASS: lxc-tests: /usr/bin/lxc-test-cloneconfig
PASS: lxc-tests: /usr/bin/lxc-test-clonetest
PASS: lxc-tests: /usr/bin/lxc-test-concurrent
PASS: lxc-tests: /usr/bin/lxc-test-config-jump-table
PASS: lxc-tests: /usr/bin/lxc-test-console
PASS: lxc-tests: /usr/bin/lxc-test-containertests
PASS: lxc-tests: /usr/bin/lxc-test-createconfig
PASS: lxc-tests: /usr/bin/lxc-test-createtest
PASS: lxc-tests: /usr/bin/lxc-test-cve-2019-5736
PASS: lxc-tests: /usr/bin/lxc-test-destroytest
PASS: lxc-tests: /usr/bin/lxc-test-device-add-remove
PASS: lxc-tests: /usr/bin/lxc-test-get_item
PASS: lxc-tests: /usr/bin/lxc-test-getkeys
PASS: lxc-tests: /usr/bin/lxc-test-list
PASS: lxc-tests: /usr/bin/lxc-test-locktests
PASS: lxc-tests: /usr/bin/lxc-test-lxc-attach
PASS: lxc-tests: /usr/bin/lxc-test-lxcpath
PASS: lxc-tests: /usr/bin/lxc-test-parse-config-file
PASS: lxc-tests: /usr/bin/lxc-test-raw-clone
PASS: lxc-tests: /usr/bin/lxc-test-reboot
PASS: lxc-tests: /usr/bin/lxc-test-saveconfig
PASS: lxc-tests: /usr/bin/lxc-test-shortlived
PASS: lxc-tests: /usr/bin/lxc-test-shutdowntest
PASS: lxc-tests: /usr/bin/lxc-test-snapdeps
PASS: lxc-tests: /usr/bin/lxc-test-snapshot
PASS: lxc-tests: /usr/bin/lxc-test-startone
PASS: lxc-tests: /usr/bin/lxc-test-state-server
PASS: lxc-tests: /usr/bin/lxc-test-symlink
FAIL: lxc-tests: /usr/bin/lxc-test-unpriv
---
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver.
Error creating container c1
c2 is not running
c1 is not running
Removing user `lxcunpriv' ...
Warning: group `lxcunpriv' has no more members.
Done.
FAIL

Revision history for this message
Ian May (ian-may) wrote : Re: ubuntu_lxc - Failed setting up GPG keyring

Seeing the failure in xenial/gcp 4.15.0-1092.105~16.04.1

summary: - ubuntu_lxc exercise Failed setting up GPG keyring
+ ubuntu_lxc - Failed setting up GPG keyring
Revision history for this message
Ian May (ian-may) wrote :

Seeing the failure in xenial/aws 4.4.0-1123.137

tags: added: aws sru-20210222
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

Issue also spotted with xenial/linux-kvm 4.4.0-1094.103.

tags: added: kvm linux-kvm sru-20210412
tags: added: groovy
tags: added: aws-hwe
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

found on xenial/aws-hwe 4.15.0-1102.109~16.04.1

tags: added: focal sru-20210621
Revision history for this message
Sean Feole (sfeole) wrote :

this issue appears to be agnostic to system architecture and occurs in almost all of the labs. the test needs to be reviewed. Giving that this is the most general description of the bug and does not appear to affect a particular arch/series i'm going to mark all other bugs a dup of this.

tags: added: 5.11 hirsute sru-20210719
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

This looks related to bug 1937945.

Po-Hsu Lin (cypressyew)
Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: New → In Progress
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This would require the following change in our exercise script:

+# Override the GPG server
+sed -i '/^DOWNLOAD_URL=$/a DOWNLOAD_KEYSERVER="hkp://keyserver.ubuntu.com:80"' /usr/share/lxc/templates/lxc-download
+

This is only needed for release <= Xenial as we're using autopkgtest to run tests from the source package in newer releases. And this change has already been included in the script there. (Even in the lxc source package on Xenial)

Since the test script in lxc package on Trusty does not have this change, we can't switch over to run test with autopkgtest completely. I will make this change first and modify the bug title.

BTW with this issue fixed, it will fail with image not found on X-hwe (bug 1939537)

Po-Hsu Lin (cypressyew)
summary: - ubuntu_lxc - Failed setting up GPG keyring
+ ubuntu_lxc - Failed setting up GPG keyring on X-hwe / T-lts
summary: - ubuntu_lxc - Failed setting up GPG keyring on X-hwe / T-lts
+ ubuntu_lxc - Failed setting up GPG keyring on X/ T variants
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

https://kernel.ubuntu.com/git/ubuntu/autotest-client-tests.git/commit/?id=771a7e1a3e9cb8669f4488764476940420ab3a70

I will use this bug to track test with our exercise script (for T/X variants). For this kind of failure in newer releases please refer to bug 1939871

Changed in ubuntu-kernel-tests:
status: In Progress → Fix Released
tags: removed: 5.11 focal groovy hirsute
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.