Bug 1387290

Summary: Events are not available in API and central.log complains about redis
Product: Red Hat OpenStack Reporter: Marek Aufart <maufart>
Component: openstack-ceilometerAssignee: Eoghan Glynn <eglynn>
Status: CLOSED ERRATA QA Contact: Yurii Prokulevych <yprokule>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 10.0 (Newton)CC: jruzicka, jschluet, mabaakou, pkilambi, sclewis, srevivo
Target Milestone: rcKeywords: TestOnly, Triaged
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-ceilometer-7.0.0-2.2.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-14 16:23:37 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:
Embargoed:
Bug Depends On: 1391860    
Bug Blocks:    
Attachments:
Description Flags
central.log none

Description Marek Aufart 2016-10-20 14:38:32 UTC
Created attachment 1212552 [details]
central.log

Description of problem:
Events list return no events (when there should be some) and /var/log/central.log on controller node contains following errors:

ERROR ceilometer.coordination ToozConnectionError: Error while reading from socket: ('Connection closed by server.',)

Discussed with @pradk, who pointed me to issue with redis. I am not sure if it was fixed already, but I was not able to find such BZ and my current testing version has this issue.


Version-Release number of selected component (if applicable):
7.0.1-0.20161015232718

How reproducible:
always (in given version)

Steps to Reproduce:
1. deploy overcloud
2. create flavor or do another action which produces an event (openstack volume create --size 1 testvol)
3. query ceilometer for events

Actual results:
no events, errors in central.log

Expected results:
get some events, no errors in /var/log/ceilometer/central.log

Additional info:
Workaround is to connect to controller node and do following steps:
# mkdir /var/run/redis
# chown redis /var/run/redis
# systemctl start redis

Comment 1 Mehdi ABAAKOUK 2016-10-20 16:56:43 UTC
Today, I have deployed a couple of time OSP 10.0-20161018.1.el7ost and I haven't seen this. 
I have tested the gnocchi metric computing dispatch that uses redis to spread the work across workers and everything was working fine.

Comment 2 Pradeep Kilambi 2016-10-20 17:21:59 UTC
There was an selinux issue that was causing redis to not start correctly. This has been fixed in openstack-selinux. So i think this should be resolved in latest build.

Comment 6 errata-xmlrpc 2016-12-14 16:23:37 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://rhn.redhat.com/errata/RHEA-2016-2948.html