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

rabbitmq_reconnect_on_error parameter is useless #717

Closed
cwjohnston opened this issue Jul 6, 2017 · 2 comments
Closed

rabbitmq_reconnect_on_error parameter is useless #717

cwjohnston opened this issue Jul 6, 2017 · 2 comments
Assignees

Comments

@cwjohnston
Copy link
Contributor

Description of problem

The code added in #333 places a reconnect_on_error parameter under the rabbitmq configuration scope, e.g.

{
  "rabbitmq": {
    "reconnect_on_error": false,
  }
}

Per the documentation, this configuration parameter actually belongs under the transport configuration scope, e.g.

{
  "transport": {
    "name": "rabbitmq",
    "reconnect_on_error": true
  }
}

Further more, this parameter defaults to false, but Sensu defaults it to true as of version 0.18.

Proposed solution

The rabbitmq_reconnect_on_error parameter should be renamed to transport_reconnect_on_error and it's default value should be changed from false to true.

For the most part, references to rabbitmq_reconnect_on_error parameter, e.g. in rabbitmq manifest and sensu_rabbitmq_config provider, can be removed.

Code in the transport manifest should be changed so that transport.json is written regardless of the value of the transport_type parameter, and the boolean value of transport_reconnect_on_error should be used to influence the content of transport.json

@ghoneycutt
Copy link
Collaborator

There is existing work for this in PR #595

jeffmccune added a commit to jeffmccune/sensu-puppet that referenced this issue Jul 7, 2017
jeffmccune added a commit to jeffmccune/sensu-puppet that referenced this issue Jul 7, 2017
jeffmccune added a commit to jeffmccune/sensu-puppet that referenced this issue Jul 7, 2017
jeffmccune added a commit to jeffmccune/sensu-puppet that referenced this issue Jul 7, 2017
As noted in sensu#717, the configuration setting for reconnecting on error lives in
the transport configuration, not the rabbitmq configuration.  This patch
removes the property and class parameter configuring the rabbitmq specific
behavior.

Resolves sensu#717
Closes sensu#595
jeffmccune added a commit to jeffmccune/sensu-puppet that referenced this issue Jul 8, 2017
As noted in sensu#717, the configuration setting for reconnecting on error lives in
the transport configuration, not the rabbitmq configuration.  This patch
removes the property and class parameter configuring the rabbitmq specific
behavior.

Resolves sensu#717
Closes sensu#595
jeffmccune added a commit to jeffmccune/sensu-puppet that referenced this issue Jul 8, 2017
jeffmccune added a commit to jeffmccune/sensu-puppet that referenced this issue Jul 8, 2017
jeffmccune added a commit to jeffmccune/sensu-puppet that referenced this issue Jul 8, 2017
As noted in sensu#717, the configuration setting for reconnecting on error lives in
the transport configuration, not the rabbitmq configuration.  This patch
removes the property and class parameter configuring the rabbitmq specific
behavior.

Resolves sensu#717
Closes sensu#595
ghoneycutt added a commit that referenced this issue Jul 9, 2017
…_error

(#717) Remove rabbitmq_reconnect_on_error
@ghoneycutt
Copy link
Collaborator

Released in v2.19.0

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

3 participants