Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1059077 - openshift.ks repo configuration is broken for JBoss-related repositories with the yum install method
Summary: openshift.ks repo configuration is broken for JBoss-related repositories with...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Luke Meyer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1058640
TreeView+ depends on / blocked
 
Reported: 2014-01-29 06:04 UTC by Miciah Dashiel Butler Masters
Modified: 2014-02-03 18:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-03 18:28:38 UTC


Attachments (Terms of Use)

Description Miciah Dashiel Butler Masters 2014-01-29 06:04:44 UTC
Description of problem:

Using the "yum" install method, openshift.ks/openshift.sh now prints "command not found" error messages in the configure_rhel_repo and configure_ose_yum_repos functions, and it will fail to configure JBoss-related repositories when it is supposed to do so.


Steps to Reproduce:

1. rm -f /etc/yum.repos.d/jbossews.repo /etc/yum.repos.d/jbosseap.repo /etc/yum.repos.d/openshift-jbosseap_cartridge*.repo

2. sh openshift.sh actions=parse_cartridges,validate_preflight,configure_repos install_method=yum cartridges=standard

3. ls /etc/yum.repos.d/jbossews.repo /etc/yum.repos.d/jbosseap.repo /etc/yum.repos.d/openshift-jbosseap_cartridge*.repo

4. rm -f /etc/yum.repos.d/jbossews.repo /etc/yum.repos.d/jbosseap.repo /etc/yum.repos.d/openshift-jbosseap_cartridge*.repo

5. sh openshift.sh actions=parse_cartridges,validate_preflight,configure_repos install_method=yum cartridges=standard,jboss

6. ls /etc/yum.repos.d/jbossews.repo /etc/yum.repos.d/jbosseap.repo /etc/yum.repos.d/openshift-jbosseap_cartridge*.repo


Actual results:

In the output from both Steps 2 and 5, there are the following errors:

    + for repo in optional jbosseap jbossews rhscl
    + eval 'need_jbossews_repo && configure_jbossews_repo'
    ++ need_jbossews_repo
    openshift.sh: line 649: need_jbossews_repo: command not found

and

    + for repo in optional jbosseap jbossews rhscl
    + eval 'need_jbossews_repo && configure_jbossews_repo'
    ++ need_jbossews_repo
    openshift.sh: line 649: need_jbossews_repo: command not found

and Steps 3 and 6 lists only jbosseap.repo (the other .repo files are not created).


Expected results:

We should not see the error messages, we should not see jbosseap.repo after Step 3, and we should see jbosseap.repo, jbossews.repo, and openshift-jbosseap_cartridge-cdn.repo (or -puddle.repo).


Additional info:

I broke stuff in https://github.com/openshift/openshift-extras/commit/e6cd65df01ee1cbdf837d49b4a199506a240d95f

This pull request resolves the issue:  https://github.com/openshift/openshift-extras/pull/281

Comment 2 Luke Meyer 2014-02-03 18:28:38 UTC
I verified this appears to work, so I merged the change.


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