-
Bug
-
Resolution: Done
-
Major
-
Pipelines 1.3
-
None
-
None
-
False
-
False
-
Undefined
-
-
Pipelines Sprint 196
Expected behavior
I can specify whichever minor version supported by OpenShift in Python, Perl and Ruby S2I cluster tasks.
Actual behavior
When latest version is set, errors like those below appear. E.g. specify MINOR_VERSION=8 in s2i-python-3 or MINOR_VERSION=6 in s2i-ruby.
[build : build] error creating build container: Error initializing source docker://registry.access.redhat.com/rhscl/python-38-rhel7:latest: Error reading manifest latest in registry.access.redhat.com/rhscl/python-38-rhel7: unsupported: This repo requires terms acceptance and is only available on registry.redhat.io --- [build : build] error creating build container: Error initializing source docker://registry.access.redhat.com/rhscl/ruby-26-rhel7:latest: Error reading manifest latest in registry.access.redhat.com/rhscl/ruby-26-rhel7: unsupported: This repo requires terms acceptance and is only available on registry.redhat.io
Recommended fix
Other s2i-* cluster tasks don't reference registry.access.redhat.com directly but use an image stream in "openshift" namespace, e.g.
- image-registry.openshift-image-registry.svc:5000/openshift/dotnet:3.$(params.MINOR_VERSION)
- image-registry.openshift-image-registry.svc:5000/openshift/nodejs:$(params.VERSION)