-
Notifications
You must be signed in to change notification settings - Fork 799
fix(confd): services check for valid config before reloading #1112
Conversation
Save yourself some time and don't forget to vagrant rsync ;) |
|
Yup! But it chokes hard when you swap out VMs underneath it. |
LGTM!
Working as intended :D |
@mboersma let's get this passing in Jenkins. This is a good fix. |
Code LGTM. |
fix(confd): services check for valid config before reloading
Isn't the purpose of the I think this line https://github.com/deis/deis/pull/1112/files#diff-a7f2e8cb6e90716acc47faaeba542a1aR6 (an others referencing the already templated file), will result in a template written once with |
@johanneswuerbach, yep, this one slipped by review and QA I think. Luckily my goof seems to mean that we're always returning 0 from check_cmd, which is better than the alternative. I will come up with a fix for this ASAP. |
👍 Glad you had eyes on this, @johanneswuerbach! |
@johanneswuerbach, I haven't forgotten this. I'm making amends in https://github.com/deis/deis/tree/fix-check-cmd. I'll ping you for a review when I make it PR. Thanks again! |
Adds a check_cmd to controller, database, and registry that will prevent their processes from reloading if configuration files are invalid. This is already in place for deis-router, logger does not use confd templating, and builder does not have a process that needs reloading. (Cache runs Redis in the foreground, and Redis ignores SIGHUP completely, so it's problematic.)
TESTING: Build controller, database, and registry. Test that
make uninstall
andmake run
work and that stopping and starting individual components does not cause others to fail with invalid configuration.