Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imagerepos broken for multiple tags w/ same imageid #1154

Closed
bparees opened this issue Feb 26, 2015 · 6 comments · Fixed by #1163
Closed

imagerepos broken for multiple tags w/ same imageid #1154

bparees opened this issue Feb 26, 2015 · 6 comments · Fixed by #1163

Comments

@bparees
Copy link
Contributor

bparees commented Feb 26, 2015

This commit: 361cdea#diff-5471a801fd55d5af2f431056b6d24254

appears to have made it such that you can't push two different tags for the same image...(ie tag an image as "test" and then later push a prod tag for that same image).

You can see here that my repo does not contain the prod tag, and the json for what is being pushed does contain the prod tag, yet it gets rejected as being identical:
https://gist.github.com/bparees/5235b5bbccad7a78a44d

@smarterclayton @ncdc

@smarterclayton
Copy link
Contributor

We should definitely let you tag it multiple times, just not create it (filter out duplicates). Creating one that already exists and is identical should be "success"

On Feb 25, 2015, at 6:32 PM, Ben Parees [email protected] wrote:

This commit: 361cdea#diff-5471a801fd55d5af2f431056b6d24254

appears to have made it such that you can't push two different tags for the same image...(ie tag an image as "test" and then later push a prod tag for that same image).

You can see here that my repo does not contain the prod tag, and the json for what is being pushed does contain the prod tag, yet it gets rejected as being identical:
https://gist.github.com/bparees/5235b5bbccad7a78a44d

@smarterclayton @ncdc


Reply to this email directly or view it on GitHub.

@ncdc
Copy link
Contributor

ncdc commented Feb 26, 2015

I have a fix for this

@ncdc
Copy link
Contributor

ncdc commented Feb 26, 2015

It's part of a larger refactoring effort, however. I'll try to submit a PR today.

@smarterclayton
Copy link
Contributor

Do we need larger refactors right before beta2? The answer can be yes if the arguments are good enough :)

On Feb 26, 2015, at 5:58 AM, Andy Goldstein [email protected] wrote:

It's part of a larger refactoring effort, however. I'll try to submit a PR today.


Reply to this email directly or view it on GitHub.

@ncdc
Copy link
Contributor

ncdc commented Feb 26, 2015

It's for https://trello.com/c/ZPKh3cBp/296-3-management-of-historical-image-repository-tags-imageregistry-beta2. Do you want a small PR to fix just this issue?

@ncdc
Copy link
Contributor

ncdc commented Feb 26, 2015

I've got a small PR to fix this coming right up in a few minutes :-)

ncdc pushed a commit to ncdc/origin that referenced this issue Feb 26, 2015
Modify ImageRepositoryMapping so it doesn't fail if the image specified
already exists.

Fixes openshift#1154
ncdc pushed a commit to ncdc/origin that referenced this issue Feb 26, 2015
Modify ImageRepositoryMapping so it doesn't fail if the image specified
already exists.

Fixes openshift#1154
ncdc pushed a commit to ncdc/origin that referenced this issue Feb 26, 2015
Modify ImageRepositoryMapping so it doesn't fail if the image specified
already exists.

Fixes openshift#1154
bparees pushed a commit to bparees/origin that referenced this issue Feb 26, 2015
Modify ImageRepositoryMapping so it doesn't fail if the image specified
already exists.

Fixes openshift#1154
fabianofranz pushed a commit to fabianofranz/origin that referenced this issue Feb 27, 2015
Modify ImageRepositoryMapping so it doesn't fail if the image specified
already exists.

Fixes openshift#1154
jpeeler pushed a commit to jpeeler/origin that referenced this issue Sep 5, 2017
…service-catalog/' changes from 7e650e7e39..ef63307bdb

ef63307bdb origin build: add origin tooling
a876fe3 v0.0.17 (openshift#1178)
c5237fe correct osbapi service definition (openshift#1177)
6036d4e Adding walkthrough instructions for 1.7 (openshift#1171)
5f111dd Specifying that you need Helm v2.5.0 for installation (openshift#1170)
08043bd Adding more small fixes to the walkthrough & install docs (openshift#1169)
d65d4a1 rbac targets needed to be renamed as well (openshift#1161)
590f6f2 Write helm command to file for api aggregation (openshift#1141)
49ddcf6 clean before building a specific arch (openshift#1168)
43f7cfb Splitting up the Walkthrough for 1.6 and 1.7 instructions (openshift#1163)
02e0217 Updates to README (openshift#1166)
57f2aa5 Adding instructions for installing from Macs (openshift#1164)
dfe620e fix rate-limiting for polling queue (openshift#1143)
ca5f335 Use Generation instead of checksum for Broker (openshift#1145)
5364daa Merge branch 'pr/1158'
f34c5db move Travis deployment script to directory in 'contrib/'
2a00d7f Update incorrect port (openshift#1156)
b0ed60e improve the repository's layout (openshift#1154)
f870baf Follow up file / renames from openshift#1142 (openshift#1152)
826b4f9 remove unnecessary json annotations (openshift#1153)
33cb345 Rename resources. closes openshift#1080 (openshift#1142)
70c2b9b Add ability to specify CA certs to use for TLS authentication. (openshift#1112)
2aa5039 v0.0.16 (openshift#1140)
65de49c Comments for unit test bullet proofing (openshift#1139)
REVERT: 7e650e7e39 origin build: add origin tooling

git-subtree-dir: cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog
git-subtree-split: ef63307bdbaa64efca204912f5361a4f3d3be2c8
jpeeler pushed a commit to jpeeler/origin that referenced this issue Sep 11, 2017
…service-catalog/' changes from 7e650e7e39..ef63307bdb

ef63307bdb origin build: add origin tooling
a876fe3 v0.0.17 (openshift#1178)
c5237fe correct osbapi service definition (openshift#1177)
6036d4e Adding walkthrough instructions for 1.7 (openshift#1171)
5f111dd Specifying that you need Helm v2.5.0 for installation (openshift#1170)
08043bd Adding more small fixes to the walkthrough & install docs (openshift#1169)
d65d4a1 rbac targets needed to be renamed as well (openshift#1161)
590f6f2 Write helm command to file for api aggregation (openshift#1141)
49ddcf6 clean before building a specific arch (openshift#1168)
43f7cfb Splitting up the Walkthrough for 1.6 and 1.7 instructions (openshift#1163)
02e0217 Updates to README (openshift#1166)
57f2aa5 Adding instructions for installing from Macs (openshift#1164)
dfe620e fix rate-limiting for polling queue (openshift#1143)
ca5f335 Use Generation instead of checksum for Broker (openshift#1145)
5364daa Merge branch 'pr/1158'
f34c5db move Travis deployment script to directory in 'contrib/'
2a00d7f Update incorrect port (openshift#1156)
b0ed60e improve the repository's layout (openshift#1154)
f870baf Follow up file / renames from openshift#1142 (openshift#1152)
826b4f9 remove unnecessary json annotations (openshift#1153)
33cb345 Rename resources. closes openshift#1080 (openshift#1142)
70c2b9b Add ability to specify CA certs to use for TLS authentication. (openshift#1112)
2aa5039 v0.0.16 (openshift#1140)
65de49c Comments for unit test bullet proofing (openshift#1139)
REVERT: 7e650e7e39 origin build: add origin tooling

git-subtree-dir: cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog
git-subtree-split: ef63307bdbaa64efca204912f5361a4f3d3be2c8
jpeeler pushed a commit to jpeeler/origin that referenced this issue Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants