Bug 1466652

Summary: [3.4]Fail to container install ocp due to no excluder package found when specify openshift_additional_repos
Product: OpenShift Container Platform Reporter: liujia <jiajliu>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED WONTFIX QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: low    
Version: 3.4.1CC: aos-bugs, jchaloup, jiajliu, jokerman, mmccomas, trankin
Target Milestone: ---   
Target Release: 3.9.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: 2018-01-23 21:01:30 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 liujia 2017-06-30 07:23:08 UTC
Description of problem:
Fail to container install ocp with specified openshift_additional_repos in inventory file due to no excluder packages found. This is because the installer didn't configure openshift_additional_repo on the RHEL hosts prior to installing `atomic-openshift-docker-excluder`.

fatal: [openshift-151.x.x.x]: FAILED! => {
    "changed": false, 
    "failed": true, 
    "invocation": {
        "module_args": {
            "conf_file": null, 
            "disable_gpg_check": false, 
            "disablerepo": null, 
            "enablerepo": null, 
            "exclude": null, 
            "install_repoquery": true, 
            "list": null, 
            "name": [
                "atomic-openshift-docker-excluder-3.4.1.44*"
            ], 
            "state": "present", 
            "update_cache": false, 
            "validate_certs": true
        }
    }, 
    "rc": 126, 
    "results": [
        "No package matching 'atomic-openshift-docker-excluder-3.4.1.44*' found available, installed or updated"
    ]
}

MSG:

No package matching 'atomic-openshift-docker-excluder-3.4.1.44*' found available, installed or updated



Version-Release number of selected component (if applicable):
atomic-openshift-utils-3.4.111-1.git.0.61ef2e0.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. Edit inventory file to add
openshift_additional_repos="xxxx"
2. Trigger container install on the host without ose3.6 repo
3.

Actual results:
openshift_addtional_repo not configured on the RHEL hosts, then install failed with no corresponding `atomic-openshift-docker-excluder` found. 

Expected results:
Install succeed with both of excluders installed.

Additional info:

Comment 1 Jan Chaloupka 2017-07-10 13:52:07 UTC
Liujia, can you run just 'yum install atomic-openshift-docker-excluder' on the openshift-151.x.x.x host? To see if any version of the excluder is available?

Comment 2 liujia 2017-07-12 01:41:55 UTC
(In reply to Jan Chaloupka from comment #1)
> Liujia, can you run just 'yum install atomic-openshift-docker-excluder' on
> the openshift-151.x.x.x host? To see if any version of the excluder is
> available?

Jan, no any version of the excluder would be available. Because there are no ose3.4 repo was created on the host, which should be generated by installer through setting openshift_additional_repo="".

BTW, this issue only happened on 3.3/3.4 version, it works well on 3.5/3.6.

Comment 4 Scott Dodson 2018-01-23 21:01:30 UTC
This problem won't affect production environments because repos are configured during pre-requisites so closed wontfix.