Bug 1365660 - Developers unable to promptly use the latest image from a remote repository
Summary: Developers unable to promptly use the latest image from a remote repository
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image Registry
Version: 3.x
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-09 19:01 UTC by Qian Cai
Modified: 2016-08-09 19:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-09 19:45:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qian Cai 2016-08-09 19:01:23 UTC
Description of problem:
If an image is already existed in the openshift pulled from a remote repository like docker,io,

$ oc get is
NAME         DOCKER REPO                             TAGS      UPDATED
ocfedora     172.30.38.247:5000/caiqian/ocfedora     latest    48 minutes ago

later, someone pushed an updated image to docker.io,

# docker push caiqian/ocfedora

subsequent using of that image in openshift will still use the old image.

$ oc new-app caiqian/ocfedora
$ oc get is
NAME         DOCKER REPO                             TAGS      UPDATED
ocfedora     172.30.38.247:5000/caiqian/ocfedora     latest    54 minutes ago

$ oc new-app --docker-image=docker.io/caiqian/ocfedora
--> Found Docker image 50a7e62 (About an hour old) from docker.io for "docker.io/caiqian/ocfedora"

    * An image stream will be created as "ocfedora:latest" that will track this image
    * This image will be deployed in deployment config "ocfedora"
    * The image does not expose any ports - if you want to load balance or send traffic to this component
      you will need to create a service with 'expose dc/ocfedora --port=[port]' later

--> Creating resources with label app=ocfedora ...
    error: imagestreams "ocfedora" already exists
    deploymentconfig "ocfedora" created

 
Version-Release number of selected component (if applicable):
https://console.ded-int-gcp.openshift.com/

How reproducible:
always

Comment 1 Qian Cai 2016-08-09 19:18:22 UTC
And, it seems does not allow you to change the pull spec of the image from the console as well. The change is lost after clicked "Save".

Comment 2 Qian Cai 2016-08-09 19:38:31 UTC
The only way I found working so far is to delete the image stream entirely.


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