Bug 1912208 - ose-elasticsearch-proxy@dummy-sha in openshift-ose-elasticsearch-operator-bundle:v5.0.0
Summary: ose-elasticsearch-proxy@dummy-sha in openshift-ose-elasticsearch-operator-bun...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 4.7.0
Assignee: Vimal Kumar
QA Contact: Anping Li
URL:
Whiteboard: logging-core
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-04 05:51 UTC by Anping Li
Modified: 2021-02-24 11:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 11:22:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:0652 0 None None None 2021-02-24 11:22:56 UTC

Description Anping Li 2021-01-04 05:51:46 UTC
Description of problem:
The digest ID is dummy-sha for ose-elasticsearch-proxy in openshift-ose-elasticsearch-operator-bundle:v5.0.0. It should use the real digest ID.


How reproducible:
Always

Steps to Reproduce:
1. oc image extract registry-proxy.engineering.redhat.com/rh-osbs/openshift-ose-elasticsearch-operator-bundle:v5.0.9-11 --confirm
2. cat manifests/elasticsearch-operator.v5.0.0.clusterserviceversion.yaml  |grep relatedImages -A 10
  relatedImages:
  - image: registry.redhat.io/openshift4/ose-elasticsearch-operator@sha256:913d53e4251ea699a0e98d911cd04517609ec2a9695f2efec3a2ebb16c802b2e
    name: ose-elasticsearch-operator
  - image: registry.redhat.io/openshift4/ose-elasticsearch-proxy@dummy-sha
    name: ose-elasticsearch-proxy
  - image: registry.redhat.io/openshift4/ose-logging-elasticsearch6@sha256:2bd5dc9c99b982b8686b4a31c0262e36e69d17b099df2165ec5b711ea1dd916a
    name: ose-logging-elasticsearch6
  - image: registry.redhat.io/openshift4/ose-logging-kibana6@sha256:578a3b3c9f8d01ce58cf66dadb2ce0798d37b38e292d981763518d213b2644cb
    name: ose-logging-kibana6
  - image: registry.redhat.io/openshift4/ose-oauth-proxy@sha256:2c001cb8379f9e592b903356e17deeb117e63d1861a0e4bc261e2a1cc8b50b52
    name: ose-oauth-proxy

Actual results:
  - image: registry.redhat.io/openshift4/ose-elasticsearch-proxy@dummy-sha
    name: ose-elasticsearch-proxy

Expected results:
  The real digest ID(Sha) rather than the word 'dummy-sha'

Comment 1 Vimal Kumar 2021-01-05 13:57:47 UTC
There is a LABEL called "name" in the Dockerfile which should have prefix "ose-". All components CLO, EO, ES etc have this prefix. This prefix was missing in the in elasticsearch proxy

This has to be fixed in logging midstream repo. and the same has been fixed.

The git log of elasticsearch proxy dist-git repo (https://pkgs.devel.redhat.com/cgit/containers/elasticsearch-proxy/) shows:



diff --git a/Dockerfile.in b/Dockerfile.in
index de2dd41..46114b5 100644
--- a/Dockerfile.in
+++ b/Dockerfile.in
@@ -20,7 +20,9 @@ ENTRYPOINT ["/usr/bin/elasticsearch-proxy"]
 LABEL \
         io.k8s.display-name="OpenShift ElasticSearch Proxy" \
         io.k8s.description="OpenShift ElasticSearch Proxy component of OpenShift Cluster Logging" \
-        name="openshift/elasticsearch-proxy" \
+        io.openshift.tags="openshift,logging,elasticsearch" \
+        maintainer="AOS Logging <aos-logging>" \
+        name="openshift/ose-elasticsearch-proxy" \
         com.redhat.component="elasticsearch-proxy-container" \
         io.openshift.maintainer.product="OpenShift Container Platform" \
         io.openshift.maintainer.component="Logging" \


The CSV in elasticsearch operator bundle shows
    name: ose-elasticsearch-proxy
  - image: registry.redhat.io/openshift4/ose-logging-elasticsearch6@sha256:2bd5dc9c99b982b8686b4a31c0262e36e69d17b099df2165ec5b711ea1dd916a

Comment 2 Vimal Kumar 2021-01-05 14:57:36 UTC
moving the bug manually to MODIFIED as there is no upstream PR to fix this. This bug was fixed in midstream.

Comment 3 Anping Li 2021-01-05 15:56:48 UTC
Fixed in elasticsearch-operator-bundle-container-v5.0.9-14
  - image: registry.redhat.io/openshift4/ose-elasticsearch-proxy@sha256:f4b79578d06e1ef09100f79dd87749b57b46d48f8ec60c52665738fd2afe4454
    name: ose-elasticsearch-proxy

Comment 7 errata-xmlrpc 2021-02-24 11:22:33 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 (Errata Advisory for Openshift Logging 5.0.0), 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-2021:0652


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