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

Sensu_client_config and subscriptions are always retriggered at every puppet run, leading to no-checks being run under certain circumstances #216

Closed
stefanandres opened this issue Aug 8, 2014 · 3 comments

Comments

@stefanandres
Copy link

Even though the client_config and subscriptions are properly set (the json is written), puppet always re-writes it in every run.
Those providers also notify the sensu-client so it will restart. That leads to endless restarting if you have puppet running with noop = false every minute.
If you run puppet every minute with noop = false then all checks with interval < 60 will never get checked because sensu-client restarts before even one check is getting executed.

Notice: /Stage[main]/Sensu::Client::Config/Sensu_client_config[$client_name]/ensure: created
@stefanandres
Copy link
Author

Ah, in https://github.com/sensu/sensu-puppet/blob/v1.0.0/lib/puppet/provider/sensu_client_config/json.rb#L19 you can see the file is hard coded and in master it is defined as method and it probably it not initiated there yet: https://github.com/sensu/sensu-puppet/blob/master/lib/puppet/provider/sensu_client_config/json.rb#L19

702c75b is the commit that breaks it.

@stefanandres
Copy link
Author

https://github.com/stefanandres/sensu-puppet/commit/1f1f58d4c5c7a19b9fa05ac24df7ee15250d1d1c workarounds that issue for me (used wrong file name in the first run, https://github.com/stefanandres/sensu-puppet/commit/0b59096ca4917d230aea3da1b255c624211bd043 is also needed), but it should get fixed upstream properly.

@stefanandres
Copy link
Author

#224 fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant