uvt-simplestreams-libvirt sync gpg keyring error

Bug #1321778 reported by Ryan Harper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
uvtool (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

1) % lsb_release -rd
Description: Ubuntu Utopic Unicorn (development branch)
Release: 14.10

2) % apt-cache policy uvtool-libvirt
uvtool-libvirt:
  Installed: 0~bzr92-0ubuntu1
  Candidate: 0~bzr92-0ubuntu1
  Version table:
 *** 0~bzr92-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ utopic/universe amd64 Packages
        100 /var/lib/dpkg/status

3) uvt-simplestreams-libvirt sync release=precise arch=amd64 should download the precise amd64 cloud image without errors

4) uvt-simplestreams-libvirt sync release=precise arch=amd64
Traceback (most recent call last):
  File "/usr/bin/uvt-simplestreams-libvirt", line 27, in <module>
    uvtool.libvirt.simplestreams.main()
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/simplestreams.py", line 326, in main
    args.func(args)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/simplestreams.py", line 269, in main_sync
    tmirror.sync(smirror, initial_path)
  File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 82, in sync
    content, payload = reader.read_json(path)
  File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 40, in read_json
    return raw, self.policy(content=raw, path=path)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/simplestreams.py", line 258, in policy
    content, keyring=args.keyring)
  File "/usr/lib/python2.7/dist-packages/simplestreams/util.py", line 271, in read_signed
    raise e
subprocess.CalledProcessError: Command '['gpg', '--batch', '--verify', u'--keyring=/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg', '-']' returned non-zero exit status 2

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: uvtool-libvirt 0~bzr92-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.2-0ubuntu4
Architecture: amd64
Date: Wed May 21 09:13:58 2014
InstallationDate: Installed on 2014-05-20 (1 days ago)
InstallationMedia: Ubuntu-Server 14.10 "Utopic Unicorn" - Alpha amd64 (20140515)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: uvtool
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ryan Harper (raharper) wrote :
Revision history for this message
Ryan Harper (raharper) wrote :

Looks like this was a result of permission issues.

% gpg --batch --verify --keyring=/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg
gpg: failed to create temporary file `/home/rharper/.gnupg/.#lk0x1535050.lambic.26329': Permission denied
gpg: keyblock resource `/home/rharper/.gnupg/pubring.gpg': general error

^C
gpg: Interrupt caught ... exiting

(lambic) ~ % cd .gnupg/
-bash: cd: .gnupg/: Permission denied

fixed with:

% sudo chown -R rharper.rharper .gnupg/

Revision history for this message
Robie Basak (racb) wrote :

Could this have been caused by bug 1250370?

Revision history for this message
Ryan Harper (raharper) wrote :

No, it was from running:

sudo sbuild-update -k

but before I'd generating my own key first.

Revision history for this message
Robie Basak (racb) wrote :

Invalid in uvtool then I think? There might be a valid but against sbuild-update here though. It shouldn't have messed with your permissions there.

Changed in uvtool (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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