Description of problem: Met imagestreamimport error when import the whole image repository Version-Release number of selected component (if applicable): 4.6.0-0.nightly-2020-09-10-195619 How reproducible: always Steps to Reproduce: 1.Import image with the whole repository $oc import-image myruby --from=registry.redhat.io/rhscl/ruby-25-rhel7 --all --confirm --insecure --loglevel=8 2.In same project, import image with specify tag $oc import-image myruby --from=registry.redhat.io/rhscl/ruby-25-rhel7 --all --confirm --insecure --loglevel=8 3.In same project import v1 image with whole repository $oc import-image myv1image --from=devexp.registry-v1.qe.devcluster.openshift.com:5000/imagev1/test1 --all --confirm --insecure --loglevel=8 Actual results: step 1 and step 3 failed, and step 2 succeed. Details in http://pastebin.test.redhat.com/901411 Expected results: Should import image successfully Additional info:
That looks like a serious regression. We need to adjust timeouts for ImageStreamImports.
I was able to reproduce this using 4.4.23. Moving to 4.7 as it's not a blocker for 4.6.
oc should use something similar to https://github.com/openshift/openshift-controller-manager/blob/5e84dd54a42aed15ae022f4ee615fa7326ef6ce2/pkg/image/controller/imagestream_controller.go#L309-L310
$oc version Client Version: 4.7.0-0.nightly-2021-01-31-031653 `oc import-image` help doc is updated. # Import all tags into a new image stream using a custom timeout. oc --request-timeout=5m import-image mystream --from=registry.io/repo/image --all --confirm The cmd works to import the whole repository. oc import-image myruby --from=registry.redhat.io/rhscl/ruby-25-rhel7 --all --confirm --insecure --loglevel=8 --request-timeout=5m I0201 16:12:50.016021 12396 round_trippers.go:422] POST https://api.qe-ui47-0201.qe.devcluster.openshift.com:6443/apis/image.openshift.io/v1/namespaces/xiuwang/imagestreamimports?timeout=5m0s
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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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/RHSA-2020:5633