← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1661337] Re: curtin does not retry when gpg fails to recv key

 

This bug was fixed in the package curtin - 0.1.0~bzr460-0ubuntu1~16.04.1

---------------
curtin (0.1.0~bzr460-0ubuntu1~16.04.1) xenial-proposed; urgency=medium

  * New upstream snapshot.
    - Install zipl in target on s390x arch. (LP: #1662346)
    - avoid UnicodeDecode error on passing non-utf8 into shlex
    - adjustments to version string handling, improved pack unit tests.
    - helpers/common: Add grub install debugging output
    - curtin: add version module and display in output and logs
    - content decoding in load_file, apply_net raise exception on errors
    - gpg: retry when recv'ing gpg keys fail (LP: #1661337)
    - Add clear_holders checks to disk and partition handlers (LP: #1659509)
    - net: add new lines after rendered static routes. (LP: #1649652)
    - multipath: don't run update-grub; setup_grub will handle this better.
      (LP: #1656369)
    - Test changes:
      - vmtest: Add tests for zesty and Trusty HWE-X kernels.
      - tests: fix tox tip-pycodestyle complaints
      - image-sync: add debugging output to help diagnose errors
      - vmtest: change get_curtin_version to use version subcommand.
      - Remove style checking during build and add latest style checks to tox
      - subp doc an unit test improvements.
      - flake8: remove unused variable.
      - vmtest: Add the ability to add extra config files to test execution.
      - vmtest: overhaul image sync
      - vmtest: skip apt-proxy test if not set
      - vmtest: add 'webserv' helper
      - vmtest: add CURTIN_VMTEST_CURTIN_EXE variable.

 -- Scott Moser <smoser@xxxxxxxxxx>  Wed, 08 Feb 2017 19:40:38 -0500

** Changed in: curtin (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1661337

Title:
  curtin does not retry when gpg fails to recv key

Status in curtin:
  Fix Committed
Status in curtin package in Ubuntu:
  Fix Released
Status in curtin source package in Xenial:
  Fix Released
Status in curtin source package in Yakkety:
  Fix Released

Bug description:
  ==== Begin SRU Template ========
  [Impact]
  Curtin installation can be configured to install additional apt
  repositories and import gpg keys from a remote keyserver by fingerprint.
  'gpg --recv' can transiently fail, causing installation failure.

  The fix is to just retry
    gpg --keyserver keyserver.ubuntu.com --recv <key>

  [Test Case]
  Run curtin vmtest on XenialTestAptSrcDisablePockets
   ./tools/jenkins-runner tests/vmtests/test_apt_source.py

  The named test pushes curtin through use of gpg --keyserver.
  It does not guarantee failure and re-try, but does test the
  happy path.  Even if the gpg server was available on the first
  time, we at very least then verify that there is no regression.

  [Regression Potential]
  Low risk of regression.  The code change is just to sleep and retry
  a command if it failed.

  [Other Info]
  When looking further into some failures in add-apt-repository that were
  not fixed by re-trying, we found bug 1532855 .  It is not explicitly
  related to this bug, but is a similar failure path.

  ==== End   SRU Template ========

  In some cases we have transient network failure while attempting to
  recv gpg keys when configuring apt.

  https://jenkins.ubuntu.com/server/job/curtin-
  vmtest/737/artifact/output/XenialTestAptSrcDisablePockets/logs
  /install-serial.log

  [   40.161264] cloud-init[1528]: Command: ['gpg', '--keyserver', 'keyserver.ubuntu.com', '--recv', '0E72 9061 0D2F 6DC4 D65E  A921 9A31 4EC5 F470 A0AC']
  [   40.162213] cloud-init[1528]: Exit code: 2
  [   40.163711] cloud-init[1528]: Reason: -
  [   40.164256] cloud-init[1528]: Stdout: "gpgkeys: key 0E7290610D2F6DC4D65EA9219A314EC5F470A0AC can't be retrieved\n"
  [   40.174200] cloud-init[1528]: Stderr: 'gpg: requesting key F470A0AC from hkp server keyserver.ubuntu.com\ngpg: no valid OpenPGP data found.\ngpg: Total number processed: 0\ngpg: keyserver communications error: keyserver helper general error\ngpg: keyserver communications error: unknown pubkey algorithm\ngpg: keyserver receive failed: unknown pubkey algorithm\n'
  [   40.180654] cloud-init[1528]: During handling of the above exception, another exception occurred:
  [   40.182056] cloud-init[1528]: Traceback (most recent call last):
  [   40.183644] cloud-init[1528]:   File "/curtin/curtin/gpg.py", line 65, in getkeybyid
  [   40.185067] cloud-init[1528]:     recv_key(keyid, keyserver=keyserver)
  [   40.186653] cloud-init[1528]:   File "/curtin/curtin/gpg.py", line 48, in recv_key
  [   40.187895] cloud-init[1528]:     (key, keyserver, error))

  Curtin should retry this command.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1661337/+subscriptions