4319 Commits

Author SHA1 Message Date
Jenkins
f445788734 Merge "xenapi: support the session to "unix://local"" 2015-08-20 19:27:15 +00:00
Edwin Zhai
4f4a760e27 Mark record_type in PaaS Event Format doc as optional
No record_type in the samples, required record_type cause confusion.

Change-Id: I2c8a104537455621d1c5a3c7ac9dc356627d448f
Closes-Bug: #1368824
2015-08-21 03:05:43 +08:00
Jenkins
7ae6ac1178 Merge "postgres isolation level produces inconsistent reads" 2015-08-20 16:57:15 +00:00
Jenkins
197d2f509c Merge "Add hypervisor inspector sanity check" 2015-08-20 16:45:30 +00:00
gordon chung
d36931b64e full multi-meter support
this patch adds ability to define multi-value jsonpath for all attributes
(not including source, timestamp, metadata).

NOTE: we will not remove the telemetry meter because we don't want to
allow user ability to (inadvertantly) remove support for pollster/api.

Change-Id: I5151ea7f3bede643830bbe8c01540628bc619f21
Implements: blueprint declarative-notifications
2015-08-20 08:59:50 -04:00
gordon chung
c79b598259 add flexible grouping key
all transformers will now require a grouping key. the pipeline will
take grouping keys from all transformers in it's definition. using
the set of keys, the values will be pulled from the datapoint, hashed,
and sent to a pipeline. if no transformers are applied, samples will
be grouped by resource_id and events will be grouped by event_type.

Implement blueprint distributed-coordinated-notifications

Change-Id: Ief462d19655c238e5951881a58e183084d37ac13
2015-08-20 08:46:45 -04:00
Lianhao Lu
329b986f13 Corrected test_fallback_meter_path test case
Make sure the test_fallback_meter_path test case won't fail if
/etc/ceilometer/meters.yaml file exists or not.

Closes-Bug: #1486869
Change-Id: I630aa6a2fca48d87fcd7f9584701e461222a9bed
2015-08-20 15:40:05 +08:00
Edwin Zhai
d17e75d267 Add hypervisor inspector sanity check
Based on existed self-disabled pollster, this sanity check would
prevent pollsters on mis-configured inspector from being loaded.

Change-Id: Ic4a7ce010e17b2f0f356687cc61a59276d59283d
Closes-Bug: #1485560
2015-08-20 13:35:11 +08:00
Jenkins
003047bdb5 Merge "group pollsters by interval" 2015-08-20 02:17:15 +00:00
gordon chung
c17b294aa9 handle list payloads in notifications
when processing notifications, the assumption is the payload is
always a dict. the odd cases, it's not. we should ignore these
cases.

Change-Id: I8e24d0c0ba42a67f2877051c683358a411f19e48
Closes-Bug: #1484972
2015-08-19 22:06:10 -04:00
Qiaowei Ren
6ad9203d9b xenapi: support the session to "unix://local"
When url is "unix://local", xenapi inspector should use specific
api to create the session to xenapi.

Change-Id: I1531c4ab75be7e1d462093dff1ddf0ca4ae4808e
Closes-Bug: 1484764
2015-08-20 09:11:35 +08:00
liu-sheng
c372070851 Introduce Guru Meditation Reports into Ceilometer
This commit integrates functionality from the `openstack.common.report`
module into Ceilometer. This enables Ceilometer services to receive
SIGUSR1 and print a Guru Meditation Report to stderr or file.
The required modules were added to 'openstack-common.conf' as well.

Change-Id: Ic59c08a610dff7140f14304a60f1c3297d190239
Implements: blueprint guru-meditation-report
2015-08-20 08:59:51 +08:00
Jenkins
30901d6e21 Merge "add test to validate jsonpath" 2015-08-20 00:31:04 +00:00
Jenkins
a92e9c4026 Merge "Change and move the workers options to corresponding service section" 2015-08-19 22:52:27 +00:00
liu-sheng
a91f30b826 Use start status of coodinator in tooz
CoordinationDriver of tooz has maintained the status about coordinator
started or not. we don't need to re-define a _started in ceilometer.

Depends-on: I1a177cf3efd63593667751c6b53bcc536fb0670f

Change-Id: I8487275b419e355548ef9df6e7c8515f569f83bd
2015-08-19 15:49:58 +08:00
Rohit Jaiswal
ff2395db2b Fixed event requeuing/ack on publisher failure
Event should be acked or requeued when either event
conversion or event publishing fails by configuring
ack_on_event_error in configuration.

