-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Add indirect node counting setting #15799
base: devel
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would seem to undermine the point of the flag source flags.sources.SettingsFlagsSource
which is already enabled by default. If I understood correctly, this could be addressed by documenting what we already have. Also, this solution will create referential problems.
@jessicamack @AlanCoding there is another proposal for how to handle feature flags at install time: https://handbook.eng.ansible.com/proposals/0068-Feature-flags-configuration-at-install-time My understanding is that this is temporary, until we have Dynaconf. |
I don't think the load order works. https://github.com/ansible/awx/blob/devel/awx/settings/production.py This first runs from .defaults import * # NOQA So at that point you have in locals INDIRECT_NODE_COUNTING_ENABLED = False
FLAGS = {'FEATURE_INDIRECT_NODE_COUNTING_ENABLED': [{'condition': 'boolean', 'value': False}]} Then, in a later line # Attempt to load settings from /etc/tower/settings.py first, followed by
# /etc/tower/conf.d/*.py.
try:
include(settings_file, optional(settings_files), scope=locals()) I predict that would yield INDIRECT_NODE_COUNTING_ENABLED = True
FLAGS = {'FEATURE_INDIRECT_NODE_COUNTING_ENABLED': [{'condition': 'boolean', 'value': False}]} Now, backing all the way up to what I am interpreting to be the use case you are trying to solve:
Obviously, this would need to be tested. But assuming someone goes and tests it, my expectation is that it would not work, because of the load order mechanics here. |
SUMMARY
Point flag at setting to make it easier to change on the fly.
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION