Bug 1434365 - Include gpg key instructions or nogpgcheck for installation of rhn-upgrade package
Summary: Include gpg key instructions or nogpgcheck for installation of rhn-upgrade pa...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Upgrades
Version: 580
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Grant Gainey
QA Contact: Dimitar Yordanov
URL:
Whiteboard:
Depends On:
Blocks: sat580-upgrades
TreeView+ depends on / blocked
 
Reported: 2017-03-21 11:09 UTC by Kenny Tordeurs
Modified: 2017-06-21 12:11 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-21 12:11:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Kenny Tordeurs 2017-03-21 11:09:29 UTC
Description of problem:
Include gpg key instructions or nogpgcheck for installation of rhn-upgrade package from media

Version-Release number of selected component (if applicable):
Satellite 5.8

How reproducible:
100%

Steps to Reproduce:
# yum localinstall /media/satellite/rhn-upgrade-5.8.0.10-1.el5sat.noarch.rpm 
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Local Package Process
Examining /media/satellite/rhn-upgrade-5.8.0.10-1.el5sat.noarch.rpm: rhn-upgrade-5.8.0.10-1.el5sat.noarch
Marking /media/satellite/rhn-upgrade-5.8.0.10-1.el5sat.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rhn-upgrade.noarch 0:5.8.0.10-1.el5sat set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================
 Package             Arch           Version                      Repository                                     Size
=====================================================================================================================
Installing:
 rhn-upgrade         noarch         5.8.0.10-1.el5sat            /rhn-upgrade-5.8.0.10-1.el5sat.noarch         390 k

Transaction Summary
=====================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total size: 390 k
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 897da07a
Public key for rhn-upgrade-5.8.0.10-1.el5sat.noarch.rpm is not installed

You can just install it without gpgcheck: 

# yum localinstall /media/satellite/rhn-upgrade-5.8.0.10-1.el5sat.noarch.rpm --nogpgcheck

# rpm -Uvh /media/satellite/rhn-upgrade-5.8.0.10-1.el5sat.noarch.rpm 
warning: /media/satellite/rhn-upgrade-5.8.0.10-1.el5sat.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 897da07a
Preparing...                ########################################### [100%]
   1:rhn-upgrade            ########################################### [100%]


Actual results:


Expected results:
gpgkey instructions for import or --nogpgcheck command included

Additional info:

Comment 2 Grant Gainey 2017-03-21 15:44:37 UTC
On RHEL5, the beta-key isn't imported into RPM-DB by default:

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta


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