When publishing fails, the exception is not raised
in the pipeline and event does not get acked or
requeued, with a Handled message sent to transport
leading to event loss.

This fix raises the exception in pipeline on publish
failure and improves unit tests to test event handling
with a real pipeline.

Change-Id: Ia00a9ce30c5b03269091caa7f5edca9fcf113aff
Closes-Bug: #1482797
2015-08-18 23:32:12 +00:00
Jenkins
0d39daa881 Merge "use union all when building trait query" 2015-08-17 20:34:40 +00:00
Hongbin Lu
a71028aa40 Implement consuming metrics from Magnum
Magnum will have a background task that sends metrics to Ceilometer
periodically. This patch make Ceilometer recongnize the metric format
sent from Magnum.

Below is a sample message sent from Magnum:
{
    'payload': {
        'metrics': [
            {
                'unit': '%',
                'name': 'memory_util',
                'value': 12
            }
        ],
        'project_id': 'eba5e8c43b564e2597e884ff89d30800',
        'user_id': '71a3a02f5591400a93f7145d555abbef',
        'resource_id': '54123c4f-4d74-4da9-82e2-2e1432fe7522',
    }
    ...
}

Change-Id: I0df33af378ed850e8de64ba6a0563b898609b520
Partially-Implements: blueprint magnum-ceilometer-integration
2015-08-17 16:08:39 -04:00
Igor Degtiarov
804de4ef2f Avoid from storing samples with empty or not numerical volumes
In some cases Ceilometer receives notifications with 'counter_volume' equal
None, for ex. from glance when empty image was created. This patch adds check
to avoid storing samples with None or not numerical volumes.

Closes-Bug: #1484117
Change-Id: Ic4b87c05d16dba765f601ca346b198eda7c91bea
2015-08-17 18:44:27 +03:00
Jenkins
576718cb9e Merge "Fixed spelling error, retreive -> retrieve" 2015-08-17 13:57:48 +00:00
gord chung
34a3a11c96 use union all when building trait query
union all is more performant as it doesn't need to filter out
duplicates. we should not have duplicates as the primary key
conditions already ensure that.

Change-Id: Ic25f7086b33a98ca77a669732a65be5a95b7f0db
2015-08-17 11:40:09 +00:00
Alex Holden
9aa6f4c840 Fixed spelling error, retreive -> retrieve
Change-Id: I0b222af863d4cdb1af57a73e3f177813ae784d78
2015-08-17 11:55:09 +01:00
Eric Brown
0108a27f94 Use min and max on IntOpt option types
Latest version of oslo.config support the ability to set valid
range on IntOpt option values.  This path makes use of that feature
for a number of options with well known minimum and maximum values.

Change-Id: I26c920a2be68deeaa6ba534eb9d92b2960f78328
2015-08-15 11:11:01 -07:00
Jenkins
3c10d3876e Merge "Update install docs with gnocchi dispatcher info" 2015-08-14 22:04:23 +00:00
Pradeep Kilambi
56934eaea4 Update install docs with gnocchi dispatcher info
Change-Id: I97fead8a6d6472a9f3b7265d2ad71f307b2209ce
2015-08-14 10:53:25 -04:00
Jenkins
fa5a01615a Merge "Make it possible to run postgresql functional job" 2015-08-14 13:21:16 +00:00
Jenkins
92be4dda29 Merge "Updated from global requirements" 2015-08-14 13:21:07 +00:00
Jenkins
6978e301b3 Merge "Revert "Remove version from os_auth_url in service_credentials"" 2015-08-14 12:19:29 +00:00
Nadya Shakhat
bd30aac5dd Make it possible to run postgresql functional job
Change-Id: Ic11571ceccb993fb6a46a4a963256f9439899ca4
2015-08-14 13:29:08 +03:00
Chris Dent
055ebb9d21 Revert "Remove version from os_auth_url in service_credentials"
This reverts commit 33f133ab0cd37da5366769603ece67877505e7c9.

Apparently the way keystone info is used in aodh is different from how
ceilometer uses it. With the change to be reverted in place, none of the
agents can talk to services.

