Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/

Bug 1200129

Summary: [RFE] add support for ceilometer workload partitioning via tooz/redis
Product: [Community] RDO Reporter: Lukas Bezdicka <lbezdick>
Component: openstack-packstackAssignee: Ivan Chavero <ichavero>
Status: CLOSED CURRENTRELEASE QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: medium    
Version: trunkCC: aortega, chris.brown, derekh, eglynn, jschluet, lbezdick, mburns, nbarcet, sclewis, srevivo
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-2014.2-0.17.dev1462.gbb05296.el7ost Doc Type: Enhancement
Doc Text:
New feature has been added to support Ceilometer coordination. New parameters have been added for the feature: CONFIG_CEILOMETER_COORDINATION_BACKEND, CONFIG_REDIS_MASTER_HOST, CONFIG_REDIS_PORT, CONFIG_REDIS_PORT, CONFIG_REDIS_SLAVE_HOSTS, CONFIG_REDIS_SENTINEL_HOSTS, CONFIG_REDIS_SENTINEL_CONTACT_HOST, CONFIG_REDIS_SENTINEL_PORT, CONFIG_REDIS_SENTINEL_QUORUM and CONFIG_REDIS_MASTER_NAME. For details check documentation.
Story Points: ---
Clone Of:
: 1210500 (view as bug list) Environment:
Last Closed: 2017-06-18 06:20:13 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: 1203340, 1203706, 1210500    
Bug Blocks:    
Attachments:
Description Flags
Excerpt from the central.log none

Description Lukas Bezdicka 2015-03-09 19:28:58 UTC
Ceilometer now uses the tooz coordination library to allow workload partitioning across scaled out central agents (previously a SPoF).

For consistency, the ceilometer alarm evaluator can also optionally be scaled out in that way.

At a minimum this should allow a single redis instance on the controller plane to be selected as the coordination.backend_url in the ceilometer.conf.

Comment 4 Chris Dent 2015-03-19 00:42:14 UTC
It appears that while simple single server redis-based coordination with tooz will work fine, there are issues when using redis sentinel to support HA redis.

I discovered this while writing up some notes on how to verify that it works. In typical fashion, that led to discovering that it doesn't work. Those notes are here:

https://tank.peermore.com/tanks/cdent-rhat/TestCeiloRedisPackstack

My apologies for the roughness, it's become a bit late in the day.

The gist is that there are at least three problems:

* a newer version of tooz is required in the juno-based packstack (0.9.0 is in there, we need at least 0.11.0)
* the default timeouts for sentinel driven failover may be a bit slow for some situations, or there is some other kind of timing issue which is making it longer than expected for a new master to be available
* the ceilometer code is not properly handling failure to retry contacting the tooz server

More detail in the link above. More detailed bugs will be created up and downstream after discussion with eglynn and yprokule tomorrow.

Comment 6 Yurii Prokulevych 2015-03-19 17:03:58 UTC
"Redis HA" mode cannot be verified due to bug 1203706 "ceilometer group partitioning coordination with tooz+redis+sentinel fails to failover to new master".

Comment 7 Yurii Prokulevych 2015-03-19 17:05:02 UTC
Created attachment 1003916 [details]
Excerpt from the central.log

Comment 9 Chris Dent 2015-04-08 18:06:33 UTC
The fix for this on upstream tooz was merge from https://review.openstack.org/#/c/166291/

There has not yet been a tooz release, the most recent was a few days prior to that merge.

Comment 10 Lon Hohberger 2015-04-09 21:44:53 UTC
I split off the Tooz update to a separate bug 1210500 since it would require updating that package as well.

Comment 14 Christopher Brown 2017-06-17 17:40:28 UTC
I don't think this bug applies any more and can be closed. Comments?