Bug 1753755 - insights-operator recorder does not respect override interval
Summary: insights-operator recorder does not respect override interval
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Insights Operator
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.4.0
Assignee: Ivan Necas
QA Contact: Angelina Vasileva
Radek Vokál
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-19 18:39 UTC by Clayton Coleman
Modified: 2020-05-04 11:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-04 11:13:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:0581 0 None None None 2020-05-04 11:14:26 UTC

Description Clayton Coleman 2019-09-19 18:39:16 UTC
In CI we set interval to 10m, but the base is 2h.  The reporter runs every 10m, the gatherer every 2h.  The gatherer should also inherit the config.

Comment 3 Angelina Vasileva 2020-02-17 13:50:13 UTC
This is fixed by https://github.com/openshift/insights-operator/pull/40 and I was able to verify it in 4.3.0-0.nightly-2020-02-17-055729.

Verification steps:
# there's a secret that already overrides the default
$ oc logs -n openshift-insights $(oc get pods --namespace=openshift-insights -o custom-columns=:metadata.name --no-headers) | grep Gathering
I0217 13:39:35.035936       1 periodic.go:113] Gathering cluster info every 10m0s

# delete the secret 
$ oc -n openshift-config delete secret support
secret "support" deleted

# add new secret
$ oc -n openshift-config create secret generic support --from-literal=interval=20m --dry-run -o yaml | oc apply -f - -n openshift-config
secret/support created

# restart insights-operator
$ oc delete pods --namespace=openshift-insights --all
pod "insights-operator-568fd7cf58-64h2z" deleted

# check the new gathering interval is applied
$ oc logs -n openshift-insights $(oc get pods --namespace=openshift-insights -o custom-columns=:metadata.name --no-headers) | grep Gathering
I0217 13:44:28.808874       1 periodic.go:113] Gathering cluster info every 20m0s

Comment 6 errata-xmlrpc 2020-05-04 11:13:57 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:0581


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