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

Bug 1676565

Summary: openshift_node/defaults/main.yml using a wrong journald value
Product: OpenShift Container Platform Reporter: Javier Ramirez <javier.ramirez>
Component: InstallerAssignee: Russell Teague <rteague>
Installer sub component: openshift-ansible QA Contact: Johnny Liu <jialiu>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aos-bugs, gpei, jokerman, mmccomas
Version: 3.11.0   
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Default journald configuration had SystemKeepFree parameter set to percentages Consequence: journald doesn't accept percentage values in SystemKeepFree, so this setting had no effect and could cause disk to be filled up Fix: This parameter was removed from default settings Result: Users have to update journald_vars_to_replace with absolute value in SystemKeepFree to avoid disk filling in
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-14 18:47:23 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:

Description Javier Ramirez 2019-02-12 15:06:33 UTC
Description of problem:
In /roles/openshift_node/defaults/main.yml there is a setting - { var: SystemKeepFree, val: 20% } that is incorrect, journald doesnt accept percentages as input for config files as specified in https://bugzilla.redhat.com/show_bug.cgi?id=874631 '

This cause log disk filling up because of wrong default configuration settings in openshift-ansible.

How reproducible:
Always

Actual results:
Log disk filling up because of wrong default configuration settings in openshift-ansible.

Expected results:
Good journald settings to be used


Additional info:
While We wait until https://bugzilla.redhat.com/show_bug.cgi?id=874631 is resolved and therefore the percentage value would be correct, we should ammend the main.yml file with a fixed value like:
- { var: SystemKeepFree, val: 1G }

Comment 1 Scott Dodson 2019-02-12 19:58:30 UTC
Reading through the referenced bug it seems like the default if not specified is 15% but when specifying a value it must be in absolute units. So I think we should just drop this value as it's not possible to specify a percentage via configuration and it's not possible to come up with a reasonable absolute value otherwise.

Comment 2 Javier Ramirez 2019-02-13 11:24:36 UTC
Created upstream Pull Request:
https://github.com/openshift/openshift-ansible/pull/11187

Comment 3 Scott Dodson 2019-02-13 15:01:58 UTC
Thanks Javier!

Comment 4 Vadim Rutkovsky 2019-02-20 09:47:18 UTC
Fix is available in openshift-ansible-3.11.84-1

Comment 5 Gaoyun Pei 2019-02-21 02:56:12 UTC
Verify this bug with openshift-ansible-3.11.87-1.git.0.a7b07ff.el7.noarch.rpm

SystemKeepFree was removed from roles/openshift_node/defaults/main.yml

After a fresh installation, no such setting in journald.conf

[root@qe-gpei-2master-registry-router-etcd-1 ~]# grep SystemKeepFree /etc/systemd/journald.conf
[root@qe-gpei-2master-registry-router-etcd-1 ~]#