Red Hat Bugzilla – Bug 1313299
Calamari must push events to salt event bus based on the config file.
Last modified: 2016-08-23 15:31:54 EDT
Description of problem:
Calamari must push events to salt event bus, if the calamari.conf file has an entry "emit_events_to_salt_event_bus" set to true.
currently due to some probable environment variable issue, calamari is not able to push events to salt event bus.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. set the emit_events_to_salt_event_bus= True in calamari.conf
2. simulate osd/mon event
3. check in salt event bus for these events
Events are not pushed to salt event bus.
Events must be pushed to salt event bus when the configuration is set.
curl https://chacra.ceph.com/r/calamari/1.4/centos/7/x86_64/calamari-server-1.4.0-rc8_3_g87c85f0.el7.centos.x86_64.rpm -O
cd /etc/yum.repos.d && sudo curl \
sudo yum install supervisor python-zmq python-msgpack
sudo rpm -ivh --nodeps calamari-server-1.4.0-rc8_3_g87c85f0.el7.centos.x86_64.rpm
sudo calamari-ctl initialize # expected to emit an ERROR, ignore for now
# edit /etc/calamari/calamari.conf to enable the salt events
emit_events_to_salt_event_bus = True
sudo supervisorctl restart all
now if you've connected the salt-minion to the master you should be able to see events happen by running this:
sudo salt-run state.event pretty=True
on the salt-master
# you may need to allow the firewall to open up ports 4505 and 4506 on the salt-master node
The fix works as expected. Tried bringing down few osds and monitors in the ceph cluster down and calamari pushed events about these state changes to salt bus. These events were available at salt master.
Moving it to verified state.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.