Bug 1313299

Summary: Calamari must push events to salt event bus based on the config file.
Product: Red Hat Ceph Storage Reporter: Darshan <dnarayan>
Component: CalamariAssignee: Christina Meno <gmeno>
Calamari sub component: Back-end QA Contact: Harish NV Rao <hnallurv>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: ceph-eng-bugs, flucifre, hnallurv, vakulkar
Version: 1.3.1   
Target Milestone: rc   
Target Release: 2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: calamari-server-1.4.0-rc10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-23 19:31:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1291304    

Description Darshan 2016-03-01 11:04:48 UTC
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):


How reproducible:
Always

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

Actual results:
Events are not pushed to salt event bus.

Expected results:
Events must be pushed to salt event bus when the configuration is set.

Additional info:

Comment 3 Christina Meno 2016-04-20 05:51:21 UTC
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 \
            http://puddle.ceph.redhat.com/puddles/rhscon/2/latest/RHSCON-2.repo -O

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

Comment 4 Darshan 2016-06-10 08:00:47 UTC
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.

Comment 6 errata-xmlrpc 2016-08-23 19:31:54 UTC
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.

https://access.redhat.com/errata/RHBA-2016:1755