#12664 OpenShift worker logs are not archived on log01
Closed: Fixed with Explanation by kevin. Opened by abompard.

I can't find the new openshift worker logs on log01, are the logs sent there at all? Or did I miss them? They used to be in the log directories for worker0X.ocp.iad2.fedoraproject.org.


Metadata Update from @zlopez:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: Needs investigation, OpenShift, low-gain, ops

Yeah, I mentioned this on matrix and started to set things up, but then I realized we should really add this to ansible.

https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/logging/logging-6-2#log6x-clf-6-2

or so is the docs.

I installed the operator and the serivce-account

I can try and get back to it, or if someone else wants to take it on, please feel free. ;)

Basically we want all application logs to go to log01.

The documentation @kevin shared is now returning 404. I assume it's this one https://docs.redhat.com/en/documentation/red_hat_openshift_logging/6.3/html/configuring_logging/index

I see that it is configured to forward to syslog on log01, but I'm not sure what else is missing.

yeah, they moved the docs now... well, I started setting it up, but @abompard setup a post-install config playbook in ansible, and it should really be added there, so I stopped.

Someone needs to add it there and finish the setup. :)

Its on my list, but I would be very happy if someone else did it before I can get to it.

I think the only missing bit was to run:

oc adm policy add-cluster-role-to-user collect-application-logs system:serviceaccount:openshift-logging:logging-collector

I did that and logs are appearing on log01! :tada:

I'm preparing some yaml files in ansible for next time, but I don't know all you've done Kevin. I'll make a PR so you can review it.

Please check that I didn't forget a piece: https://pagure.io/fedora-infra/ansible/pull-request/2785

I had to install the operator on staging, but after that it worked fine.

Do we have some way to install operators from ansible? Or should we just note that we need to install that operator before running this?

Do we have some way to install operators from ansible? Or should we just note that we need to install that operator before running this?

Not that I know of. I don't know how to deploy operators on the CLI, I suppose you have written YAML files and loaded them into Openshift? If it's just that we can do it with Ansible, do you still have those YAML files around somewhere?

I just used the web interface. ;)

There is https://docs.redhat.com/en/documentation/openshift_container_platform/4.19/html/operators/administrator-tasks#olm-installing-operator-from-operatorhub-using-cli_olm-adding-operators-to-a-cluster but it looks kinda complicated...

ok, lets just close this then...

Metadata Update from @kevin:
- Issue close_status updated to: Fixed with Explanation
- Issue status updated to: Closed (was: Open)

Metadata