Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1964623

Summary: [master] File system usage not being logged appropriately
Product: OpenShift Container Platform Reporter: Trey West <trwest>
Component: assisted-installerAssignee: Moti Asayag <masayag>
assisted-installer sub component: Deployment Operator QA Contact: bjacot
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aos-bugs
Version: 4.8Keywords: Triaged
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AI-Team-Core KNI-EDGE-4.8
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1974746 (view as bug list) Environment:
Last Closed: 2021-10-18 17:31:45 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: 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