Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1531511 - User could not pull a private image from a docker registry when a pull secret is defined
User could not pull a private image from a docker registry when a pull secret...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Master (Show other bugs)
3.9.0
Unspecified Unspecified
medium Severity medium
: ---
: 3.9.0
Assigned To: Maciej Szulik
Wang Haoran
:
: 1529867 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-05 06:56 EST by Chuan Yu
Modified: 2018-04-24 02:45 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: oc create secret was creating malformed secret for pulling images. Consequence: User could not pull an image from a private repository. Fix: Fix the format of the secret for pulling images. Result: The ability to pull images from a private repository works as expected.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-03-28 10:17:25 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 None None None 2018-03-28 10:17 EDT

  None (edit)
Comment 2 Ben Parees 2018-01-05 09:32:59 EST
I believe this to either be an issue w/ the format of the docker secret being created, or it not being properly supplied to the registry with the pull request, I do not believe it is an actual issue w/ registry authentication.
Comment 3 Wang Haoran 2018-01-08 00:38:42 EST
issues tracked in origin : https://github.com/openshift/origin/issues/17197
Comment 4 Maciej Szulik 2018-01-11 09:02:45 EST
master is fixed in https://github.com/openshift/origin/pull/18003
3.8 is not affected
3.7 is fixed in https://github.com/openshift/origin/pull/18062
Comment 6 Wang Haoran 2018-01-11 23:54:32 EST
Moved to MODIFIED, as new puddles are not built out.
Comment 8 Wang Haoran 2018-01-23 03:02:57 EST
Tested on:
oc v3.9.0-0.22.0
kubernetes v1.9.1+a0ce1bc657
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://qe-geliu-39privatemen-1.westus.cloudapp.azure.com:8443
openshift v3.9.0-0.22.0
kubernetes v1.9.1+a0ce1bc657


1. oc create secret docker-registry haowang1 --docker-email=*** --docker-user-name=*** --docker-password=** 
 Works as expected.
2. oc secrets new haowang2 .dockerconfigjson=/home/haoran/.docker/config.json 
 Also works as expected
3. oc secrets new-dockercfg haowang --docker-email=*** --docker-user-name=*** --docker-password=** 
This is totally not worked
Comment 9 Maciej Szulik 2018-01-23 06:59:46 EST
Thanks, good catch. I've fixed it in https://github.com/openshift/origin/pull/18226.
Comment 10 openshift-github-bot 2018-01-28 09:19:02 EST
Commit pushed to master at https://github.com/openshift/origin

https://github.com/openshift/origin/commit/1a849c6d6e31c1d7977c53e4e2514fa07f68dcd9
Merge pull request #18226 from soltysh/bug1531511

Automatic merge from submit-queue.

Fix oc secrets new-dockercfg to create secret identical like oc create secret

It looks like I missed one more create secret thing. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1531511

/assign @juanvallejo
Comment 11 Wang Haoran 2018-01-29 21:08:59 EST
Will verify this in next puddle
Comment 12 Wang Haoran 2018-02-02 04:31:27 EST
It works well with:
oc v3.9.0-0.34.0
kubernetes v1.9.1+a0ce1bc657
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://host-8-243-252.host.centralci.eng.rdu2.redhat.com:8443
openshift v3.9.0-0.34.0
kubernetes v1.9.1+a0ce1bc657



I but still have some concerns, the "oc secrets new-dockercfg" cmd was originally create a .dockercfg secret source, but now it's .dockerconfig source, does that mean we will not support the old secret type? If you guys are intended to this, I will move to verify.
Comment 13 Maciej Szulik 2018-02-05 07:43:43 EST
That is correct. This is the direction upstream is going as well.
Comment 14 Bruno Andrade 2018-02-15 06:55:33 EST
*** Bug 1529867 has been marked as a duplicate of this bug. ***
Comment 17 errata-xmlrpc 2018-03-28 10:17:25 EDT
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:0489
Comment 19 Maciej Szulik 2018-04-24 02:45:33 EDT
See https://bugzilla.redhat.com/show_bug.cgi?id=1476330 for details about 3.7.z fix.

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