-
-
Notifications
You must be signed in to change notification settings - Fork 751
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
Improve st2.conf migration for the new services #4415
Conversation
Much wow, I didn't expect this to pass the unit tests. |
Nice work and a good change 👍 We just need to confirm services run "out of the box" on a dev setup (I will try / verify that). Do we need a changelog entry for this? |
I'll include Changelog as well as enable default |
Tested it locally, seems to work fine (aka it doesn't negatively affects devenv) 👍 |
Thanks for checking! |
The initial problem is that adding new st2 service requires us to include upgrade instructions like https://docs.stackstorm.com/upgrade_notes.html#st2-v2-9 and force users to handle
st2.conf
diffs.The way to improve this story is to make default
st2.conf
logging settings work in prod deployments and so transition, migration or absense of specific directives in st2.conf doesn't fail startup.This is an issue in infra (/~https://github.com/StackStorm/ops-infra/pull/295), configuration management requiring version-to-version migrations and overall bad. Having st2 core handling it right would be a better path.
Ideally ST2 core should have safe defaults that even no
st2.conf
config would allow us to start the services with no issues.As mentioned in /~https://github.com/StackStorm/st2/pull/4382/files#r224189566, try to use
/etc/st2/
path as default setting for the new st2 services logging config and see what happens and what other changes may be needed.Services