Bug 1236609 - dnf-plugin-spacewalk doesn't accept parameter --nogpgcheck
Summary: dnf-plugin-spacewalk doesn't accept parameter --nogpgcheck
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugin-spacewalk
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-29 14:23 UTC by Pavel Studeník
Modified: 2017-10-20 12:43 UTC (History)
10 users (show)

Fixed In Version: dnf-plugin-spacewalk-2.7.7-1
Clone Of:
Environment:
Last Closed: 2017-10-20 12:43:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pavel Studeník 2015-06-29 14:23:24 UTC
Description of problem:
I try to install unsigned package from spacewalk channel and I can't use parameter nogpgcheck.

Version-Release number of selected component (if applicable):
dnf-plugin-spacewalk-2.4.12-1.fc22.noarch

How reproducible:
always

Steps to Reproduce:
1. create channel on spacewalk
2. push unsigned package to channel 
3. try to install the package by dnf-plugin-spacewalk

Actual results:
dnf install zsh --disablerepo=beaker-* --disablerepo=updates --nogpgcheck
This system is receiving updates from Spacewalk server.
Last metadata expiration check performed 0:10:36 ago on Mon Jun 29 16:09:49 2015.
Dependencies resolved.
==============================================================================================================================================================================================================================================
 Package                                            Arch                                                  Version                                                       Repository                                                       Size
==============================================================================================================================================================================================================================================
Installing:
 zsh                                                x86_64                                                5.0.7-8.fc22                                                  fedora-22-x86_64                                                2.5 M

Transaction Summary
==============================================================================================================================================================================================================================================
Install  1 Package

Total download size: 2.5 M
Installed size: 5.9 M
Is this ok [y/N]: y
Downloading Packages:
zsh-5.0.7-8.fc22.x86_64.rpm                                                                                                                                                                                   1.4 MB/s | 2.5 MB     00:01    
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                         1.4 MB/s | 2.5 MB     00:01     
Error: Package zsh-5.0.7-8.fc22.x86_64.rpm is not signed


Expected results:
parameter --nogpgcheck  works

Comment 1 Honza Silhan 2015-07-29 12:14:40 UTC
Michael, is it dnf-plugin-spacewalk or dnf bug? Do you override in plugin nongpgcheck option?

Comment 2 Michael Mráka 2015-08-06 11:55:20 UTC
It's a bug in dnf, namely in config / option handling.
Plugin  has no way to find out whether current gpgcheck value it sees comes from config file (so plugin can override it) or from commandline (so it can keep it).

Comment 3 Fedora Admin XMLRPC Client 2016-07-08 09:28:16 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora End Of Life 2016-07-19 15:07:06 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 5 Tomas Tomecek 2016-10-31 09:56:51 UTC
Still an issue:

dnf install vokoscreen --nogpgcheck
...
vokoscreen  x86_64  2.5.0-1.fc26  rpmfusion-free-rawhide
...
Error: Package vokoscreen-2.5.0-1.fc26.x86_64.rpm is not signed


dnf version:
python3-dnf-plugins-core-1.0.0-0.rc1.1.fc26.noarch
dnf-yum-2.0.0-0.rc1.4.fc26.noarch
python3-dnf-2.0.0-0.rc1.4.fc26.noarch
dnf-2.0.0-0.rc1.4.fc26.noarch
dnf-conf-2.0.0-0.rc1.4.fc26.noarch
dnf-plugins-core-1.0.0-0.rc1.1.fc26.noarch
libdnf-0.7.0-0.1git179c0a6.fc26.x86_64

Comment 6 Tomas Tomecek 2016-10-31 09:58:52 UTC
Workarounded by setting gpgcheck=0 in repo file.

Comment 7 Jaroslav Mracek 2017-05-19 09:19:27 UTC
It looks like that the problem from Comment 5 is different from rest of the bug report. Please can you Tomas update your dnf to latest version (dnf-2.4) and if problem reappears, create a new bug report? Thanks a lot.

Comment 8 Tomas Tomecek 2017-05-25 08:07:01 UTC
I didn't hit this for quite some time, so I guess it's fixed. Feel free to close.

Comment 9 Michael Mráka 2017-05-30 10:46:03 UTC
Fixed in spacewalk upstream by
commit 0ae4b16ed5d9ff686673e1239ab9c4fdb96d7b85
    1236609 - update to dnf's new config module
    which honors priority of config file, plugin, commandline,...

Comment 10 Fedora End Of Life 2017-07-25 18:58:28 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 11 Fedora End Of Life 2017-08-08 11:59:39 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 12 Ondrej Gajdusek 2017-08-28 10:09:23 UTC
Fix is available in Spacewalk repository as mentioned in comment 9. This Fix should be present also in Fedora repos after release Spacewalk 2.7.
Verified with the last version dnf-plugin-spacewalk-2.7.9-1

Comment 13 Ondrej Gajdusek 2017-10-20 12:43:12 UTC
dnf-plugin-spacewalk-2.7.9-1 is present in Fedora repository


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