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

Bug 1600002

Summary: [3.9] containerized installation calls available RPM package tasks
Product: OpenShift Container Platform Reporter: Kenjiro Nakayama <knakayam>
Component: InstallerAssignee: Vadim Rutkovsky <vrutkovs>
Status: CLOSED WORKSFORME QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.9.0CC: aos-bugs, jokerman, knakayam, mmccomas
Target Milestone: ---   
Target Release: 3.10.z   
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-07-30 10:48:27 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:
Attachments:
Description Flags
ansible logs none

Description Kenjiro Nakayama 2018-07-11 08:01:10 UTC
Description of problem:

- When we set "containerized=true" and ran ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/deploy_cluster.yml, playbook tries to check RPM by repoquery.
- RH docs asks users to register subscription, but when we try to install in disconnected env, users did not prepare yum repository as containerized installation.

Version-Release number of the following components:

  [root@knakayam-ose39-crs ansible]# rpm -q openshift-ansible
  openshift-ansible-3.9.31-1.git.34.154617d.el7.noarch
  [root@knakayam-ose39-crs ansible]# rpm -q ansible
  ansible-2.4.5.0-1.el7ae.noarch
  [root@knakayam-ose39-crs ansible]# ansible --version
  ansible 2.4.5.0
    config file = /etc/ansible/ansible.cfg
    configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
    ansible python module location = /usr/lib/python2.7/site-packages/ansible
    executable location = /usr/bin/ansible
    python version = 2.7.5 (default, May 31 2018, 09:41:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]


How reproducible: 100%

Steps to Reproduce:
1. Set containerized=true in inventory with multiple nodes.
2. Run ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/deploy_cluster.yml after prerequisites.yml

Actual results:
- Get available RPM version is called and each nodes run repoquery.

Expected results:
- Playbook does not check available RPM version when containerized=true

Additional info:
- Attached

Comment 2 Kenjiro Nakayama 2018-07-11 08:07:18 UTC
Created attachment 1458009 [details]
ansible logs

Please check "TASK [openshift_version : Get available RPM version]". The task is always called.

Comment 8 Kenjiro Nakayama 2018-07-30 10:48:27 UTC
Closing this bz, as excluder packages are still necessary for containerized installation, which means that users have to enable the repository. Therefore, it is reasonable that playbook reached out the repository.