Signature tests are disabled - gpg command calls should use homedir option

Bug #436896 reported by Mathias Gug
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
image-store-proxy (Ubuntu)
Fix Released
High
Mathias Gug
Karmic
Fix Released
High
Mathias Gug

Bug Description

SignatureServiceTest are disabled because they fail to build correctly on the buildds. This is due to the incorrect handling of gnupg home directory.

I'd recommend to use the following options:

 --homedir (with a default path of /var/lib/image-store-proxy/)

 --no-options so that gpg doesn't try to open any options file

 --no-tty to avoid any console messages

For example the postinst script imports the gpg key the following way:

gpg --batch --no-default-keyring --no-tty \
                --homedir /var/lib/image-store-proxy/ \
                --keyring /var/lib/image-store-proxy/keyring.gpg \
                --import /usr/share/image-store-proxy/image-store-key.asc

Revision history for this message
Mathias Gug (mathiaz) wrote :

NB: Make sure that ~/.gnupg/ doesn't exist before testing and doesn't exist after the tests have been run.

Changed in image-store-proxy (Ubuntu):
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Gustavo Niemeyer (niemeyer)
milestone: none → ubuntu-9.10
Mathias Gug (mathiaz)
summary: - Signature tests are disabled
+ Signature tests are disabled - gpg command calls should use homedir
+ option
Mathias Gug (mathiaz)
Changed in image-store-proxy (Ubuntu Karmic):
assignee: Gustavo Niemeyer (niemeyer) → Mathias Gug (mathiaz)
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package image-store-proxy - 1.0.1-0ubuntu1

---------------
image-store-proxy (1.0.1-0ubuntu1) karmic; urgency=low

  * New upstream release:
    - fix gpg usage (LP: #436896).
  * Add euca2ools as a dependency.
  * Update init script to assume success if STARTTIME is undefined and
    start-stop-daemon succeeded as there is a race condition between the
    pid file creation and the check in the init script. (LP: #433863)
  * Fix gpg key files permission so that they can be read by the eucalyptus
    user.

 -- Mathias Gug <email address hidden> Tue, 06 Oct 2009 20:50:48 -0400

Changed in image-store-proxy (Ubuntu Karmic):
status: In Progress → Fix Released
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.