Bug 1829833

Summary: Metering has significant performance issues when using Ansible 2.9.6 and above.
Product: OpenShift Container Platform Reporter: tflannag
Component: Metering OperatorAssignee: tflannag
Status: CLOSED ERRATA QA Contact: Peter Ruan <pruan>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.4CC: bparees, sd-operator-metering
Target Milestone: ---   
Target Release: 4.4.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1829836 (view as bug list) Environment:
Last Closed: 2020-05-18 13:35:03 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: 1829836    
Bug Blocks:    

Comment 1 Ben Parees 2020-04-30 13:58:21 UTC
moving to urgent, we need this to land in the first z-stream after 4.4.0GA.  Ping me if you run into patch manager approval questions.

Comment 5 Peter Ruan 2020-05-11 16:39:46 UTC
Verified with build 4.4.0-0.nightly-2020-05-08-224132.  Which has version metering-operator.4.4.0-202005081957. Metering installation was successful and reports can be generated.  

sh-4.2$ ansible --version
ansible 2.9.7
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/usr/share/ansible/openshift']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Sep 26 2019, 13:23:47) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
sh-4.2$ 

pruan@MacBook-Pro ~/workspace/v3-testfiles/metering/rollup_reports (master●)$ oc get installplan
NAME            CSV                                    APPROVAL    APPROVED
install-ntfxv   metering-operator.4.4.0-202005081957   Automatic   true

pruan@MacBook-Pro ~/workspace/v3-testfiles/metering/rollup_reports (master●)$ oc get reports
NAME                              QUERY                         SCHEDULE   RUNNING    FAILED   LAST REPORT TIME       AGE
namespace-memory-usage-now        namespace-memory-usage                   Finished            2020-12-30T23:59:59Z   29m
persistentvolumeclaim-usage-now   persistentvolumeclaim-usage              Finished            2020-12-30T23:59:59Z   10s

Comment 6 Peter Ruan 2020-05-11 16:58:40 UTC
The ansible installation has added benefit of quicker execution time.  The following output shows time delta

pruan@MacBook-Pro ~/workspace/gocode/src/github.com/operator-framework/operator-metering (master●)$ oc get pods
NAME                                  READY   STATUS    RESTARTS   AGE
hive-metastore-0                      2/2     Running   0          2m38s
hive-server-0                         3/3     Running   0          2m39s
metering-operator-7688c5cd5f-bp6df    2/2     Running   0          4m54s
presto-coordinator-0                  2/2     Running   0          2m19s
reporting-operator-67b74bbf57-ww8tc   2/2     Running   0          117s

Comment 8 errata-xmlrpc 2020-05-18 13:35:03 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:2133