Bug 1770003 - Deployment picks up wrong image by imagechange trigger
Summary: Deployment picks up wrong image by imagechange trigger
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 3.10.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.3.0
Assignee: Oleg Bulatov
QA Contact: XiuJuan Wang
URL:
Whiteboard:
Depends On:
Blocks: 1757889
TreeView+ depends on / blocked
 
Reported: 2019-11-07 21:54 UTC by Ben Parees
Modified: 2020-01-23 11:12 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of: 1757889
Environment:
Last Closed: 2020-01-23 11:11:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:0062 0 None None None 2020-01-23 11:12:09 UTC

Comment 3 XiuJuan Wang 2019-11-08 05:52:08 UTC
Test Payload: 4.3.0-0.nightly-2019-11-07-172437
Can't reproduce this issue in 4.3 cluster.

$ oc tag xiu/ruby-hello-world:latest  xiu1/ruby-test:qa
$ oc tag xiu1/ruby-test:qa xiu2/ruby-check:qe 
$ oc get  is ruby-check   -n xiu2   -o yaml 
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
  creationTimestamp: "2019-11-08T05:39:25Z"
  generation: 1
  name: ruby-check
  namespace: xiu2
  resourceVersion: "232210"
  selfLink: /apis/image.openshift.io/v1/namespaces/xiu2/imagestreams/ruby-check
  uid: 6fba304f-1f4c-4a48-b415-64afd3454e0b
spec:
  lookupPolicy:
    local: false
  tags:
  - annotations: null
    from:
      kind: ImageStreamImage
      name: ruby-test@sha256:c6e4a702e7365e0b01bfda6bc90184ab56be65d93d481cdefd59aea080eac2a8
      namespace: xiu1
    generation: 1
    importPolicy: {}
    name: qe
    referencePolicy:
      type: Source
status:
  dockerImageRepository: image-registry.openshift-image-registry.svc:5000/xiu2/ruby-check
  publicDockerImageRepository: default-route-openshift-image-registry.apps.qe-groupd-1108.qe.devcluster.openshift.com/xiu2/ruby-check
  tags:
  - items:
    - created: "2019-11-08T05:39:25Z"
      dockerImageReference: image-registry.openshift-image-registry.svc:5000/xiu2/ruby-check@sha256:c6e4a702e7365e0b01bfda6bc90184ab56be65d93d481cdefd59aea080eac2a8
      generation: 1
      image: sha256:c6e4a702e7365e0b01bfda6bc90184ab56be65d93d481cdefd59aea080eac2a8
    tag: qe

$oc get dc ruby-hello-world -n xiu2 -o yaml 
========snip===============
  triggers:
  - type: ConfigChange
  - imageChangeParams:
      automatic: true
      containerNames:
      - ruby-hello-world
      from:
        kind: ImageStreamTag
        name: ruby-check:qe
        namespace: xiu2
      lastTriggeredImage: image-registry.openshift-image-registry.svc:5000/xiu2/ruby-check@sha256:c6e4a702e7365e0b01bfda6bc90184ab56be65d93d481cdefd59aea080eac2a8
    type: ImageChange

$oc describe pods ruby-hello-world-2-85rxw 
=========snip============
  Normal  Pulling    2m19s      kubelet, ip-10-0-172-34.eu-west-1.compute.internal  Pulling image "image-registry.openshift-image-registry.svc:5000/xiu2/ruby-check@sha256:c6e4a702e7365e0b01bfda6bc90184ab56be65d93d481cdefd59aea080eac2a8"
  Normal  Pulled     2m18s      kubelet, ip-10-0-172-34.eu-west-1.compute.internal  Successfully pulled image "image-registry.openshift-image-registry.svc:5000/xiu2/ruby-check@sha256:c6e4a702e7365e0b01bfda6bc90184ab56be65d93d481cdefd59aea080eac2a8"

Comment 5 errata-xmlrpc 2020-01-23 11:11:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0062


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