Skip to content
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

Merged
merged 15 commits into from
Oct 30, 2018

Conversation

arm4b
Copy link
Member

@arm4b arm4b commented Oct 29, 2018

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

  • st2api
  • st2stream
  • st2sensorcontainer
  • st2rulesengine
  • st2actionrunner
  • st2resultstracker
  • st2notifier
  • st2exporter
  • st2garbagecollector
  • st2timersengine
  • st2auth
  • st2workflowengine
  • st2scheduler

@arm4b
Copy link
Member Author

arm4b commented Oct 29, 2018

Much wow, I didn't expect this to pass the unit tests.

@Kami Kami added this to the 3.0.0 milestone Oct 29, 2018
@Kami
Copy link
Member

Kami commented Oct 29, 2018

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?

@arm4b
Copy link
Member Author

arm4b commented Oct 29, 2018

I'll include Changelog as well as enable default prod st2 config logging settings for all other st2 services for consistency.

@arm4b arm4b added RFR and removed WIP labels Oct 29, 2018
@Kami
Copy link
Member

Kami commented Oct 30, 2018

Tested it locally, seems to work fine (aka it doesn't negatively affects devenv) 👍

@arm4b
Copy link
Member Author

arm4b commented Oct 30, 2018

Thanks for checking!

@arm4b arm4b merged commit eac2527 into master Oct 30, 2018
@arm4b arm4b deleted the try-fix/logging-new-services branch October 30, 2018 17:11
@cognifloyd cognifloyd removed the RFR label Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants