Bug 1612104

Summary: skopeo is not installed by default during install causing docker_creds module to not work.
Product: OpenShift Container Platform Reporter: Matt Woodson <mwoodson>
Component: InstallerAssignee: Michael Gugino <mgugino>
Status: CLOSED ERRATA QA Contact: Johnny Liu <jialiu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.11.0CC: aos-bugs, dma, gpei, jokerman, lxia, mgugino, mmccomas, wmeng
Target Milestone: ---   
Target Release: 3.11.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-10-11 07:23:29 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:
Bug Depends On:    
Bug Blocks: 1602120    

Description Matt Woodson 2018-08-03 13:33:09 UTC
Description of problem:

I am doing an ami build which essentially just does a node install using openshift-ansible.  We are using external docker creds, so the "docker_creds" module is being invoked.  "docker_creds" requires that skopeo be installed.

During the node install skopeo is not installed.  I do see skopeo-containers getting installed during the "install docker" section, but not skopeo.  I believe that skopeo should also be installed.


During the task "TASK [container_runtime : Create credentials for docker cli registry auth (alternative)] ***"

The error appears:

"msg": "timeout: failed to run command ‘skopeo’: No such file or directory\n", 

Version-Release number of selected component (if applicable):

3.11.0-0.11.0


Expected results:

skopeo be installed so that docker_creds module should work.

Comment 1 Michael Gugino 2018-08-03 13:39:46 UTC
PR Created https://github.com/openshift/openshift-ansible/pull/9423

Comment 2 Michael Gugino 2018-08-03 20:11:21 UTC
*** Bug 1612149 has been marked as a duplicate of this bug. ***

Comment 5 Scott Dodson 2018-08-06 12:29:01 UTC
*** Bug 1612149 has been marked as a duplicate of this bug. ***

Comment 6 Johnny Liu 2018-08-13 02:52:31 UTC
According to our official doc (https://docs.openshift.com/container-platform/3.10/install/host_preparation.html#configuring-docker-storage), before run openshift-ansible installer, user already installed docker, that would lead to the fix PR is skipped.

TASK [container_runtime : Install Docker] **************************************
Friday 10 August 2018  21:55:26 +0800 (0:00:00.177)       0:02:07.723 ********* 
skipping: [qe-smoke311-mrre-1.0810-9h8.qe.rhcloud.com] => {"changed": false, "skip_reason": "Conditional result was False"}


Suggest to move "atomic" and "skopeo" rpm install to some initial global place, but not with runtime rpm package together.

Comment 7 Michael Gugino 2018-08-13 15:45:47 UTC
(In reply to Johnny Liu from comment #6)
> According to our official doc
> (https://docs.openshift.com/container-platform/3.10/install/host_preparation.
> html#configuring-docker-storage), before run openshift-ansible installer,
> user already installed docker, that would lead to the fix PR is skipped.
> 
> TASK [container_runtime : Install Docker]
> **************************************
> Friday 10 August 2018  21:55:26 +0800 (0:00:00.177)       0:02:07.723
> ********* 
> skipping: [qe-smoke311-mrre-1.0810-9h8.qe.rhcloud.com] => {"changed": false,
> "skip_reason": "Conditional result was False"}
> 
> 
> Suggest to move "atomic" and "skopeo" rpm install to some initial global
> place, but not with runtime rpm package together.

There is another PR for this particular issue: https://github.com/openshift/openshift-ansible/pull/9513

Comment 8 Scott Dodson 2018-08-14 21:24:45 UTC
Should be in openshift-ansible-3.11.0-0.15.0

Comment 9 Johnny Liu 2018-08-15 08:50:22 UTC
Verified this bug with openshift-ansible-3.11.0-0.15.0.git.0.842d3d1None.noarch, and PASS.

Now skopeo will be installed together with runtime rpm package, whatever docker is install or not before openshift-installer.

Comment 11 errata-xmlrpc 2018-10-11 07:23:29 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