Bug 1669019
Summary: | Check for file paths outside of /etc/origin/master in master's config fails on auditConfig.policyConfiguratio | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Jatan Malde <jmalde> |
Component: | Installer | Assignee: | Vadim Rutkovsky <vrutkovs> |
Installer sub component: | openshift-ansible | QA Contact: | Gaoyun Pei <gpei> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | high | ||
Priority: | unspecified | CC: | gpei, vrutkovs |
Version: | 3.11.0 | ||
Target Milestone: | --- | ||
Target Release: | 3.11.z | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-02-20 14:11:02 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
Jatan Malde
2019-01-24 07:00:18 UTC
Fix is available in openshift-ansible-3.11.73-1 Could reproduce this bug with openshift-ansible-3.11.59-1 When master has such auditConfig field configured in master-config.yaml auditConfig: auditFilePath: /var/log/origin/audit.log enabled: true logFormat: json policyConfiguration: apiVersion: audit.k8s.io/v1beta1 omitStages: - RequestReceived rules: - level: Metadata nonResourceURLs: - /login* - /oauth* Run openshift-ansible/playbooks/byo/openshift_facts.yml playbook, it would fail as below. TASK [openshift_control_plane : Check for file paths outside of /etc/origin/master in master's config] ********************************************************************** fatal: [ec2-3-81-139-156.compute-1.amazonaws.com]: FAILED! => {"msg": "A string value that appears to be a file path located outside of\n/dev/null, /etc/origin/master/, /var/lib/origin, /etc/origin/cloudprovider, /etc/origin/kubelet-plugins, /usr/libexec/kubernetes/kubelet-plugins, /var/log/origin has been found in /etc/origin/master/master-config.yaml.\nIn 3.10 and newer, all files needed by the master must reside inside of\nthose directories or a subdirectory or it will not be readable by the\nmaster process. Please migrate all files needed by the master into\none of /dev/null, /etc/origin/master/, /var/lib/origin, /etc/origin/cloudprovider, /etc/origin/kubelet-plugins, /usr/libexec/kubernetes/kubelet-plugins, /var/log/origin or a subdirectory and update your master configs before\nproceeding. The string found was: /login*\n***********************\nNOTE: the following items do not need to be migrated, they will be migrated\nfor you: oauthConfig.identityProviders"} Tried again with openshift-ansible-3.11.75-1.git.0.95e8e2a.el7.noarch, this step could pass. TASK [openshift_control_plane : Check for file paths outside of /etc/origin/master in master's config] ********************************************************************** ok: [ec2-3-81-139-156.compute-1.amazonaws.com] => {"changed": false, "msg": "Aight, configs looking good"} 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:0326 |