Bug 1617188 - Fail to install ocp due to atomic-openshift-3.11 package was not installed as dependency
Summary: Fail to install ocp due to atomic-openshift-3.11 package was not installed as...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.11.0
Assignee: Russell Teague
QA Contact: liujia
URL:
Whiteboard:
Depends On:
Blocks: 1672429
TreeView+ depends on / blocked
 
Reported: 2018-08-16 02:59 UTC by liujia
Modified: 2019-02-04 22:02 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Package dependencies needed for the openshift_ca role could not be installed because the openshift excluders were in place. The playbooks for certificates were moved after the excluders were disabled in the master config playbook to ensure packages could be installed.
Clone Of:
: 1672429 (view as bug list)
Environment:
Last Closed: 2018-10-11 07:24:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2652 0 None None None 2018-10-11 07:25:28 UTC

Description liujia 2018-08-16 02:59:16 UTC
Description of problem:
Trigger v3.11 installation on rhel. Installation failed at TASK [openshift_ca : Install the base package for admin tooling] ***************
Thursday 16 August 2018  07:06:32 +0800 (0:00:00.088)       0:06:37.972 ******* 
...
FAILED - RETRYING: Install the base package for admin tooling (1 retries left).
fatal: [x -> x]: FAILED! => {"attempts": 3, "changed": false, "msg": "No package matching 'atomic-openshift-3.11*' found available, installed or updated", "rc": 126, "results": ["No package matching 'atomic-openshift-3.11*' found available, installed or updated"]}
==================
Checked installation log, found that before task[openshift_ca : Install the base package for admin tooling], openshift excluder was enabled(exclude), so atomic-openshift-3.11* package should not be searched in yum list.

Dig more, compared with earlier 3.11 installation log, atomic-openshift-3.11* package was installed as a dependency of atomic-openshift-node-3.11 in previous task [openshift_node : Install node, clients, and conntrack packages], so when it came to task [openshift_ca : Install the base package for admin tooling], no action needed.

But in v3.11.0-0.16.0, atomic-openshift-3.11* is not treated as a dependency of atomic-openshift-node-3.11, so atomic-openshift-3.11* package needed to be installed in post task. But openshift excluder was enabled before that. 

To be conclusion, if installer will drop the dependency between atomic-openshift-3.11* and atomic-openshift-node-3.11*, then need unexclude openshift-excluder before install atomic-openshift-3.11. Or else, need restore the dependency.

[root@qe-smoke311-merrn-1 ~]# yum install atomic-openshift-node-3.11*
...
Dependencies Resolved

========================================================================================================================================
 Package                               Arch              Version                                       Repository                  Size
========================================================================================================================================
Installing:
 atomic-openshift-node                 x86_64            3.11.0-0.16.0.git.0.6bcbde8.el7               ose-smoke-devel            7.1 M
Installing for dependencies:
 atomic-openshift-hyperkube            x86_64            3.11.0-0.16.0.git.0.6bcbde8.el7               ose-smoke-devel             35 M

Transaction Summary
========================================================================================================================================
Install  1 Package (+1 Dependent package)


Version-Release number of the following components:
openshift-ansible-3.11.0-0.16.0.git.0.e82689aNone.noarch.rpm

How reproducible:
always

Steps to Reproduce:
1. Trigger installation on rhel
2.
3.

Actual results:
Installation failed.

Expected results:
Installation succeed.

Additional info:
workaround should be set "openshift_enable_openshift_excluder=false" in hosts file.

Comment 2 Vadim Rutkovsky 2018-08-17 17:45:00 UTC
PR https://github.com/openshift/openshift-ansible/pull/9622

Comment 3 Vadim Rutkovsky 2018-08-17 17:46:56 UTC
There are other places where we attempt to install atomic-openshift-3.11 RPMs and silently skip the errors (as noted in comment #0) - these need to be cleaned up as well

Comment 4 Scott Dodson 2018-08-23 13:26:54 UTC
https://github.com/openshift/openshift-ansible/pull/9715 likely addresses this.

Comment 5 Russell Teague 2018-08-24 12:46:44 UTC
openshift-ansible-3.11.0-0.22.0

Comment 6 Weihua Meng 2018-08-27 01:47:04 UTC
Fixed.
openshift-ansible-3.11.0-0.22.0.git.0.053546aNone.noarch

install succeeded.

Comment 7 liujia 2018-08-27 01:49:41 UTC
according to comment6, change status.

Comment 9 errata-xmlrpc 2018-10-11 07:24:57 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-2018:2652


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