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
Bug in logging-deployer's handling of dynamic persistent volume claims? #224
Comments
You are right, that value is only defined if given in the deployer template parameter, and not if you put it in the configmap as intended. So this is a bug. It should be |
This is the reason for what was reported in bug https://bugzilla.redhat.com/show_bug.cgi?id=1371852 too. |
Missed the second part. I wouldn't |
Fix openshift#224 which notes that several variables are referred to in the install script in uppercase which only works if they were passed in as env vars, not via the configmap. Now the lowercase, mapped versions are used.
Thanks @sosiouxme for the quick fix! (and sorry for being too slow to contribute) I also verified the fix in our own openshift cluster. |
Fix openshift/origin-aggregated-logging#224 which notes that several variables are referred to in the install script in uppercase which only works if they were passed in as env vars, not via the configmap. Now the lowercase, mapped versions are used.
Hi, I'm trying to use the logging-deployer with dynamic persistent claims via:
"""
es-pvc-dynamic
Set to true to have created persistent volume claims annotated so that their backing storage can be dynamically provisioned (if that is available for your cluster).
"""
per: https://docs.openshift.org/latest/install_config/aggregate_logging.html
The logging-deployer isn't creating the persistent volume claims :( and I think it may be due to an undefined variable in the install.sh logging-deployer script.
From line 392:
ES_PVC_SIZE
isn't defined anywhere. It looks like the variable should bees_pvc_size
instead ofES_PVC_SIZE
. I looked at the file history and it looks like this bug was introduced in:0b455a7
Also, I noticed that the top of the
install.sh
script includesset -ex
. Have you considered doingset -eux
? The extra-u
will cause an error on an undefined variable, which would make it easier to catch undefined variable bugs.Is that correct or am I misunderstanding something? If it is a bug, would you like me to submit a pull request? I'm not sure how you manage contributors, pull requests, and code review, but if you point me in the right direction I'd be happy to give it a try.
cc: @sosiouxme
The text was updated successfully, but these errors were encountered: