Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1163768

Summary: [Openshift-Heat-DIB]The source version of yum-validator is too old to recognise subscription type.
Product: OpenShift Container Platform Reporter: xjia <xjia>
Component: InstallerAssignee: John W. Lamb <jolamb>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 2.2.0CC: bleanhar, jokerman, libra-bugs, libra-onpremise-devel, mmasters, mmccomas, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 16:36:36 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 xjia 2014-11-13 12:59:53 UTC
Description of problem:
/usr/share/openshift-heat-templates/openshift-enterprise/dib/elements/openshift-enterprise-broker/install.d/30-openshift-enterprise-broker#55

55   curl -L https://api.github.com/repos/openshift/openshift-extras/tarball/master |     tar -xvz

This source is too old to recognise subscription type. 


[root@dell-pe1950-01 yum-validator]# ./oo-admin-yum-validator  --role=broker --fix-all --oo-version 2.0Please note: --role=broker implicitly enables --role=client to ensure /usr/bin/rhc is available for testing and troubleshooting.
Could not determine subscription type.
Please attach an OpenShift Enterprise subscription to this system using either RHN Classic or Red Hat Subscription Manager by following the instructions here: https://access.redhat.com/site/articles/522923


Currently the latest url is :https://github.com/openshift/enterprise/tree/enterprise-2.2/upgrades/yum-validator (It's a private repo which supports from 1.2 to 2.2)



Addition info:
These are env variable.
export ELEMENTS_PATH=/usr/share/openshift-heat-templates/openshift-enterprise/dib/elements/
export DIB_CLOUD_IMAGES=file:///usr/share/rhel-guest-image-6
export BASE_IMAGE_FILE=`ls -1 /usr/share/rhel-guest-image-6/ | grep qcow`
export DIB_RHSM_OSE_POOL=<OSE_POOL_ID>
export DIB_RHSM_POOL=<OSE_RHEL_ID>
export DIB_RHSM_USER=<RHSM_USER>
export DIB_REG_TYPE=rhsm
export DIB_RHSM_PASSWORD=<RHESM_PASSWORD>
export DIB_OSE_VERSION=2.0
export DIB_YUM_VALIDATOR_VERSION=2.0
export TMP_DIR=$HOME/tmp
export DIB_IMAGE_SIZE=5

Comment 1 xjia 2014-11-13 13:02:43 UTC
The test package is : openshift-heat-templates-0.1.1.2-1.el6.noarch.rpm

Comment 3 John W. Lamb 2014-11-18 20:53:31 UTC
This should have been fixed with https://github.com/openshift/openshift-extras/commit/afd8dd3aefd444fab938e79f3a5ea23eb35c1fc9

Comment 4 xjia 2014-11-23 09:56:22 UTC
Thanks, it works now.
openshift-openshift-extras-6d44309/security/ip-iptables
openshift-openshift-extras-6d44309/security/ip-selinux
+ pushd openshift-openshift-extras-6d44309/admin/yum-validator
/openshift-openshift-extras-6d44309/admin/yum-validator /
+ VALIDATOR_ARGS=' --role=broker --fix-all'
+ '[' -n 2.0 ']'
+ VALIDATOR_ARGS+=' --oo-version 2.0'
+ ./oo-admin-yum-validator --role=broker --fix-all --oo-version 2.0
Please note: --role=broker implicitly enables --role=client to ensure /usr/bin/rhc is available for testing and troubleshooting.
Detected OpenShift repository subscription managed by Red Hat Subscription Manager

Enabled repository rhel-server-rhscl-6-rpms
Enabled repository rhel-6-server-ose-2.0-infra-rpms

Comment 7 errata-xmlrpc 2016-05-12 16:36:36 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-2016:1065

Comment 8 Miciah Dashiel Butler Masters 2016-05-25 22:20:37 UTC
Note: This Bugzilla report was attached to the above mentioned advisory in error.