Bug 1767629

Summary: Metering - openshift-metering/hive-metastore-0 - Exception in thread "main" MetaException(message:java.lang.ClassNotFoundException: Class com.google.cloud.hadoop.fs.gcs.GoogleHadoopFileSystem not found)
Product: OpenShift Container Platform Reporter: Mattia Mascia <mmascia>
Component: Metering OperatorAssignee: Brett Tofel <btofel>
Status: CLOSED ERRATA QA Contact: Peter Ruan <pruan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.zCC: emoss, sd-operator-metering, tflannag
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The Hadoop Dockerfile.rhel copied the gcs-connector jar to the wrong location in the container. Now, the path has been corrected to point to the right location.
Story Points: ---
Clone Of:
: 1767634 (view as bug list) Environment:
Last Closed: 2020-01-23 11:10:15 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: 1767634    
Attachments:
Description Flags
hive metastore container log none

Description Mattia Mascia 2019-10-31 20:38:24 UTC
Created attachment 1631228 [details]
hive metastore container log

Description of problem:

Currently, the hive metastore application goes in an exception at startup.

This is happening only on the openshift4/ose-metering-hive:4.2 image (metastore container). the upstream image openshift/origin-metering-hive:4.2 is working fine.

In attach the full logs.

I guess is a matter to propagate the fix in downstream.

The workaround is to override the hive repository:

apiVersion: metering.openshift.io/v1
kind: MeteringConfig
metadata:
  name: operator-metering
  namespace: openshift-metering
spec:
  hive:
    spec:
      image:
        repository: quay.io/openshift/origin-metering-hive
        tag: '4.2'
  storage:
    hive:
      gcs:
        bucket: pro-reports
        region: europe-west3
        secretName: gcs-secret
      type: gcs
    type: hive


Version-Release number of selected component (if applicable): 4.2


How reproducible: Deploy OpenShift Metering


Steps to Reproduce:
1. Install Red Hat OpenShift Metering Operator with Operator Hub
2. Create a simple MeteringConfig
3. Check start up log of metastore container in the hive-metastore statefulset.

Actual results:
- CrashLoopBackoff

Expected results:
- Start correctly

Additional info:

Comment 2 Peter Ruan 2019-11-06 18:03:48 UTC
verified with     image: quay.io/openshift/origin-metering-hive:4.2

Comment 5 errata-xmlrpc 2020-01-23 11:10:15 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