-
Notifications
You must be signed in to change notification settings - Fork 290
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
Enterprise - Purging files no longer managed fails to notify correct service #854
Comments
|
Hi @dzeleski Thanks for submitting this issue. Can you please describe what the correct actions should be so we can work toward that goal? |
|
@ghoneycutt After a json config is either added/changed/removed the sensu-enterprise service needs to be restarted (or the config files reloaded live if thats an option yet). Currently for each definition we have to add a notify for when something is changed or added, this works but in order to remove something we would have to use Example of that notify: |
|
@ghoneycutt I believe the fix would be to add Edit: either that or subscribe to the dirs changing? https://github.com/sensu/sensu-puppet/blob/master/manifests/package.pp#L188 Im not sure if there will be dependency cycles by doing that with the enterprise service as I have not tested these recommendations at all :) |
|
Thanks @dzeleski Are you able to test and see if that one liner fix works for you? |
|
@ghoneycutt wont be able to get to it today, I can do it first thing tomorrow if that timeline works for you guys? |
|
Thank you for testing! |
|
In the referenced commit I added the subscribe to the whole sensu::package class in the sensu-enterprise service. It restarts the service when files are purged and there're not apparent dependency cycles. Want to test this a bit more anyway, and add a spec tests, so PR still not there. |
Restart sensu-enterprise service when configs are purged sensu#854 Added spec tests
|
Tests added, no dependency cycles even if we notify the whole sensu::package class. |
Restart sensu-enterprise service when configs are purged #854
|
Released in v2.50.0 |
Description of problem
Command used and debugging output
Platform and version information
Anything else to add that you think will be helpful?
This is being managed here via a file resource: https://github.com/sensu/sensu-puppet/blob/master/manifests/package.pp#L188
It is being managed correctly for core here, but it does attempt to restart a disabled service on enterprise: https://github.com/sensu/sensu-puppet/blob/master/manifests/server/service.pp#L24
But is not being managed correctly here for enterprise: https://github.com/sensu/sensu-puppet/blob/master/manifests/enterprise.pp#L85
The text was updated successfully, but these errors were encountered: