Bug 1325727

Summary: oc import-image --insecure with specific tag creates istag that points to :latest
Product: OKD Reporter: chunchen <chunchen>
Component: Image RegistryAssignee: Maciej Szulik <maszulik>
Status: CLOSED CURRENTRELEASE QA Contact: Wei Sun <wsun>
Severity: high Docs Contact:
Priority: high    
Version: 3.xCC: aos-bugs, chunchen, ffranz, maszulik, mfojtik, mmccomas, pweil, wsun
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:50: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:
Bug Depends On:    
Bug Blocks: 1324357    

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.