Closed rmestrum closed 6 years ago
Also odd that the RPM from epel ships two different versions:
[root@centos-7-x64 ~]# sha1sum `which rabbitmq-plugins`
d563b0ff5e629dc242e1f7d6421ac7d8be01cd33 /sbin/rabbitmq-plugins
[root@centos-7-x64 ~]# rpm -qf `which rabbitmq-plugins`
rabbitmq-server-3.3.5-34.el7.noarch
[root@centos-7-x64 ~]# sha1sum /usr/lib/rabbitmq/bin/rabbitmq-plugins
cbf75da49e85da1e497c5070523e8ad3186846bc /usr/lib/rabbitmq/bin/rabbitmq-plugins
[root@centos-7-x64 ~]# rpm -qf /usr/lib/rabbitmq/bin/rabbitmq-plugins
rabbitmq-server-3.3.5-34.el7.noarch
Same seems true with the one from the official repo:
[root@centos-7-x64 tmp]# sha1sum /usr/lib/rabbitmq/bin/rabbitmq-plugins
cc5c3c9c130ca41dfaa3e721969a4f9367fe0096 /usr/lib/rabbitmq/bin/rabbitmq-plugins
[root@centos-7-x64 tmp]# sha1sum `which rabbitmq-plugins`
49b3a63b4c2a426573f9c0385f1dfab9c8307774 /sbin/rabbitmq-plugins
[root@centos-7-x64 tmp]# rpm -qf /usr/lib/rabbitmq/bin/rabbitmq-plugins
rabbitmq-server-3.6.11-1.el7.noarch
[root@centos-7-x64 tmp]# rpm -qf `which rabbitmq-plugins`
rabbitmq-server-3.6.11-1.el7.noarch
Both are shell scripts; it seems like the one in /sbin
is a shared wrapper used to call various programs in the lib directory. For versions with this setup, I think that one would definitely be preferred.
Reverting https://github.com/voxpupuli/puppet-rabbitmq/commit/ec5aff0d457e640df780903bd9d64feceb0b0fc2 would be easy enough, but maybe the one in /sbin
doesn't exist in some versions? I'm not sure if we need to keep the second path as a backup vs. just reverting entirely?
I updated the fix in #570 and it seems to work even with the old RMQ version on RHEL 6. We'll have to cut another major release for the module soon, so will try to get this included.
Thanks a lot for the detailed report / information.
When i try to enable a extra plugin, the plugin is enabled bot not running.
When executing the command that the provider uses (
/usr/lib/rabbitmq/bin/rabbitmq-plugins
) manually an error shows upThe start the plugin i must restart the
rabbitmq-server
serviceWhen i execute the command that's shown on the site of rabbitmq (
rabbitmq-plugins
) to enable a plugin the command succeeds and the the plugin is enabled and running without restarting therabbitmq-server
serviceAfter some investigation is found out that the correct path to the rabbitmq-plugins script should be
/usr/sbin/rabbitmq-plugins
in stead of/usr/lib/rabbitmq/bin/rabbitmq-plugins
In commit ec5aff0d457e640df780903bd9d64feceb0b0fc2 the path is changed for the Redhat OS
OS: {"name"=>"RedHat", "family"=>"RedHat", "release"=>{"full"=>"6.7", "major"=>"6", "minor"=>"7"}} Rabbitmq: 3.6.5 Erlang: 19.0.4 Puppet: 3.6.2 Rabbitmq module: 5.4.0