Description of problem: On the page of Create From Image, should let user has choice to specify DockerImage for BC's output.kind and DC's spec.containers.image. Otherwise, it does not make sense to add push secret for BC and pull secret for DC. See below results in step 7 and 8. Version-Release number of selected component (if applicable): openshift v3.4.0.15 How reproducible: Always Steps to Reproduce: 1. Create project, create secret: $ oc secrets new-dockercfg dockerhub --docker-server=private.registry.com --docker-username=any --docker-password=12345678 --docker-email=any 2. Login to openshift web console, on the page of Create From Image: select one image like php, input app name "myphpapp", click "Try it", click "Show advanced routing, build, deployment and source options" 3. In the "Build Configuration" part, check if there is choice to specify BC's output's kind to be DockerImage 4. In the "Deployment Configuration" part, check if there is choice to specify DC's spec.containers.image 5. Now that there is no choice in previous steps, under BC's "Push Secret" part, pick above secret dockerhub. under DC's "Pull Secret" part, pick above secret dockerhub. 6. Click Create. 7. Check build and DC app 8. Repeat above steps again, but don't use "Push Secret" and "Pull Secret", then check build and DC app Actual results: 3 and 4: there is not that choice. 7. Build fail and DC app will not be deployed. Check build logs, will see: $ oc logs build/myphpapp-1 Cloning "https://github.com/openshift/cakephp-ex.git" ... .... Pushing image 172.30.213.171:5000/xxia-proj/myphpapp:latest ... Pushed 0/9 layers, 0% complete error: build error: Failed to push image: unauthorized: authentication required 8. Because they use integrated registry, Build will complete and DC app will be deployed without the use of "Push Secret" and "Pull Secret". Thus the function of "Push Secret" and "Pull Secret" is a waste. Expected results: 3 and 4 should have that choice to specify image registry, only then the function of "Push Secret" and "Pull Secret" will make sense. Additional info:
Jakub, I confirmed with Ben Parees that we should **not** need to specify a push or pull image secret in this flow. We only need the source secret. Note that this bug is referring to picking a builder image from the catalog tab. It is not talking about the deploy image scenario where you might need a pull secret.
Commit pushed to master at https://github.com/openshift/origin-web-console https://github.com/openshift/origin-web-console/commit/7bb97dda7db84edad89bb130742ab3017d74a212 Bug 1388884 - Specify only 'Source secret' only Create From Image page
The fix we made was to remove the unnecessary secrets inputs from the create from image page. You should not need to specify image push or pull secrets on this page. (The build config source secret is still there.)
This has been merged into ose and is in OSE v3.4.0.22 or newer.
Checked with openshift v3.4.0.22+5c56720. Fixed. No image secrets any longer on the page of Create From Image. Thank you!
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-2017:0066