Bug 1422376
| Summary: | Cannot build with part of image id when reference ImageStreamImage in imagestream | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Wenjing Zheng <wzheng> |
| Component: | Image Registry | Assignee: | Michal Fojtik <mfojtik> |
| Status: | CLOSED ERRATA | QA Contact: | Wenjing Zheng <wzheng> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.5.0 | CC: | aos-bugs, ccoleman, tdawson, wzheng, xiuwang |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-04-12 19:13:00 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Assigning to the platform management team for confirmation. But my understanding is that this is working as designed. You need a full image id to reference the image. A partial reference is not supported. @clayton, Could you please confirm? I remember you mentioned partial reference is supported for ImageStreamImage in one pr(sorry, I cannot find it now). Can you try with `ruby@5dc0856fea9551e102815863` ? (In reply to Michal Fojtik from comment #3) > Can you try with `ruby@5dc0856fea9551e102815863` ? Even cannot build with full image id without "sha256:" before image id, I remember it works before. oc start-build openshift-php-upload-demo The ImageStreamImage "php@7804e249eae4ffec888ac9f331dfc6b6adae6034acc6a3f9e4c86ed66a760302" is invalid: from: Error resolving ImageStreamImage php@7804e249eae4ffec888ac9f331dfc6b6adae6034acc6a3f9e4c86ed66a760302 in namespace openshift: unable to find corresponding tag for image "7804e249eae4ffec888ac9f331dfc6b6adae6034acc6a3f9e4c86ed66a760302" Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/a68742f5d05545edec0b31ee551fdaecdc613dc7 Bug 1422376: Fix resolving ImageStreamImage latest tag Test against: openshift v3.5.0.35 kubernetes v1.5.2+43a9be4 Can't reproduce this bug, move to verified, thanks 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:0884 |
Description of problem: Cannot start build if use part of image id when reference ImageStreamImage in imagestream with below error: $ oc start-build ruby22-sample-build The ImageStreamImage "ruby@sha256:5dc0856fea9551e102815863" is invalid: from: Error resolving ImageStreamImage ruby@sha256:5dc0856fea9551e102815863 in namespace wzheng3: unable to find corresponding tag for image "sha256:5dc0856fea9551e102815863" Version-Release number of selected component (if applicable): openshift v3.5.0.20+87266c6 kubernetes v1.5.2+43a9be4 etcd 3.1.0 How reproducible: always Steps to Reproduce: 1. oc import-image ruby --from=docker.io/openshift/ruby-22-centos7 --confirm=true 2. oc get is ruby -o yaml 3. Use part of image id for ImageStreamImage: strategy: sourceStrategy: env: - name: EXAMPLE value: sample-app from: kind: ImageStreamImage name: ruby@sha256:5dc0856fea9551e102815863 type: Source 4. Start build Actual results: $ oc start-build ruby22-sample-build The ImageStreamImage "ruby@sha256:5dc0856fea9551e102815863" is invalid: from: Error resolving ImageStreamImage ruby@sha256:5dc0856fea9551e102815863 in namespace wzheng3: unable to find corresponding tag for image "sha256:5dc0856fea9551e102815863" Expected results: Build should start like using full image id. Additional info: