Bug 1912208

Summary: ose-elasticsearch-proxy@dummy-sha in openshift-ose-elasticsearch-operator-bundle:v5.0.0
Product: OpenShift Container Platform Reporter: Anping Li <anli>
Component: LoggingAssignee: Vimal Kumar <vimalkum>
Status: CLOSED ERRATA QA Contact: Anping Li <anli>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.7CC: aos-bugs, periklis
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: logging-core
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 11:22:33 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:

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