Bug 1964623 - [master] File system usage not being logged appropriately
Summary: [master] File system usage not being logged appropriately
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.9.0
Assignee: Moti Asayag
QA Contact: bjacot
URL:
Whiteboard: AI-Team-Core KNI-EDGE-4.8
Depends On:
Blocks: 1974746
TreeView+ depends on / blocked
 
Reported: 2021-05-25 19:17 UTC by Trey West
Modified: 2021-10-18 17:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1974746 (view as bug list)
Environment:
Last Closed: 2021-10-18 17:31:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 1888 0 None open Bug 1964623: Tune FS disk usage log messages 2021-06-02 05:57:01 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:32:04 UTC

Internal Links: 1974746

Description Trey West 2021-05-25 19:17:18 UTC
Description of problem:

When file system usage is below 80%, I am not seeing an info level log per hour. Similarly, when file system usage is above 80%, I am not seeing a warning level log every 5 minutes. 


How reproducible:
100%

Steps to Reproduce:
1. On an assisted operator cluster, create ClusterDeployment, AgentClusterInstall, and InfraEnv
2. Check the frequency of filesystem usage logs coming from assisted-service

Actual results:

File system logs are generated in unpredictable intervals, for example:

[root@sealusa55 ~]# oc logs assisted-service-9f7979b45-bbv4c -c assisted-service -n assisted-installer | grep usage
time="2021-05-12T19:36:35Z" level=info msg="Filesystem '/data/' usage is 68.6%" func="github.com/openshift/assisted-service/pkg/s3wrapper.(*FSClientDecorator).conditionalLog" file="/go/src/github.com/openshift/origin/pkg/s3wrapper/filesystem.go:448"
time="2021-05-12T21:04:09Z" level=info msg="Filesystem '/data/' usage is 70.5%" func="github.com/openshift/assisted-service/pkg/s3wrapper.(*FSClientDecorator).conditionalLog" file="/go/src/github.com/openshift/origin/pkg/s3wrapper/filesystem.go:448"
time="2021-05-12T22:04:09Z" level=info msg="Filesystem '/data/' usage is 70.6%" func="github.com/openshift/assisted-service/pkg/s3wrapper.(*FSClientDecorator).conditionalLog" file="/go/src/github.com/openshift/origin/pkg/s3wrapper/filesystem.go:448"
time="2021-05-12T23:34:09Z" level=info msg="Filesystem '/data/' usage is 70.7%" func="github.com/openshift/assisted-service/pkg/s3wrapper.(*FSClientDecorator).conditionalLog" file="/go/src/github.com/openshift/origin/pkg/s3wrapper/filesystem.go:448"
time="2021-05-13T01:04:09Z" level=info msg="Filesystem '/data/' usage is 70.8%" func="github.com/openshift/assisted-service/pkg/s3wrapper.(*FSClientDecorator).conditionalLog" file="/go/src/github.com/openshift/origin/pkg/s3wrapper/filesystem.go:448"
time="2021-05-13T04:04:09Z" level=info msg="Filesystem '/data/' usage is 70.9%" func="github.com/openshift/assisted-service/pkg/s3wrapper.(*FSClientDecorator).conditionalLog" file="/go/src/github.com/openshift/origin/pkg/s3wrapper/filesystem.go:448"
time="2021-05-13T07:34:09Z" level=info msg="Filesystem '/data/' usage is 71.0%" func="github.com/openshift/assisted-service/pkg/s3wrapper.(*FSClientDecorator).conditionalLog" file="/go/src/github.com/openshift/origin/pkg/s3wrapper/filesystem.go:448"
time="2021-05-13T11:04:09Z" level=info msg="Filesystem '/data/' usage is 71.1%" func="github.com/openshift/assisted-service/pkg/s3wrapper.(*FSClientDecorator).conditionalLog" file="/go/src/github.com/openshift/origin/pkg/s3wrapper/filesystem.go:448"

Expected results:
Less than 80% utilized filesystem outputs logs every hour and 80% or above utilized filesystem outputs logs every 5 minutes

Comment 5 errata-xmlrpc 2021-10-18 17:31:45 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), 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/RHSA-2021:3759


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