Bug 1313299 - Calamari must push events to salt event bus based on the config file.
Summary: Calamari must push events to salt event bus based on the config file.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Calamari
Version: 1.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 2.0
Assignee: Christina Meno
QA Contact: Harish NV Rao
URL:
Whiteboard:
Depends On:
Blocks: 1291304
TreeView+ depends on / blocked
 
Reported: 2016-03-01 11:04 UTC by Darshan
Modified: 2022-02-21 18:17 UTC (History)
4 users (show)

Fixed In Version: calamari-server-1.4.0-rc10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-23 19:31:54 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1755 0 normal SHIPPED_LIVE Red Hat Ceph Storage 2.0 bug fix and enhancement update 2016-08-23 23:23:52 UTC

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


Note You need to log in before you can comment on or make changes to this bug.