Bug 1627669 - `oc cluster up` should not fail due to no /root/.docker/config.json when use unauthenticated repo
Summary: `oc cluster up` should not fail due to no /root/.docker/config.json when use ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.11.0
Assignee: Ben Parees
QA Contact: Dongbo Yan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-11 08:30 UTC by zhou ying
Modified: 2018-11-21 14:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-21 14:50:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description zhou ying 2018-09-11 08:30:24 UTC
Description of problem:
Without /root/.docker/config.json, the `oc cluster up` command will fail when with repo: brew-pulp-docker01.web.prod.ext.phx2.redhat.com


Version-Release number of selected component (if applicable):
oc v3.11.0-0.32.0
kubernetes v1.11.0+d4cacc0


How reproducible:
always

Steps to Reproduce:
1. Use command :`oc cluster up --image='brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/ose-${component}:${version}'`


Actual results:
1. Failed with error:
I0911 03:48:23.155497   22395 interface.go:26] Installing "rhel-imagestreams" ...
I0911 03:48:23.155503   22395 interface.go:26] Installing "openshift-router" ...
I0911 03:48:23.156112   22395 apply_template.go:81] Installing "openshift-web-console-operator"
E0911 03:48:23.156578   22395 interface.go:34] Failed to install "rhel-imagestreams": Error reading $HOME/.docker/config.json: read /root/.docker/config.json: is a directory
I0911 03:48:34.753173   22395 interface.go:41] Finished installing "sample-templates/rails quickstart" "sample-templates/sample pipeline" "sample-templates/mongodb" "sample-templates/mariadb" "sample-templates/mysql" "sample-templates/postgresql" "sample-templates/dancer quickstart" "sample-templates/cakephp quickstart" "sample-templates/django quickstart" "sample-templates/nodejs quickstart" "sample-templates/jenkins pipeline ephemeral"
I0911 03:48:57.467123   22395 interface.go:41] Finished installing "sample-templates" "persistent-volumes" "openshift-web-console-operator" "openshift-image-registry" "rhel-imagestreams" "openshift-router"
Error: Error reading $HOME/.docker/config.json: read /root/.docker/config.json: is a directory


Expected results:
1. Should succeed with the repo: brew-pulp-docker01.web.prod.ext.phx2.redhat.com


Additional info:
Copy any config.json to /root/.docker unrelated to the repo, then succeed.

Comment 2 Ben Parees 2018-09-12 14:17:45 UTC
https://github.com/openshift/origin/pull/20955

Comment 4 zhou ying 2018-09-14 06:14:28 UTC
Confirmed with ocp v3.11.5, the issue has fixed:
[root@Master-cluster-up ~]# oc version
oc v3.11.5
kubernetes v1.11.0+d4cacc0


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