Partition swift pollster resources by tenant

Since the latest discovery change, Swift pollsters on different
agents only decide which who should poll. Most of the time there's
only one endpoint, so only one agent gets to do any work.

This patch fixes this by introducing a new TenantDiscovery, which
enables Swift (and other in the future) pollsters to partition the
set of keystone tenants among them and then each poll the samples
for their assigned subset of tenants.

Closes-Bug: #1365351
Change-Id: Iba4a3b91d5ee978213fdd6fcf8bb62b315324a52
Allow pecan debug middleware to be turned off

The Pecan DebugMiddleware is turned on or off based on the
ceilometer.conf-wide debug setting. This is not useful for situations
where running ceilometer-api under mod_wsgi with multiple processes
is desired.

This change adds a pecan_debug setting to the api section of config,
defaulting to the DEFAULT debug value. mod_wsgi install docs updated
accordingly.

Configuration docs have not yet been udpated. They will be pending a
fix to bug 1370030

Closes-Bug: #1370009

Change-Id: Ib4a472e3c8d1f34f64a5f3ab993c1211dee8af9a
Merge "Partition swift pollster resources by tenant"
Merge "Allow pecan debug middleware to be turned off"
Add an API configuration section to docs

Uses the help text from where the options are defined.

Closes-Bug: #1370030

Change-Id: I77e048ea37492c32a8d81c5d27262a4398ffaf3a
Modified docs to update DevStack's config filename

As reported in the bug, the documentation needs to be updated with
new config file DevStack uses. This patch simply updates information
in "Installing and Running the Development Version" page.

Change-Id: I5ee8f528be44b4fe801b38c748fff7314980a93e
Closes-Bug: #1370476
Typo "possibilites" should be "possibilities"

Misspelling of "possibilities" found in
class QueryAlarmHistoryController in
/ceilometer/ceilometer/api/controllers/v2.py

Change-Id: I88a6b3f56198c254763d324f1e4df5302f8d1094
Docs: Add description of pipeline discovery section

Added description of pipeline discovery section, also corrected some
minor errors.

Closes-Bug: #1371373

Change-Id: I7370d1464fc5723c9535f0c90b3e4c2281361e42
test db2 driver code

currently, db2 driver code is not being tested. the scenario tests
are essentially calling the mongodb driver code twice.

Change-Id: I4987bb974e4f8ad6584e7939c14e59f243562fef
Closes-Bug: #1371396
Enable to get service types from configuration file

When services are registered to keystone without using default
service types, pollsters for the services don't work. This fix
enables the pollsters to get service types from ceilometer.conf.
If there is no entry in the file, the default service types
will be used.

Change-Id: Iab30b6e749f5d2af4ecb0bbf6fe1a137793f4c2c
Closes-Bug: 1353356
DocImpact: Add new parameters in ceilometer.conf
Merge "Modified docs to update DevStack's config filename"
Merge "Docs: Add description of pipeline discovery section"
Updated from global requirements

Change-Id: I793b6d86096209c55c934f818242ae3bc58fc56f
Use None instead of mutables in method params default values

Mutables in the method params defaults might cause errors and
that's why it's anti-pattern in most of the cases and should be
removed.

Change-Id: Ib1498e68ab9cc770b237a324b733c85b4a5c6839
[HBase] Catch AlreadyExists error in Connection upgrade

Now in upstream, if HBase table exists when we upgrade
backend AlreadyExists exception is raised. Also
exception raising interrupts creating of other tables.
It is an incorrect behavior because we should create
all tables and migrate them if need or use existing
tables.

Change-Id: I8e8a8ae633351de8393b5103910510dd635245be
Closes: bug #1370508
clean up swift middleware to avoid unicode errors

the swift middleware does not handle environment variables correctly.
this is causing ceilometer errors to be thrown in syslogs in the
check-swift-dsvm-full tests.

this patch adds in unicode support.

Closes-Bug: #1369124
Change-Id: Icf0874efcc69d9889df591b2cb4bbdd3930eaf68
Merge "clean up swift middleware to avoid unicode errors"
Merge "[HBase] Catch AlreadyExists error in Connection upgrade"
Merge "Enable to get service types from configuration file"
Merge "test db2 driver code"