Bug fixes in rabbitmq collectd plugin

This patch fixes https://bugs.launchpad.net/openstack-browbeat/+bug/1938532 and
https://bugs.launchpad.net/openstack-browbeat/+bug/1938543. This patch does not
fix https://bugs.launchpad.net/openstack-browbeat/+bug/1938547. The fix for the
last bug will be in a separate patch.

Change-Id: I0695e8f6013b718b0aab109b7006f16619081616
This commit is contained in:
Sanjay Chari 2021-12-09 16:28:02 +05:30
parent cd9c30c1a1
commit 8a3bdd5838
3 changed files with 4 additions and 4 deletions

View File

@ -31,8 +31,8 @@
when: "('Undercloud' in group_names and rabbitmq_undercloud_collectd_plugin)"
- name: (Undercloud) Get Rabbitmq password
shell: |
grep undercloud_rabbit_password /home/stack/undercloud-passwords.conf | sed 's/undercloud_rabbit_password: //g'
command: hiera -c /etc/puppet/hiera.yaml rabbitmq::default_pass
become: true
register: undercloud_rabbitmq_password
when: "('Undercloud' in group_names and rabbitmq_undercloud_collectd_plugin)"

View File

@ -767,7 +767,7 @@ LoadPlugin python
Import "collectd_rabbitmq_monitoring"
<Module collectd_rabbitmq_monitoring>
interval {{rabbitmq_controller_collectd_interval}}
host "{{inventory_hostname}}.internalapi.localdomain"
host 127.0.0.1
port 15672
username {{controller0_rabbitmq_username.stdout}}
password {{controller0_rabbitmq_password.stdout}}

View File

@ -356,7 +356,7 @@ PreCacheChain "PreCache"
Import "collectd_rabbitmq_monitoring"
<Module collectd_rabbitmq_monitoring>
interval {{rabbitmq_undercloud_collectd_interval}}
host "{{undercloud_ctlplane_ip_address.stdout}}"
host 127.0.0.1
port 15672
username {{undercloud_rabbitmq_username.stdout}}
password {{undercloud_rabbitmq_password.stdout}}