-
Notifications
You must be signed in to change notification settings - Fork 20
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
TIMEZONE variable should be final #92
Comments
I have found at least three instances in our code base where TIMEZONE is overriden. This might be due to a misunderstanding of how to correctly override the timezone of a host (we have some log collectors that use UTC), or because we found that too many templates assume TIMEZONE is the canonical TIMEZONE of a host and using something else didn't work properly. :-(
This is probably a general point about all generated non-object plenaries (we wouldn't want to special case city) so could you please make this a separate RFE? |
@ned21 I didn't open a separate issue about |
@ned21 about the main topic, the fact that the variable should be May be the real solution for the problem you mentioned would be to have the possiblity to define an optional timezone parameter attached to the host, that would override the city parameters and could be passed into the hostdata (or even better to have in the hostdata a timezone information for every host for which the broker will use the host timezone if it is defined or the city timezone if it is not). |
@jouvin I think we are almost in agreement, the variable should be final and it not being final has caused an issue that we will avoid by being more careful to set things as final when introducing new ones. :) In practical terms, this is a backwards incompatible change though so first we need to identify the correct way for a template to override the default from the city, document that, and then update the features that are currently just overwriting TIMEZONE. I think this is a good example of why I am sometimes reluctant to introduce new functionality, or new functionality too quickly, because removing or correcting things later can be considerable effort. |
Contributes to quattor#92 Change-Id: I152bab1c470594c47553f315bbc842e0e36e998d
Contributes to quattor#92 Change-Id: I152bab1c470594c47553f315bbc842e0e36e998d
Contributes to quattor#92 Change-Id: I152bab1c470594c47553f315bbc842e0e36e998d
Contributes to quattor#92 Change-Id: I152bab1c470594c47553f315bbc842e0e36e998d
Contributes to #92 Change-Id: I152bab1c470594c47553f315bbc842e0e36e998d Tested-by: Aquilon Template Build testing and verification Reviewed-by: Raphael Beamonte <[email protected]>
…merge/master/by_topic/python_bump to master * commit '900701371d4a93af9a0c6602b0e0f80c49cf0ca5': Bump aq Python version to resolve OpenSSL violation
The broker generates a template reflecting the city location under
site/
in the plenary templates, that defines theTIMEZONE
variable based on the Aquilon city object. This template has 2 flaws:TIMEZONE
variable should be declared asfinal
as there is no point in modifying a variable reflecting the Aquilon database contents.unique
to avoid that it is executed several times if included a multiple places (good for performances!).This issue is partly related to #91 where a discussion started about an alternative to these
site/
templates for defining the timezone.The text was updated successfully, but these errors were encountered: