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_plugin not working properly with RabbitMQ 3.10.x #909

Closed
kvisle opened this issue Jun 29, 2022 · 0 comments · Fixed by #912
Closed

rabbitmq_plugin not working properly with RabbitMQ 3.10.x #909

kvisle opened this issue Jun 29, 2022 · 0 comments · Fixed by #912
Labels
bug Something isn't working

Comments

@kvisle
Copy link
Contributor

kvisle commented Jun 29, 2022

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.27.0
  • Ruby: 2.5.9p229
  • Distribution: Rocky Linux 8
  • Module version: 12.0.1
  • RabbitMQ Server 3.10.5

How to reproduce (e.g Puppet code you use)

puppet resource rabbitmq_plugin

What are you seeing

Abovementioned command returns the following:

Error: Could not run: Cannot parse invalid plugins line: Listing plugins with pattern ".*" ...

What behaviour did you expect instead

A list of plugin resources and their ensured status.

Output log

Any additional information you'd like to impart

kvisle added a commit to kvisle/puppet-rabbitmq that referenced this issue Aug 12, 2022
The rabbitmq_plugin resource use the "rabbitmq-plugins"-command when
enumerating enabled plugins.  Starting with rabbitmq 3.10, this command
will output a informational message:
'Listing plugins with pattern ".*" ...' which can be hidden with the -s
or -q parameter.  However, this approach will break rabbitmq_plugin on
older versions of RabbitMQ.

This patch implements a workaround that simply ignores the outputted line
if it exists.

Fixes: voxpupuli#909
kvisle added a commit to kvisle/puppet-rabbitmq that referenced this issue Aug 12, 2022
The rabbitmq_plugin resource use the "rabbitmq-plugins"-command when
enumerating enabled plugins.  Starting with rabbitmq 3.10, this command
will output a informational message:
'Listing plugins with pattern ".*" ...' which can be hidden with the -s
or -q parameter.  However, this approach will break rabbitmq_plugin on
older versions of RabbitMQ.

This patch implements a workaround that simply ignores the outputted line
if it exists.

Fixes: voxpupuli#909
kvisle added a commit to kvisle/puppet-rabbitmq that referenced this issue Aug 12, 2022
The rabbitmq_plugin resource use the "rabbitmq-plugins"-command when
enumerating enabled plugins.  Starting with rabbitmq 3.10, this command
will output a informational message:
'Listing plugins with pattern ".*" ...' which can be hidden with the -s
or -q parameter.  However, this approach will break rabbitmq_plugin on
older versions of RabbitMQ.

This patch implements a workaround that simply ignores the outputted line
if it exists.

Fixes: voxpupuli#909
wyardley added a commit to wyardley/puppet-rabbitmq that referenced this issue Aug 12, 2022
Resolve an issue with extra output from `rabbitmq_plugin` in versions >=
3.10.x

Fixes voxpupuli#909
kvisle added a commit to kvisle/puppet-rabbitmq that referenced this issue Aug 13, 2022
The rabbitmq_plugin resource use the "rabbitmq-plugins"-command when
enumerating enabled plugins.  Starting with rabbitmq 3.10, this command
will output a informational message:
'Listing plugins with pattern ".*" ...' which can be hidden with the -s
or -q parameter.  However, this approach will break rabbitmq_plugin on
older versions of RabbitMQ.

This patch implements a workaround that simply ignores the outputted line
if it exists.

Fixes: voxpupuli#909
@wyardley wyardley added the bug Something isn't working label Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants