Bug 1507031
| Summary: | Duplicate Image Stream Tags After oc apply | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Devan Goodwin <dgoodwin> | ||||||
| Component: | ImageStreams | Assignee: | Ben Parees <bparees> | ||||||
| Status: | CLOSED NOTABUG | QA Contact: | Dongbo Yan <dyan> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | high | ||||||||
| Version: | 3.7.0 | CC: | aos-bugs, bparees, ccoleman, jokerman, mmccomas, wzheng | ||||||
| Target Milestone: | --- | ||||||||
| 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-10-30 16:40:26 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: | |||||||||
| Attachments: |
|
||||||||
|
Description
Devan Goodwin
2017-10-27 13:05:18 UTC
Created attachment 1344523 [details]
source config file we're applying
I think this is working as expected. You modified the imagestreamtag, so it got reimported. That's why you see a second set of tag events in the status. The previous tag events are retained by design in case you want to revert to them. I do think there may be a different but here in how we handle spec tag names (if you deleted the 1.3 tag from the spec list, and added a 1.4 tag, in the imagestream file you are applying, what you're going to see is the 1.3 tag gets deleted and the 1.4 tag is added (replace behavior)...what you probably should see is both the 1.3 and 1.4 tags show up (merge)) But I need to talk to Clayton to confirm what we would want/expect to happen there. Yeah status tags shouldn't be cleared by apply. Only prune should do that. Clayton, I was referring to spec tags. (I haven't looked what happens to status tags, I don't think they're being cleared but that's another investigation). I have a PR [1] to change our behavior regarding spec+status tag merging, but for what you're seeing (multiple status tagevents for a given tag), that is working as expected. [1] https://github.com/openshift/origin/pull/17091 Ben will this list grow unbounded or is it just the last 1-5 tags? The tagevent history grows unbounded unless you prune. (oc adm prune images with some revision history value) It's no different from what happens today if you run oc import-image and keeping importing new image ids. The only reason it looks new to you is because before you were deleting the imagestream and thus all of the history along with it. I'm wondering now what we should be doing with the ansible that updates the image streams. oc adm prune images looks like it's hitting all images in the cluster, whereas I wouldn't want to play around with anything outside of the openshift namespace. --keep-tag-revisions=3 would be nice if we could just limit that to one ns. If not it seems like we should probably continue fully deleting them and re-creating. having the extra history events around is not a big deal, especially for just our limited set of images. And users should be running pruning on their own as a rule anyway. |