Bug 1320829

Summary: Fail to install containerized env on minimal rhel due to lack of docker package
Product: OpenShift Container Platform Reporter: Ma xiaoqiang <xiama>
Component: InstallerAssignee: Brenton Leanhardt <bleanhar>
Status: CLOSED ERRATA QA Contact: Ma xiaoqiang <xiama>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: aos-bugs, bleanhar, dgoodwin, jialiu, jokerman, mmccomas, tdawson, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openshift-ansible-3.0.81-1.git.0.1bb3de7.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 16:39:33 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 Ma xiaoqiang 2016-03-24 05:18:37 UTC
Description of problem:
Fail to install containerized env on minimal rhel due to lack of docker package



Version-Release number of selected component (if applicable):
openshift-ansible-3.0.64-1.git.0.6df4b9a.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. install containerized env on minimal rhel

Actual results:
TASK: [openshift_facts | Gather Cluster facts and set is_containerized if needed] *** 
failed: [openshift-*.lab.eng.nay.redhat.com] => {"cmd": "docker run --rm openshift3/ose version", "failed": true, "rc": 2}
msg: [Errno 2] No such file or directory
failed: [openshift-*.lab.eng.nay.redhat.com] => {"cmd": "docker run --rm openshift3/ose version", "failed": true, "rc": 2}
msg: [Errno 2] No such file or directory

FATAL: all hosts have already failed -- aborting



Expected results:
Install env successfully

Additional info:

Comment 1 Jason DeTiberus 2016-03-29 02:02:07 UTC
openshift_ansible PR: https://github.com/openshift/openshift-ansible/pull/1674

Comment 3 Ma xiaoqiang 2016-04-01 05:14:13 UTC
Met the same error on openshift-ansible

'validate_hostnames.yml' will call the openshift_facts role at the beginning, the 'openshift_facts' role will run 'docker run' when installing containerized env. ansible didn't install docker before that.

Comment 4 Devan Goodwin 2016-04-13 18:55:50 UTC
Ma was this the error you hit?

TASK: [openshift_facts ] ****************************************************** 
failed: [node4.aos.example.com] => {"cmd": "docker exec atomic-openshift-node openshift version", "failed": true, "rc": 2}
msg: [Errno 2] No such file or directory
ok: [master1.aos.example.com]

And eventually this as the node stops processing:

TASK: [openshift_manage_node | Wait for Node Registration] ******************** 
ok: [master1.aos.example.com] => (item=master1.aos.example.com)
failed: [master1.aos.example.com] => (item=node4.aos.example.com) => {"attempts": 50, "changed": false, "cmd": ["oc", "get", "node", "node4.aos.example.c
om"], "delta": "0:00:00.132276", "end": "2016-04-13 11:11:01.961510", "failed": true, "item": "node4.aos.example.com", "rc": 1, "start": "2016-04-13 11:1
1:01.829234", "stdout_lines": [], "warnings": []}
stderr: Error from server: node "node4.aos.example.com" not found
msg: Task failed as maximum retries was encountered

It looks like the first attempt avoided one of the docker run commands but not the other. 

I'm fairly confident that must be what you hit, fixed along with another issue that was about to surface if docker was not pre-installed and you're doing containerized installs: https://github.com/openshift/openshift-ansible/pull/1749

Comment 5 Troy Dawson 2016-04-18 16:06:27 UTC
Should be in openshift-ansible-3.0.80-1.git.0.2f46898.el7, which is built and ready for qe testing.

Comment 7 Ma xiaoqiang 2016-04-19 05:07:04 UTC
Check on openshift-ansible-3.0.81-1

scenarios 1
Install containerized ose-3.2 without installed docker 
Install env successfully

scenarios 2
Install containerized ose-3.1 without installed docker 
Install env successfully


scenarios 3
install rpm ose-3.0 without installed docker
Install env successfully


move this issue to verified if the openshift-ansible-3.0.81-1 is released.

Comment 8 Johnny Liu 2016-04-19 12:20:16 UTC
> move this issue to verified if the openshift-ansible-3.0.81-1 is released.
I think Ma meant to "move this issue to verified if the openshift-ansible-3.0.81-1 is pushed to puddle."

Comment 9 Ma xiaoqiang 2016-04-21 05:22:35 UTC
Check on openshift-ansible-3.0.82-1

Work fine, move this issue to VERIFIED.

Comment 11 errata-xmlrpc 2016-05-12 16:39:33 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-2016:1065