Skip to content

Add log directory to MicroShift config#465

Merged
mangelajo merged 1 commit intomainfrom
fix_463
Nov 19, 2021
Merged

Add log directory to MicroShift config#465
mangelajo merged 1 commit intomainfrom
fix_463

Conversation

@oglok
Copy link
Copy Markdown
Contributor

@oglok oglok commented Nov 18, 2021

Signed-off-by: Ricardo Noriega rnoriega@redhat.com

Closes #463

Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
@cooktheryan
Copy link
Copy Markdown
Contributor

/assign cooktheryan

@cooktheryan
Copy link
Copy Markdown
Contributor

[root@fedora ~]# tail -f /var/log/microshift/openshift-apiserver/audit.log 
{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Metadata","auditID":"82bd1477-45f5-4178-9cb3-9e92c7a4080a","stage":"ResponseComplete","requestURI":"/openapi/v2","verb":"get","user":{"username":"system:masters","groups":["system:admin","system:masters","system:authenticated"]},"sourceIPs":["192.168.122.193"],"responseStatus":{"metadata":{},"code":304},"requestReceivedTimestamp":"2021-11-18T18:54:45.677923Z","stageTimestamp":"2021-11-18T18:54:45.678878Z","annotations":{"authorization.k8s.io/decision":"allow","authorization.k8s.io/reason":""}}
{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Metadata","auditID":"1e5a73b9-6da9-4f0f-afd6-a58ef1360a75","stage":"ResponseComplete","requestURI":"/apis/route.openshift.io/v1/routes?limit=500\u0026resourceVersion=0","verb":"list","user":{"username":"system:masters","groups":["system:admin","system:masters","system:authenticated"]},"sourceIPs":["192.168.122.193"],"userAgent":"openshift-router/v0.0.0 (linux/amd64) kubernetes/$Format","objectRef":{"resource":"routes","apiGroup":"route.openshift.io","apiVersion":"v1"},"responseStatus":{"metadata":{},"code":200},"requestReceivedTimestamp":"2021-11-18T18:54:46.366803Z","stageTimestamp":"2021-11-18T18:54:46.367431Z","annotations":{"authorization.k8s.io/decision":"allow","authorization.k8s.io/reason":""}}
{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Metadata","auditID":"e0751ab8-c4ae-423d-bcf1-3f4cd4ae520a","stage":"ResponseComplete","requestURI":"/openapi/v2","verb":"get","user":{"username":"system:masters","groups":["system:admin","system:masters","system:authenticated"]},"sourceIPs":["192.168.122.193"],"responseStatus":{"metadata":{},"code":304},"requestReceivedTimestamp":"2021-11-18T18:54:46.602374Z","stageTimestamp":"2021-11-18T18:54:46.603519Z","annotations":{"authorization.k8s.io/decision":"allow","authorization.k8s.io/reason":""}}
{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Metadata","auditID":"77364190-202e-4b63-9791-f21a963b78fa","stage":"ResponseComplete","requestURI":"/openapi/v2","verb":"get","user":{"username":"system:masters","groups":["system:admin","system:masters","system:authenticated"]},"sourceIPs":["192.168.122.193"],"responseStatus":{"metadata":{},"code":304},"requestReceivedTimestamp":"2021-11-18T18:54:47.723411Z","stageTimestamp":"2021-11-18T18:54:47.724795Z","annotations":{"authorization.k8s.io/decision":"allow","authorization.k8s.io/reason":""}}
{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Metadata","auditID":"c3c67a6c-7bfd-4119-92c5-6cefb1be80a1","stage":"ResponseComplete","requestURI":"/openapi/v2","verb":"get","user":{"username":"system:masters","groups":["system:admin","system:masters","system:authenticated"]},"sourceIPs":["192.168.122.193"],"responseStatus":{"metadata":{},"code":304},"requestReceivedTimestamp":"2021-11-18T18:55:42.128245Z","stageTimestamp":"2021-11-18T18:55:42.133379Z","annotations":{"authorization.k8s.io/decision":"allow","authorization.k8s.io/reason":""}}
{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Metadata","auditID":"15972615-471b-44e0-aab5-4616f10a3227","stage":"ResponseComplete","requestURI":"/openapi/v2","verb":"get","user":{"username":"system:masters","groups":["system:admin","system:masters","system:authenticated"]},"sourceIPs":["192.168.122.193"],"responseStatus":{"metadata":{},"code":304},"requestReceivedTimestamp":"2021-11-18T18:55:42.932969Z","stageTimestamp":"2021-11-18T18:55:42.936098Z","annotations":{"authorization.k8s.io/decision":"allow","authorization.k8s.io/reason":""}}
{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Metadata","auditID":"0738a111-0695-4960-b211-7898fe4d06ff","stage":"ResponseComplete","requestURI":"/openapi/v2","verb":"get","user":{"username":"system:masters","groups":["system:admin","system:masters","system:authenticated"]},"sourceIPs":["192.168.122.193"],"responseStatus":{"metadata":{},"code":304},"requestReceivedTimestamp":"2021-11-18T18:55:44.814402Z","stageTimestamp":"2021-11-18T18:55:44.816444Z","annotations":{"authorization.k8s.io/decision":"allow","authorization.k8s.io/reason":""}}
{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Metadata","auditID":"7899d5f1-2f50-413f-bb4e-1d8c78c21e3e","stage":"ResponseComplete","requestURI":"/openapi/v2","verb":"get","user":{"username":"system:masters","groups":["system:admin","system:masters","system:authenticated"]},"sourceIPs":["192.168.122.193"],"responseStatus":{"metadata":{},"code":304},"requestReceivedTimestamp":"2021-11-18T18:55:45.681768Z","stageTimestamp":"2021-11-18T18:55:45.683935Z","annotations":{"authorization.k8s.io/decision":"allow","authorization.k8s.io/reason":""}}
{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Metadata","auditID":"3f259dfa-a1ee-4d6d-95e7-af3e8724be2a","stage":"ResponseComplete","requestURI":"/openapi/v2","verb":"get","user":{"username":"system:masters","groups":["system:admin","system:masters","system:authenticated"]},"sourceIPs":["192.168.122.193"],"responseStatus":{"metadata":{},"code":304},"requestReceivedTimestamp":"2021-11-18T18:55:46.605424Z","stageTimestamp":"2021-11-18T18:55:46.608262Z","annotations":{"authorization.k8s.io/decision":"allow","authorization.k8s.io/reason":""}}
{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Metadata","auditID":"e43584f2-1d91-48aa-bac7-9ef7b341277b","stage":"ResponseComplete","requestURI":"/openapi/v2","verb":"get","user":{"username":"system:masters","groups":["system:admin","system:masters","system:authenticated"]},"sourceIPs":["192.168.122.193"],"responseStatus":{"metadata":{},"code":304},"requestReceivedTimestamp":"2021-11-18T18:55:47.732991Z","stageTimestamp":"2021-11-18T18:55:47.739493Z","annotations":{"authorization.k8s.io/decision":"allow","authorization.k8s.io/reason":""}}
^C
[root@fedora ~]# getenforce
Enforcing

@cooktheryan
Copy link
Copy Markdown
Contributor

/test e2e-openshift-conformance-sig-auth

@cooktheryan
Copy link
Copy Markdown
Contributor

false /test e2e-openshift-conformance-sig-storage

@oglok oglok self-assigned this Nov 18, 2021
@cooktheryan
Copy link
Copy Markdown
Contributor

/test e2e-openshift-conformance-sig-api-machinery

@cooktheryan
Copy link
Copy Markdown
Contributor

retest

@mangelajo
Copy link
Copy Markdown
Contributor

/lgtm
/retest

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Nov 19, 2021
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Nov 19, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mangelajo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 19, 2021
@mangelajo mangelajo merged commit f4b3409 into main Nov 19, 2021
@fzdarsky fzdarsky deleted the fix_463 branch December 7, 2021 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] default log locations for apiserver should be /var/log not /

3 participants