[Satellite6.3.Beta]Installation from iso fails on Public key for tfm-rubygem-hammer_cli_foreman_openscap-0.1.5-1.fm1_15.el7sat.noarch.rpm is not installed
Environment
Satellite 6.3.Beta
Issue
Running the ./install_packages command results in error:
This script will install the satellite packages on the current machine.
- Ensuring we are in an expected directory.
- Copying installation files.
- Creating a Repository File
- Creating RHSCL Repository File
- Checking to see if Satellite is already installed.
- Importing the gpg key.
warning: /media/sat6/addons/Puppet4/puppet-agent-1.10.7-1.el7sat.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f21541eb: NOKEY
Public key for tfm-rubygem-hammer_cli_foreman_openscap-0.1.5-1.fm1_15.el7sat.noarch.rpm is not installed
Error while executing command: 'yum install -y satellite'
Resolution
Import beta gpg key manually from location where the iso is mounted
#rpm --import /media/sat6/RHSCL/RPM-GPG-KEY-redhat-beta
Root Cause
There will be no fixes in beta ISO but This content is not included.bug is opened for this behavior
in install_packages script,
line 51
GPG_FILE="/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release"
only regular gpg key is defined as variable GPG_FILE which is later used
in line 155 for importing key
if (os.path.exists(GPG_FILE)):
print INDENT + "Importing the gpg key."
run_command(["rpm", "--import", GPG_FILE])
cmd = ["yum", "install", "-y", "satellite"]
RPM-GPG-KEY-redhat-beta key, which is needed for beta repos is not defined or used anywhere.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.