-
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
sensu-api service should subscribe to sensu::rabbitmq::config class #433
Comments
|
The API doesn't actually need any interaction with rabbitmq, so I don't think this is needed. Closing, reopen if you feel this is in error. |
|
I looks like the API does do something with rabbitmq (in Sensu 0.26.5), and not refreshing the sensu-api after updating Running puppet put the right information back into I'm not sure why sensu-api needs to connect to rabbitmq, but for whatever reason, it looks like sensu-api should be restarted whenever rabbitmq.json is updated to pull in the new values. Adding the api service to subscribe to |
|
@portertech can you comment on this? Does the API need a connection to rabbitmq? |
|
@jaxxstorm the API establishes a connection to the transport. Uses for this connection include:
|
|
@jeffmccune This also looks very similar to ae48859 |
Without this patch the Sensu API service doesn't reload itself when RabbitMQ configuration changes occur. This patch addresses the problem by adding a relationship between the rabbitmq configuration class and the service resource. Note, both sensu::rabbitmq::config and sensu::redis::config are in the catalog regardless of which is actually being configured. Resolves sensu#433
(#433) Reload Service[sensu_api] on RabbitMQ config changes
|
Thanks everyone! Fix released in v2.19.2 |
It appears that currently the
sensu-apiservice [1] doesn't subscribe to thesensu::rabbitmq::configclass, which means that it doesn't get restarted automatically if the rabbitmq config is changed.From my testing I believe it should do, otherwise the API doesn't work.
[1] https://github.com/sensu/sensu-puppet/blob/master/manifests/api/service.pp#L34-L39
The text was updated successfully, but these errors were encountered: