Bug 1555003
Summary: | [3.7] Image pruning fails when DC 'image' field is blank | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Stefanie Forrester <dakini> |
Component: | ImageStreams | Assignee: | Alexey Gladkov <agladkov> |
Status: | CLOSED ERRATA | QA Contact: | Dongbo Yan <dyan> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.7.1 | CC: | agladkov, aos-bugs, bparees, dakini, jokerman, maszulik, mmccomas, pdwyer, trankin, wzheng |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | 3.7.z | ||
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: | 2018-05-18 03:54:45 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: |
Description
Stefanie Forrester
2018-03-13 18:57:56 UTC
*** This bug has been marked as a duplicate of bug 1518817 *** This isn't exactly a dupe of 1518817. we need to tolerate the empty string image field values because it's a common pattern. But I believe Alexey already implemented a fix for this, perhaps it was not backported to 3.7 though? Yes, it is not backported. Stephanie do you guys need this backported or can you make do until 3.9? 3.9 is fine, thanks. Verified openshift v3.7.44 kubernetes v1.7.6+a08f5eeb62 etcd 3.2.8 cannot set blank in dc 'image' field now. # oc create -f dc.yml -n dyan The DeploymentConfig "nodejs-mongodb-example" is invalid: spec.template.spec.containers[0].image: Required value it will fill value automatic if dc includes imageChange trigger parameters, or it will prompt error So cannot reproduce this error when prune images Hi, Ben, Alexey What do you think about cannot set blank in dc 'image' field the value needs to be a single space, not empty: image: " " Thanks Ben, verify again openshift v3.7.46 kubernetes v1.7.6+a08f5eeb62 etcd 3.2.8 Reproduce steps: 1. Edit dc, set single space as the value in 'image' field, delete imageChange trigger parameters 2.Prune images # oc adm prune images --keep-younger-than 0 --keep-tag-revisions 0 --token pmOg3zqQL8BvEetZREYEbXVJb1WrMlKAwbS7HSZbC-I --confirm --loglevel 4 Actual results: could prune images without error 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:1576 |