[Hbase] Add column for source filter in _get_meter_samples

Earlier column for source was not created and "get_samples"
method with source query worked incorrect. In this change
it is fixed.

Fixes: bug #1330989

Change-Id: Ie8be408d6b54471322e2f585ddf27c50219b8fd3
Add validate alarm_actions schema in alarm API

Currently, alarm API does not validate schema in alarm_actions.
When invalid schema is specified, error occurs later in alarm notifier.
Schema should be validated in advance in API.

Change-Id: I3b28cfe36c460daead2945ba3577fbc1274f9d91
Closes-bug: #1342673
warn against sorting requirements

Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e
Addresses-Bug: #1365061
normalise resource data

create a table to contain resource specific attributes.
the new resource table will contain:
- id
- resource_id,
- project_id,
- user_id,
- source_id
- resource_metadata
- metadata_hash

we will only capture unique resources (ie. unique ids or metadata)

Closes-Bug: #1320257
Implements: blueprint bigger-data-sql
Co-Authored-By: Srinivas Sakhamuri <srinivas.sakhamuri@hp.com>
Change-Id: I4a32688ad3a78e574e018a154cb145e31da6298e
Adding another set of hardware metrics

These metrics are being used in TripleO-UI

Change-Id: I8e096f28535c96f982bb37744f63cd8ead4b5397
Closes-bug: #1365552
Returns 401 when unauthorized project access occurs

Throwing wsme based exceptions out of non-wsme context causes api server
to return 500 since the exception goes uncaught. Instead return
http response with error code 401 to return to client safely

Change-Id: Ifb753581e392ea7961b976bc97ee2348feb6825c
Closes-Bug: 1365770
Document the standard for PaaS service notifications

This spec defines a minimum data set and optional fields to be
included in the notification (header+payload) produced by PaaS
services.

Implements blueprint paas-event-for-ceilometer

Change-Id: I44218e7f8e67bbb459bd7fa2eda2c7ab06fffef9
Fix tests with testtools>=0.9.39

NOTE: the RPC module that was causing problems in Icehouse no longer
exists in master, but the fix should be in the master as well to avoid
future problems.

'rpc_backend' config option in
ceilometer.openstack.common.rpc.__init__.py defaults to
'%s.impl_kombu' % __package__. Because the RPC module is imported
in some other files as ceilometer.openstack.common.rpc, rpc_backend
is set to 'ceilometer.openstack.common.rpc.impl_kombu'. But when
the test loader tries to import the RPC module as openstack.common.rpc
(since it is starting inside the ceilometer folder), registering the
option fails, because we try to register a different default value.

The issue surfaced because testtools==0.9.39 started checking __init__.py
files as well. It is fixed by passing a top-level directory parameter to
the test discovery process.

(cherry picked from commit 7ff220fc5cb4dad616b27ea6762653054df00139)

Conflicts:
	.testr.conf

Change-Id: I08036b54def3eb496772bcf183927b9f70bb7a86
Closes-bug: #1365613
Merge "warn against sorting requirements"
Add documentation for implemented identity meters

Add a list of Identity events they can be metered, specifically:

- user authentication
- project create/update/delete
- role create/update/delete
- user create/update/delete
- group create/update/delete
- trust create/delete

Change-Id: I7a2f25c9e5b64e8f3a2ff986660e5ed531d955c3
Migrate the rest of the central agent pollsters to use discoveries

Currently, not all the central agent pollsters use discoveries.
In order to enable horizontal scaling, all pollsters must use
discoveries so the resources can be partitioned across the pool
of running central agents.

For pollsters that don't poll specific resources, but only poll
general info from services, we treat the service endpoints as
resources. So in the case of Glance, there will be only one
resource available for all the pollsters (a Glance endpoint).
If there are multiple agents running, only one will be assigned
that endpoint and only one will poll Glance API.

DocImpact
Co-Authored-By: Dina Belova <dbelova@mirantis.com>
Closes-Bug: #1364352
Change-Id: I8f3b228db9aacf3a7cc4b719c50013cc30d5aa79
Update docs with Sahara notifications configuration

Partially implement: blueprint ceilometer-integration

Change-Id: Ic062baade93c9b31a7d57c05f96de7b28e1c0ab8
Merge "Fix tests with testtools>=0.9.39"
Improve the timestamp validation of ceilometer API

Currently, ceilometer API is lack of timestamp validation. Timestamp in
query should be checked if it can be parsed to iso timestamp, and raise
explicit exception if not.

Change-Id: I02cb2f30b00bde46bf8a0e4e161a0e2ce9d44c09
Closes-bug: #1270394
Imported Translations from Transifex

Change-Id: I75b1675b3c85db3226ebd1e51a766c52cc0203d7
Merge "Migrate the rest of the central agent pollsters to use discoveries"
Merge "Document the standard for PaaS service notifications"
Merge "normalise resource data"
Merge "Adding another set of hardware metrics"
switch to sqlalchemy core

ORM has an overhead associated with it. we need fast writes so
switch to use sqlalchemy core to improve performance.

Closes-Bug: #1356000
Change-Id: I45c76d4f294f9bdb6d0f04e94d4be7e0f7ca6f2a