Bug 1410330

Summary: setup_package_repos in RHUI 3.0 Beta 2 for RHEL 7 ISO doesn't import beta gpg key. It causes failure of 'yum -y rhui-installer'.
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Keigo Noha <knoha>
Component: DocumentationAssignee: Les Williams <lwilliam>
Status: CLOSED ERRATA QA Contact: Radek Bíba <rbiba>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.0.0CC: lwilliam, rbiba, tsanders
Target Milestone: ---   
Target Release: 3.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-01 22:15:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Keigo Noha 2017-01-05 07:28:19 UTC
Description of problem:
setup_package_repos in RHUI 3.0 Beta 2 for RHEL 7 ISO doesn't import beta gpg key. It prevent to install 'yum -y rhui-installer'.

Version-Release number of selected component (if applicable):
setup_package_repos in RHUI 3.0 Beta 2 for RHEL 7 ISO

How reproducible:
Always.

Steps to Reproduce:
1. Run ./setup_package_repos
2. Run yum -y rhui-installer
3.

Actual results:
Packages in local rhui repository can not be installed.

Expected results:
Packages in local rhui repository can be installed successfully.

Additional info:
setup_package_repos in RHUI 3.0 Beta 2 for RHEL 7 ISO contains following definition.

~~~
# Figure out where we are running
INSTALL_FILE = os.path.abspath(__file__)
PWD = os.path.dirname(INSTALL_FILE)
GPG_FILE="/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release"
REPO_FILE = "/etc/yum.repos.d/rhui-local.repo"
DEST_DIR = "/opt/rhui/"
~~~

GPG_FILE needs to point /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta because RHUI3.0 is still in beta.

Workaround:
Manual import with 'rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta' resolve this issue.

Comment 10 errata-xmlrpc 2017-03-01 22:15:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0367