StackStorm / st2

StackStorm (aka "IFTTT for Ops") is event-driven automation for auto-remediation, incident responses, troubleshooting, deployments, and more for DevOps and SREs. Includes rules engine, workflow, 160 integration packs with 6000+ actions (see https://exchange.stackstorm.org) and ChatOps. Installer at https://docs.stackstorm.com/install/index.html
https://stackstorm.com/
Apache License 2.0
6.08k stars 747 forks source link

Changing system_user information in st2.conf requires restart #2446

Closed lanthos closed 8 years ago

lanthos commented 8 years ago

A couple of times now I've run into an issue with troubleshooting my st2 setup due to my having gone and updated the system_user section of st2.conf and not having restarted.

Lakstorm on Slack has been helpful in troubleshooting this and suggested I open a bug for this as it's not optimal to have to restart st2 when you change the ssh key path in st2.conf.

manasdk commented 8 years ago

It is a quirk of how config is pre-loaded into memory and not always read from the filesystem. Perhaps we can use inotify to listen on config changes to and refresh the in-memory structures.

Kami commented 8 years ago

@lanthos Thanks for the report / suggesting.

@manasdk That would, imo, be a big overkill.

The system user change would be easy one, but a lot of other code is not designed to be reloadable / changeable without a restart. Designing everything for it is almost impossible and not to mention that we should embrace "everything should be restartable at any time" approach.

Imo, it's totally fine to require a restart as long as we document this (and requiring restart for everything, imo, is better than requiring restart for something and using SIGUSR1 or similar for other because of consistency reasons). There should be no impact as long as user is running StackStorm in a HA manner and they perform a rolling restart.

lakshmi-kannan commented 8 years ago

I see the point in making people always restart. Let me edit SSH troubleshooting documentation to add info about restart on config changes.