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
Variable name conflict in constants.conf / Problem with TLS verification, CN and Environment variable #6507
Comments
Any chance that you test the snapshot packages in your testing environment? There was a revert of most changes regarding the Environment vars: ddc5b95 |
This variable will definitely come back, no need to test that. It is unfortunate that the global constant namespace is shared with users and system variables. I don't have time atm to explain the changes in 2.9 a bit better, I will come back later with additional thoughts. |
Thank you both for your feedback. The (removed) documentation in ddc5b95 was really helpful to understand why you added this feature 🙂
We fixed it for our setup by changing the name of our variable. So it is not urgent for us ;) |
@dnsmichi is correct, this feature will come back, in a slightly minimalistic way.
You should always use a prefix for constants, to avoid a possible clash with our internals. I guess I'll add a note within the docs. |
#6509 looks related 🤔
Thank you! :) |
Well, yes, unfortunately that's only part of the solution. Icinga already has partial support for namespaces and that PR is yet another push to get "proper" namespacing support at some point. |
Two tasks here:
|
Will be fixed as part of #6512 in my review cycle. |
Hello,
yesterday I updated our stage environment from 2.8.4 to 2.9.1 and it went horribly wrong. After the update icingaweb2 stopped to display new results/hosts/checks.
In the logs of all masters and satellites I got the following warnings every few minutes:
The funny thing is that it says
warning
but it really meansthis is a fatal error and your cluster is unable to connect
.After a lot of debugging I found this commit: 9c1e00e and the related PR: #6305
So you may ask: Why does it break our cluster? We already used a
Environment=stage
variable in our constants.conf. Of course for another purpose. Well, when you know about the PR that introduced the new variable it is pretty obvious that our variable would break the cluster - but I did not know 😉I have some thoughts about this:
companyNameEnvironment
.I am looking forward to hear other opinions about this. How can we avoid variable name conflicts in the future? What do you think?
Best regards
Max
Your Environment
icinga2 --version
): r2.9.1-1The text was updated successfully, but these errors were encountered: