Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fluentd pods crashing specified cert path does not exist:/var/run/ocp-collector/secrets/openshift-logforwarding-splunk/ca-bundle.crt" #2

Open
walidshaari opened this issue Aug 11, 2020 · 8 comments

Comments

@walidshaari
Copy link

walidshaari commented Aug 11, 2020

Hi Andrew,

I follow your README file, installed the local splunk, however when I try to deploy the openshift-logforwarding-splunk

helm upgrade -i --namespace=openshift-logging openshift-logforwarding-splunk charts/openshift-logforwarding-splunk/ --set forwarding.splunk.token=4a8a737d-5452-426c-a6f7-106dca4e813f

fluentd pods start crashing loop and I get the error "specified cert path does not exist:/var/run/ocp-collector/secrets/openshift-logforwarding-splunk/ca-bundle.crt" so I thought maybe I am not using the right value so I specify the values.yaml file using -f option, same error, I do not do upgrade, but I uninstall and deploy

helm upgrade -i --namespace=openshift-logging openshift-logforwarding-splunk charts/openshift-logforwarding-splunk/ -f charts/openshift-logforwarding-splunk/values.yaml --set forwarding.splunk.token=4a8a737d-5452-426c-a6f7-106dca4e813f 

then I use both -f and --set

helm upgrade -i --namespace=openshift-logging openshift-logforwarding-splunk charts/openshift-logforwarding-splunk/ -f charts/openshift-logforwarding-splunk/values.yaml --set forwarding.splunk.token=4a8a737d-5452-426c-a6f7-106dca4e813f  --set forwarding.fluentd.caFile=./charts/openshift-logforwarding-splunk/files/default-openshift-logging-fluentd.crt
#oc logs fluentd-4s9xl

2020-08-11 06:54:28 +0000 [error]: config error file="/etc/fluent/fluent.conf" error_class=Fluent::ConfigError error="specified cert path does not exist:/var/run/ocp-collector/secrets/openshift-logforwarding-splunk/ca-bundle.crt"

# oc logs fluentd-mx548

2020-08-11 14:10:27 +0000 [error]: config error file="/etc/fluent/fluent.conf" error_class=Fluent::ConfigError error="specified cert path does not exist:/var/run/ocp-collector/secrets/openshift-logforwarding-splunk/ca-bundle.crt"

confession: I have not read your book yet, I promise I will do soon, any hints where I have gone wrong?

@sabre1041
Copy link
Owner

Just tested it on OpenShift 4.5 using the steps described in this issue. Deployed without issues. Can you share more about your environment and any additional information that you can provide?

@walidshaari
Copy link
Author

walidshaari commented Sep 2, 2020

its disconnected 4.5 installation, will check again tomorrow, it is at work
its when I select SSL value for Fluentd to be false.

@sabre1041
Copy link
Owner

@walidshaari any update?

@walidshaari
Copy link
Author

I have to enable the TLS, if I enable TLS I do not have any issues.

@sabre1041
Copy link
Owner

@walidshaari Is this in fluentd as part of the integrated OCP or as part of the forwarder?

@walidshaari
Copy link
Author

I believe it is the fluentd communication with each other as part of the OCP, not the forwarder

@sabre1041
Copy link
Owner

@walidshaari I looked into the issue. there should be a secret called openshift-logforwarding-splunk in the openshift namespace with a key called ca-bundle.crt.

https://github.com/sabre1041/openshift-logforwarding-splunk/blob/master/charts/openshift-logforwarding-splunk/templates/log-forwarding-splunk-secret.yaml#L21

This is what the fluentd pod is trying to locate, but is failing

@walidshaari
Copy link
Author

yes, I can try again next week, but no matter how I did it last time, worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants