Bug 1315625
Summary: | In the context of source project, oc tag fails when source project is omitted and another destination project is given | ||
---|---|---|---|
Product: | OKD | Reporter: | Xingxing Xia <xxia> |
Component: | oc | Assignee: | Juan Vallejo <jvallejo> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Wei Sun <wsun> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 3.x | CC: | aos-bugs, jvallejo, mmccomas, wsun, xxia |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-09-19 13:51:57 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
Xingxing Xia
2016-03-08 09:23:32 UTC
Hm, I cannot seem to reproduce this bug: oc version: oc v1.3.0-alpha.0+1347137-dirty kubernetes v1.3.0+507d3a7 features: Basic-Auth 1. oc login, create projects: streamtags1, streamtags2 2. Switch to streamtags2 and prepare an imagestream $ oc tag --source=docker openshift/hello-openshift mystream:latest 3. Switch to streamtags1 and prepare an imagestream $ oc tag --source=docker openshift/hello-openshift mystream:latest 4. Tag image to between 2 projects in the context of streamtags1. Omit or give project name(s): 1> oc tag streamtags1/mystream:latest streamtags2/stream:latest 2> oc tag mystream:latest mystream:tag1 3> oc tag streamtags2/stream:latest mystream:tag2 4> oc tag mystream:latest streamtags2/stream:tag1 Actual Results: 4. 1> ~ 3>: All commands succeeded with same results as comment https://bugzilla.redhat.com/show_bug.cgi?id=1315625#c0 4> Command also succeeded with output: "Tag streamtags2/stream:tag1 set to mystream@sha256:b9b69935f23d56775aeb548d3aa526bd9cb53d8fa49faf4839f8b5eaf3dbe108." Strictly follow comment 0 steps, error for "oc tag mystream:latest xxia-proj2/stream:tag1" is still reproduced. Strictly follow your steps in comment 0, "oc tag mystream:latest streamtags2/stream:tag1" indeed succeeds. The difference is: comment 1 has additional step "Switch to streamtags2 and prepare an imagestream". If skip this step, the error is then reproduced, as same as comment 0. (In reply to Xingxing Xia from comment #2) > Strictly follow your steps in comment 0, "oc tag mystream:latest > streamtags2/stream:tag1" indeed succeeds. Sorry, a typo, should be "your steps in comment 1" Thanks for the clarification. Related PR: https://github.com/openshift/origin/pull/10510 |