Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1415177 - duplicity-0.7.11-1.el7 is incompatible with gnupg2-2.0.22-4.el7
Summary: duplicity-0.7.11-1.el7 is incompatible with gnupg2-2.0.22-4.el7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: duplicity
Version: epel7
Hardware: All
OS: All
unspecified
high
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-20 13:16 UTC by Matthias Hensler
Modified: 2017-01-26 00:19 UTC (History)
5 users (show)

Fixed In Version: duplicity-0.7.11-2.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-26 00:19:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch which makes the bug go away (1.92 KB, patch)
2017-01-21 21:50 UTC, Troels Arvin
no flags Details | Diff
RPM spec file which (in combination with patch gnupg20_fix.patch) builds a fixed package (10.92 KB, text/plain)
2017-01-21 21:51 UTC, Troels Arvin
no flags Details

Description Matthias Hensler 2017-01-20 13:16:59 UTC
Description of problem:
Update to duplicity 0.7.11-1.el7 on RHEL7 breaks duplicity.

Version-Release number of selected component (if applicable):
0.7.11-1.el7

How reproducible:
always

Steps to Reproduce:
1. update duplicty
2. run duplicty
3.

Actual results:
[...]
Last full backup date: Thu Jan 19 13:08:18 2017
Reuse configured PASSPHRASE as SIGN_PASSPHRASE
GPGError: GPG Failed, see log below:
===== Begin GnuPG log =====
gpg: invalid option "--pinentry-mode=loopback"
===== End GnuPG log =====

13:29:56.543 Task 'BKP' failed with exit code '31'.


Expected results:
Backup should run

Additional info:
Upstream added the commandline-parameter "--pinentry-mode=loopback" if gnupg version 2 is detected (see /usr/lib64/python2.7/site-packages/duplicity/gpg.py starting at line 139):

        elif profile.gpg_major == 2:
            # This forces gpg2 to ignore the agent.
            # Necessary to enforce truly non-interactive operation.
            if platform.platform().startswith('Linux'):
                gnupg.options.extra_args.append('--pinentry-mode=loopback')


However, that parameter is only available on gnupg 2.1 and newer. Since RHEL7 currently ships gnupg in version 2.0.22 duplicity is broken.

Comment 1 Troels Arvin 2017-01-21 10:45:25 UTC
Upstream bug reports about this:
https://bugs.launchpad.net/duplicity/+bug/1658283
https://bugs.launchpad.net/duplicity/+bug/1658291

Comment 2 Troels Arvin 2017-01-21 21:50:51 UTC
Created attachment 1243181 [details]
Patch which makes the bug go away

The patch is a simplified version of http://bazaar.launchpad.net/~duplicity-team/duplicity/0.7-series/revision/1267

Comment 3 Troels Arvin 2017-01-21 21:51:46 UTC
Created attachment 1243182 [details]
RPM spec file which (in combination with patch gnupg20_fix.patch) builds a fixed package

Comment 4 Gwyn Ciesla 2017-01-23 15:53:36 UTC
Brilliant, thank you!  I'll get this out ASAP.

Comment 5 Fedora Update System 2017-01-23 17:30:16 UTC
duplicity-0.7.11-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-99395cd175

Comment 6 George Notaras 2017-01-23 18:18:14 UTC
I tested 0.7.11-1 on CentOS 7.3.1611 and confirm the reported issue.

Updated to duplicity-0.7.11-2.el7 from Koji and it seems to work as expected.

Big thanks to all for your work!

Comment 7 Fedora Update System 2017-01-25 00:49:35 UTC
duplicity-0.7.11-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-99395cd175

Comment 8 Fedora Update System 2017-01-26 00:19:20 UTC
duplicity-0.7.11-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.