Bug 1694014
| Summary: | Custom fact file /etc/ansible/facts.d/openshift.fact not updated with inventory changes | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Ravi Trivedi <travi> |
| Component: | Installer | Assignee: | Vadim Rutkovsky <vrutkovs> |
| Installer sub component: | openshift-ansible | QA Contact: | Gaoyun Pei <gpei> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | high | ||
| Priority: | high | CC: | vrutkovs |
| Version: | 3.11.0 | ||
| Target Milestone: | --- | ||
| Target Release: | 3.11.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-11-18 14:52:08 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
Ravi Trivedi
2019-03-29 10:15:31 UTC
Fact caching is controlled by Ansible settings, see https://docs.ansible.com/ansible/latest/plugins/cache.html Are you using default ansible.cfg from Ansible, a custom one or the one included in the repo? What does "ansible-config view" show? If you're using a custom ansible.cfg please add '-c <path to config>' switch Created attachment 1556122 [details]
ansible-config-c_ansible.cfg
Verify this bug using openshift-ansible-3.11.154-1.git.0.7a11cbe.el7.noarch.rpm
1. Spin up a 3.11 cluster with setting the following openshift_master_audit_config in ansible inventory file
openshift_master_audit_config={"enabled": true, "auditFilePath": "/var/lib/origin/openshift-audit.log", "maximumFileRetentionDays": 10, "maximumFileSizeMegabytes": 10, "maximumRetainedFiles": 3}
2. Check the generated /etc/ansible/facts.d/openshift.fact
# cat /etc/ansible/facts.d/openshift.fact | python -m json.tool
{
...
"audit_config": {
"auditFilePath": "/var/lib/origin/openshift-audit.log",
"enabled": true,
"maximumFileRetentionDays": 10,
"maximumFileSizeMegabytes": 10,
"maximumRetainedFiles": 3
},
3. Change openshift_master_audit_config in inventory file to:
openshift_master_audit_config={"enabled": true, "auditFilePath": "/var/lib/origin/openshift-audit.log", "maximumFileRetentionDays": 11, "maximumFileSizeMegabytes": 10, "maximumRetainedFiles": 3}
4. Run playbook playbooks/openshift-master/config.yml
5. Check the generated /etc/ansible/facts.d/openshift.fact again
# cat /etc/ansible/facts.d/openshift.fact | python -m json.tool
{
...
"audit_config": {
"auditFilePath": "/var/lib/origin/openshift-audit.log",
"enabled": true,
"maximumFileRetentionDays": 11,
"maximumFileSizeMegabytes": 10,
"maximumRetainedFiles": 3
},
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-2019:3817 |