Bug 1039876

Summary: The openshift.sh assumes ose-rhc/2 but there is ose-rhc/2.0, no ose-rhc/2
Product: OpenShift Container Platform Reporter: Jan Pazdziora <jpazdziora>
Component: ReleaseAssignee: Luke Meyer <lmeyer>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0.0CC: bleanhar, jialiu, jpazdziora, libra-onpremise-devel, lmeyer, xiama
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: 2014-02-04 14:51:15 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:

Description Jan Pazdziora 2013-12-10 08:51:37 UTC
Description of problem:

The OpenShift Enterprise 2.0 installation script at

https://raw.github.com/openshift/openshift-extras/enterprise-2.0/enterprise/install-scripts/generic/openshift.sh

assumes that the versioned subdirectory under ose-rhc and similar is 2. But there is only 2.0, no 2.

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

https://raw.github.com/openshift/openshift-extras/enterprise-2.0/enterprise/install-scripts/generic/openshift.sh as of today and CDN as of today

How reproducible:

Seen once, assume deterministic.

Steps to Reproduce:
1. Download openshift.sh.
2. Try to use it.

Actual results:

the-url/rhel/server/6/6Server/x86_64/ose-rhc/2/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

Expected results:

openshift.sh.passes.

Additional info:

Comment 6 Brenton Leanhardt 2013-12-10 09:24:59 UTC
Mind testing again? I just pushed https://github.com/openshift/openshift-extras/commit/6c412a27ce56a33c4022052deaaf275f76f80391.

Comment 12 Luke Meyer 2013-12-12 21:28:20 UTC
openshift.sh with the "yum" install method does not set up the RHSCL repo unless you set CONF_RHSCL_REPO_BASE or CONF_CDN_REPO_BASE (they would typically be the same). Should work then. However I should note that current oo-install doesn't allow you to set either of those. That's a bug of some sort.

Comment 13 Jan Pazdziora 2013-12-18 06:44:00 UTC
(In reply to Luke Meyer from comment #12)
> openshift.sh with the "yum" install method does not set up the RHSCL repo
> unless you set CONF_RHSCL_REPO_BASE or CONF_CDN_REPO_BASE (they would
> typically be the same). Should work then. However I should note that current
> oo-install doesn't allow you to set either of those. That's a bug of some
> sort.

It looks like you fixed the problem in 1fb3ec6f0a2731de15d2d60cc7faa3457e51037d, the rhscl yum repo is now there setup when I try it and the yum install passes.

Moving ON_QA, QE can pick up from here.

Comment 14 Luke Meyer 2013-12-18 16:35:38 UTC
Yeah, I added that workaround to populate CONF_RHSCL_REPO_BASE based on the RHEL repo if not otherwise specified, since I don't think oo-install will be modified to specify CONF_RHSCL_REPO_BASE or CONF_CDN_REPO_BASE really soon. Seemed easiest.

Comment 15 Ma xiaoqiang 2013-12-20 03:33:48 UTC
1.export installing env
export CONF_INSTALL_METHOD=yum
export CONF_RHSCL_REPO_BASE="http://cdn.rcm-qa.redhat.com/content/dist/rhel/server/6/6.5/x86_64/"
export CONF_CDN_REPO_BASE="http://cdn.rcm-qa.redhat.com/content/dist/rhel/server/6/6.5/x86_64/"
export CONF_JBOSS_REPO_BASE="http://cdn.rcm-qa.redhat.com/content/dist/rhel/server/6/6.5/x86_64/"
export CONF_RHEL_REPO="http://cdn.rcm-qa.redhat.com/content/dist/rhel/server-6/updates/6Server/x86_64/os"
2.get openshift.sh
wget https://raw.github.com/openshift/openshift-extras/enterprise-2.0/enterprise/install-scripts/generic/openshift.sh
3.configure the repos using openshift.sh
4.list all repos
#yum repolist 
jbosseap                                                    jbosseap                                                   
jbossews                                                    jbossews               
openshift_client                                            OpenShift Client       
openshift_infrastructure                                    OpenShift Infrastructure         
openshift_jbosseap                                          OpenShift JBossEAP            
openshift_node                                              OpenShift Node      
rhel6                                                       RHEL 6 base OS    
rhscl                                                       rhscl