Bug 1495103

Summary: audit log doesn't work now
Product: OpenShift Container Platform Reporter: ge liu <geliu>
Component: MasterAssignee: Maciej Szulik <maszulik>
Status: CLOSED ERRATA QA Contact: Wang Haoran <haowang>
Severity: high Docs Contact:
Priority: high    
Version: 3.7.0CC: aos-bugs, chuyu, jokerman, mmccomas, yinzhou
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Inappropriate master initialization, which was swallowing the bits of configuration responsible for auditing. Consequence: The audit was not enabled properly. Fix: Fix the master initiation so that audit properties are passed accordingly. Result: Audit is working as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-28 22:12:28 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 ge liu 2017-09-25 08:21:49 UTC
Description of problem:

Config audit log in master-config.yaml, then restart openshift master service, the audit log file have not be created as expected.
 Setup audit in master-config file:

auditConfig:
  auditFilePath: "/var/log/audit-ocp.log"
  enabled: true
  maximumFileRetentionDays: 10
  maximumFileSizeMegabytes: 10
  maximumRetainedFiles: 10



openshift v3.7.0-0.127.0
kubernetes v1.7.0+80709908fd
etcd 3.2.1

How reproducible:
Always


Steps to Reproduce:

As description above.

Actual results:
audit log have not be created.
Expected results:
audit log be created.

Comment 1 Maciej Szulik 2017-09-26 08:41:39 UTC
There was a bug that was resolved when enabling advanced audit [1]. You need to wait for a build with that in. 


[1] https://github.com/openshift/origin/pull/16128

Comment 2 Maciej Szulik 2017-09-27 05:49:08 UTC
Just checked builds starting from 3.7.0-0.128.0] should have that fix.

Comment 3 ge liu 2017-09-27 09:10:20 UTC
We will test it after puddle:3.7.0-0.128.0 ready for using.

Comment 4 ge liu 2017-09-28 08:25:56 UTC
Verified with ocp version:
openshift v3.7.0-0.131.0
kubernetes v1.7.0+80709908fd
etcd 3.2.1

Verified steps are following recreate steps.

Comment 8 errata-xmlrpc 2017-11-28 22:12:28 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, 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-2017:3188