Change-Id: I462f7c4977f14e45069e2c826abd7944252bd9d9
2015-08-14 10:18:47 +00:00
OpenStack Proposal Bot
a4df6182ab Updated from global requirements
Change-Id: Iba3f7fe21be2a9d95d4ebd8ef973455d88a578b0
2015-08-14 09:14:16 +00:00
Jenkins
497c1b795e Merge "integration: chown ceilometer directory properly" 2015-08-13 20:07:44 +00:00
Jenkins
56416fec25 Merge "Grenade plugin using devstack plugin for ceilometer" 2015-08-13 15:37:27 +00:00
Jenkins
a4ba18a9bd Merge "Remove version from os_auth_url in service_credentials" 2015-08-13 15:34:24 +00:00
Jenkins
9fe6bd24df Merge "Updated from global requirements" 2015-08-13 15:33:14 +00:00
Chris Dent
b55262c775 integration: chown ceilometer directory properly
The STACK_USER needs to be able to write the ceilo dir.

Change-Id: Icef809d14bb42c7e02a98b16bab184ef3fc4613c
2015-08-13 15:19:56 +00:00
gordon chung
47a6d03959 add mandatory limit value to complex query list
unrestricted listing of data can require significant memory.
this patch implements mandatory limit on complex queries

Change-Id: I1fd21bbec63711a8887ba9363f791b6c67d75837
Implements: blueprint mandatory-limit
2015-08-13 08:11:20 -04:00
Jenkins
92fcb8ba74 Merge "do not translate debug logs" 2015-08-13 11:49:23 +00:00
gordon chung
485f4e7386 add test to validate jsonpath
add test to validate correct value is grabbed when defining jsonpath
vs static values

Change-Id: I469f0665a8d289bf04bb05de63454360771c4642
2015-08-13 11:48:38 +00:00
Chris Dent
33f133ab0c Remove version from os_auth_url in service_credentials
In these modern times it appears to be redundant, confusing, and
inflexible.

Change-Id: Ice84fc6042e7ee344f86ac675c5f833f9984db8c
2015-08-13 10:33:59 +00:00
Jenkins
6a7d3feb47 Merge "start rpc deprecation" 2015-08-13 09:48:09 +00:00
Jenkins
622ab28572 Merge "Convert instance, bandwidth and SwiftMiddleware meters" 2015-08-13 09:47:41 +00:00
Jenkins
225b6f90e1 Merge "support multiple-meter payloads" 2015-08-13 09:47:27 +00:00
gordon chung
7497363a02 do not translate debug logs
According to the OpenStack translation policy, available at
https://wiki.openstack.org/wiki/LoggingStandards, debug messages
should not be translated.

Change-Id: Icdf5ea14767d98d2dd4f32bd5b60130a8bca540a
Closes-Bug: #1317856
2015-08-12 22:43:52 -04:00
OpenStack Proposal Bot
f198efbd19 Updated from global requirements
Change-Id: I3636ccc070eb925bd0490e5155e34cab49001c8e
2015-08-13 02:10:22 +00:00
Chris Dent
c71c5ddf43 Grenade plugin using devstack plugin for ceilometer
This is barebones for now, simply doing the upgrade and checking
services are still running. There is no checking of resources.
Being able to easily add those resources checks is part of the
reason for making this change.

The other reason is to explore and resolve conflicts when extracting
an existing integrated project from both devstack and grenade.

Note that grenade's ensure_services_started and _stopped struggles to
work with processes that contain spaces so distinguishing amongst
ceilometer-polling processes with different namespaces is hard, so
we'll just use the older agent names.

Change-Id: If7bb809743ab0c475a1844c79e552d8b6892a18f
2015-08-12 21:24:20 +00:00
gordon chung
96bbce0c4a remove alembic requirement
we don't use it.

Change-Id: Icee76ddfa3f3d764190c51fca10de34b4cf6d3c5
2015-08-12 16:24:33 -04:00
Pradeep Kilambi
4195a0c222 Convert instance, bandwidth and SwiftMiddleware meters
Partially Implements: blueprint declarative-notifications

Change-Id: Ia22123018f316c80f653579fb4764ec7090d969f
2015-08-12 13:37:09 -04:00
liu-sheng
717bd7d064 Change and move the workers options to corresponding service section
Currently, the workers options of collector, api and notification services
are all located in [DEFAULT] section. This change unify the options name
and move them to corresponding service configure section.
Additionally, this change will remove the "workers set by cpu number"
functionality, because it has no effect if the workers options has default
value.

Closes-Bug: #1481254

Change-Id: Idde86762ab6520d3adcbdd2b86d0f4de3a8517cd
2015-08-12 20:31:51 +08:00
Jenkins
ad5357a7c9 Merge "Drop the downgrade function of migration scripts" 2015-08-12 10:14:44 +00:00