Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to import GPG keys #197

Closed
antifob opened this issue Jul 14, 2019 · 0 comments · Fixed by #202
Closed

Failure to import GPG keys #197

antifob opened this issue Jul 14, 2019 · 0 comments · Fixed by #202

Comments

@antifob
Copy link

antifob commented Jul 14, 2019

Hi,

Since #192 , our GitLab CI is failing to build images. strace-ing distrobuilder, the keys are correctly fetched, but they are not being picked up. This step fails for Ubuntu-based images as well as Alpine-based ones.

Steps

Create a repository on GitLab (gitlab.com suffices), put an image template of your choice and the following .gitlab-ci.yml file in it. Commit, push and start the CI.

# .gitlab-ci.yml
image: ubuntu:18.04

before_script:
    - apt-get update
    - apt-get -y install git-core golang-go debootstrap rsync gpg squashfs-tools
    - 'go get -d -v github.com/lxc/distrobuilder || :'
    - cd ~/go/src/github.com/lxc/distrobuilder
    - make
    - cd "${CI_PROJECT_DIR}"

image:
    stage: build
    script:
        - ~/go/bin/distrobuilder build-lxd image-of-your-choice.yml

Output

Here are relevant trace output lines for an Alpine-based image:

  • [pid 6739] <... read resumed> "gpg: key 293ACD0907D9495A: 2 duplicate signatures removed\ngpg: key 293ACD0907D9495A: 11 signatures not checked due to missing keys\ngpg: /tmp/distrobuilder.071160561/trustdb.gpg: trustdb created\ngpg: key 293ACD0907D9495A: public key \"Natanael Copa <ncopa@alpinelinux.org>\" imported\n", 1473) = 281
  • [pid 6743] read(9, "gpg: key 293ACD0907D9495A: 2 duplicate signatures removed\ngpg: key 293ACD0907D9495A: 11 signatures not checked due to missing keys\ngpg: key 293ACD0907D9495A: \"Natanael Copa <ncopa@alpinelinux.org>\" not changed\ngpg: Total number processed: 1\ngpg: unchanged: 1\n", 512) = 272
  • [pid 6750] write(2, "Error: Error while downloading source: Failed to import keys: 0482D84022F52DF1C4E7CD43293ACD0907D9495A\n", 103Error: Error while downloading source: Failed to import keys: 0482D84022F52DF1C4E7CD43293ACD0907D9495A ) = 103

This matches an execution where the key is correctly fetched and ignored two (2) times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant