Bug 1325727 - oc import-image --insecure with specific tag creates istag that points to :latest
Summary: oc import-image --insecure with specific tag creates istag that points to :la...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Image Registry
Version: 3.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Maciej Szulik
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks: 1324357
TreeView+ depends on / blocked
 
Reported: 2016-04-11 02:41 UTC by chunchen
Modified: 2016-09-30 02:17 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-19 13:50:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description chunchen 2016-04-11 02:41:13 UTC
Description of problem:
Creating this bug to track issue: https://github.com/openshift/origin/issues/8440

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 chunchen 2016-04-12 13:56:01 UTC
added test results as comment #2 on that issue

Comment 4 Paul Weil 2016-04-12 14:51:30 UTC
@chunchen - I was able to locally import the image as expected with the commands given in response:  oc import-image brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-auth-proxy:3.2.0 --insecure=true --confirm

In order to change the tag I was then able to do another import with the new tag as described.  Please give Maciej's response a try and let us know if it unblocks you for now (until we get more input on creating new tags via the import mechanism)

Comment 5 chunchen 2016-04-13 02:06:50 UTC
I tried below two workarounds, both work well:

1. $ oc import-image logging-elasticsearch:3.2.0 --from=brew-pulp-docker01...com:8888/openshift3/logging-elasticsearch:3.2.0 --insecure=true

2. 
2.1 $ oc tag --source=docker brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-kibana:3.2.0 logging-kibana:3.2.0

2.2 $ oc import-image brew-pulp-docker01...com:8888/openshift3/logging-kibana:3.2.0 --insecure=true --confirm

the example results:
http://pastebin.test.redhat.com/365099


So,the issue unblocks now, please help to change the bug to ON_QA, then I can mark it as verified.

Comment 6 Maciej Szulik 2016-04-13 07:26:04 UTC
Based on the comment 5 I'm removing TestBlocker and adding UpcomingRelease, since it's not blocking QE in any way. Per the github discussion I'm waiting for information whether we will allow importing not existing tags. I'll move it to QE once we agree on the end solution.

Comment 7 Michal Fojtik 2016-05-24 16:05:53 UTC
Any update on this Maciej?

Comment 8 Maciej Szulik 2016-05-25 11:49:30 UTC
Per [1] we'll be re-working the import-image command quite significantly. With that in mind and comment 5 I'm moving this to ON_QA.


[1] https://github.com/openshift/origin/issues/8440#issuecomment-220026812

Comment 9 chunchen 2016-05-27 01:55:10 UTC
Mark it as verified according to comment #5.


Note You need to log in before you can comment on or make changes to this bug.