Commit Graph

113 Commits

Author SHA1 Message Date
Mehdi Abaakouk
26d26d6776 devstack: fix gnocchi database setup
With postgresql, we must wait at least post-config to
create the database.

Change-Id: I72ce33828febb48136e239d0e70f07674aef9d4a
2018-01-16 09:49:13 +01:00
Zuul
0ae26d72f2 Merge "devstack: redis on opensuse needs to have default config" 2017-12-19 14:08:16 +00:00
Sumit Jamgade
b0edc485ea devstack: redis on opensuse needs to have default config
this patch adds a default config and uses template version of
unit-file to restart redis

Change-Id: I3c3498f408ac832c50d8f0e1834247492570fd4c
2017-12-19 11:05:42 +01:00
pangliye
00dc0e2303 remove ceilometerclient
ceilometerclient is no longer maintained

Change-Id: I73587e194341670951b7edb321d86af4f256cb27
2017-12-04 14:02:35 +08:00
gordon chung
0dbdd043c4 Revert "devstack: Set an optimal processing queue"
This reverts commit f1bdf6751a.

this causes distribution to be either 50/50 or 100/0. in the latter
case, the single worker usually fails to process pipeline queues in a
timely manner

Change-Id: I7c34acb29290de641ccbef4844e1e6982fe8b173
2017-11-07 17:43:23 +00:00
Julien Danjou
9323f07f97 Remove deprecated storage drivers
Change-Id: I6b262dd440a72f25662b64d938ab9e5328709a97
2017-10-26 09:35:14 +02:00
Julien Danjou
d881dd5228 Remove Ceilometer API
This removes the deprecated Ceilometer API.

Change-Id: I752b36b3dfe8f935b68c4d3d59ccb5b8b60c582f
2017-10-25 14:38:43 +02:00
gord chung
fad69e9603 kill collector
Change-Id: I7720d20eab345a7835d57fac573332eca0e7d11e
2017-10-16 03:20:38 +00:00
Julien Danjou
83ffaffcb2 Replace the Gnocchi dispatcher by a publisher
This removes the deprecated Gnocchi dispatcher and replaces it by its
equivalent publisher.

Change-Id: Ie44baf20ccb8de5794f5f0c3d4717f7e56afa63b
2017-10-13 18:18:07 +02:00
Mehdi Abaakouk
f67e4e0cf5 devstack: install ceilometer extra
Change-Id: I93ced9915e493f36fe3af42267a798b7ef30e40b
Closes-bug: #1720120
2017-10-05 09:44:24 +00:00
gord chung
36a31ff3f5 use gnocchi devstack script
check to see if gnocchi enabled independently via enable_plugin.
if so, let it do it's thing.

Change-Id: Idabbf9b6e874875f8dd3bad52501966385823395
2017-07-28 13:00:31 +00:00
Jenkins
f1cc475e3f Merge "fix service path for fedora" 2017-07-26 03:45:55 +00:00
Julien Danjou
b62fa85400 Limit the default numbers of metrics polled
Enabling everything to be polled and transformed by default is quite heavy and
can lead to a massive amount of unused metrics. Limit the default to a few
metrics known to be actually useful to common deployers.

We keep all pollsters enabled on unit tests and devstack.

Change-Id: Ifb5aa684e575b7904726276b7205824f2dcaa7ce
2017-07-11 17:35:23 +02:00
gord chung
ad92c74078 fix service path for fedora
fedora uses /usr/bin and not /usr/local/bin

Change-Id: I2fde1cb5a0ad0a44213e9959c9edcdeeac1445c5
2017-06-14 20:07:37 +00:00
Julien Danjou
8981179024 devstack: install Gnocchi using pip
Depends-On: I7a7bc3deeadd094d7a42b47b16cde2e8a8805a24
Change-Id: I55193f2e39a41fe2bb378b4380f2ae52c5685c8d
2017-06-07 17:50:23 +02:00
Mehdi Abaakouk
3aaba70c3a tempest: Allow to configure granularity
Change-Id: I31344a9f8938ae9c7875cad76430508dd9fd4539
2017-05-02 19:23:50 +02:00
liusheng
af7c046e7d Correct the configuration of pipeline_processing_queues in devstack
The [notification] section was missed in the configuration of devstack script.

Change-Id: If955fad4d5c1ceede8a24cd135c6c7b3195be3cf
Closes-Bug: #1678380
2017-04-01 14:39:22 +08:00
Jenkins
2008444a23 Merge "remove ceilometer-collector condition when configuring storage" 2017-03-29 04:26:39 +00:00
Jenkins
925cf9c0a8 Merge "cleanup unused devstack code" 2017-03-28 21:02:53 +00:00
Jenkins
c91b377291 Merge "start notification agent after restarting apache" 2017-03-28 20:40:42 +00:00
Jenkins
36237047cd Merge "make gnocchi independent of ceilometer-api" 2017-03-27 13:10:55 +00:00
gord chung
664a6d6710 cleanup unused devstack code
- storage retries doesn't exist anymore

Change-Id: I2708238a36c5e84f10bd039f930eca34c58f6d31
2017-03-13 21:38:06 -04:00
gord chung
0c398ecab4 start notification agent after restarting apache
notification agent needs keystone to be active to send to gnocchi

Change-Id: I929635320ec321cde6996c9b723f25455fe9ed5b
2017-03-13 20:11:55 +00:00
Mehdi Abaakouk
f1bdf6751a devstack: Set an optimal processing queue
We recommend to set pipeline_processing_queues with the
same number of workers agent the infra have.
So do it for devstack too.

Change-Id: I64cc4770a9598f1fdeca4f7476e8965651af4097
2017-03-13 09:30:30 +01:00
gord chung
b1af14d06a remove ceilometer-collector condition when configuring storage
only the api really matter if we're storing in legacy storage.

Change-Id: Id44face0c694f20d6c70bdbbf59cc32156fdd43f
2017-03-10 21:48:24 +00:00
gord chung
dd1f7c7676 make gnocchi independent of ceilometer-api
gnocchi should be configured even if ceilometer-api isn't started.

Change-Id: I2ac0e1184a4e6ebdf1fba002874b3ff53811d040
2017-03-10 21:31:10 +00:00
Jenkins
a34fca750f Merge "Load pipeline config files from /etc/ceilometer/ firstly" 2017-03-10 03:15:08 +00:00
liusheng
1078d2e59c Load pipeline config files from /etc/ceilometer/ firstly
We have moved the pipeline config files from etc/ceilometer/ to
ceilometer/pipeline/data/, but ceilometer don't support to load pipeline
config file from /etc/ceilometer/ and only support to load these config
files from the source code path. This is not user-friendly.

Change-Id: Iedebf6b05e123c94eb7bd200f64beb09382c3969
Closes-Bug: #1670238
2017-03-06 16:24:37 +08:00
Mehdi Abaakouk
7905ff3a30 Don't run ceilometer-upgrade on unconfigured db
When the database backend is unconfigured, we currently
try to connection to nothing, and due to the retry logic around
the database connection, the user experience is "ceilometer-upgrade is
stuck".

This change keeps the database upgrade is the database is not
configured. And don't use the connection retry logic for upgrade.

Change-Id: I3fa2a332ecac6cb52c145f437f79b2aba43a4757
2017-03-04 10:02:12 +01:00
Jenkins
bb9d962868 Merge "Deprecate event_dispatchers and meter_dispatchers options" 2017-03-01 15:57:46 +00:00
liusheng
8296d48138 Using Panko as publisher than dispatcher if enabled
Change-Id: I2a5ced0d7a06ef68b6c149c35bc1df1116fe70a0
2017-02-27 14:04:21 +08:00
Hanxi Liu
d9c11bb0ab Ship YAML file to /usr/share
Ship YAML files except for polling.yaml to /usr/share
so that users can update on upgrade.

Change-Id: I642a5f70d940e3e463d58d4a67fb02a5ff415404
2017-02-20 19:29:13 +08:00
liusheng
a1c9b80715 Deprecate event_dispatchers and meter_dispatchers options
These two config options only be used in collector service, see[1], Since
we have deprecated collector service and won't install collector service
in devstack defaultly, these two options will be silently ignored.
Instead, we need to config dispachers by publishers configuration in
pipeline.yaml and event_pipeline.yaml.

[1]
https://github.com/openstack/ceilometer/blob/master/ceilometer/collector.py#L67

Change-Id: I5bbf8f3d11defb2afefddbc756447a8e691c157a
2017-02-20 17:25:25 +08:00
Jenkins
891aa33194 Merge "cleanup devstack cache initialisation" 2017-02-18 14:17:37 +00:00
gord chung
e44ff4da48 cleanup devstack cache initialisation
devstack has issues setting multiple value options. it does not
know how to replace properly and ends up just replacing everything.
just delete all previous options if they exist to avoid unexpected
residual values.

Change-Id: I1cb1e4fdddfb9ec7dac321b9e70f688c575a7775
2017-02-09 22:30:17 +00:00
Hanxi Liu
11191a4612 Deprecate collector
To optimise performance, We have to update ceilometer architecture.
The most important step is to deprecate collector. From now on, we
can configure multiple publishers in pipeline for pushing data to
internal or external system.

Highlight using multiple dispatchers.

Change pipeline publisher and disable ceilometer-collector by default.

Co-Authored-By: gordon chung <gord@live.ca>
Change-Id: I25a6e0b9221844adb4412f1829d9e290b6e198a3
2017-02-09 10:24:43 +08:00
gord chung
8999528092 polling definition file
add support for polling specific definition file.
this splits the existing polling specific options out of
pipeline.yaml as transformations only exists on notifcation agent
and polling interval/discovery only exists on polling agents.

backward compatibility is maintained so pipeline.yaml file from
previous releases can still be passed in as polling definition file.

Change-Id: I206566349f98d6b17336cd5ea36ceb1e304dd90c
2017-02-01 01:39:56 +00:00
Roman Podoliaka
226fdab31a devstack: make sure it's possible to deploy panko only
Since Ie4c6329f7b3d1b4686555f7eea0525649d4b31f6 it's not possible to
deploy Ceilometer without backend, but with panko-api enabled, which
is a valid use case.

Split the if statement into two to make sure we do not execute the
else clause and die early.

Change-Id: Icfafc7bccd7b923707483d903bc5338921d14097
2017-01-24 17:21:45 +02:00
gord chung
6eab130464 set panko dispatcher if enabled
clear any existing on start since devstack doesn't know how to properly
iniset a single option of multiopt

Change-Id: Ie4c6329f7b3d1b4686555f7eea0525649d4b31f6
2017-01-23 14:31:33 +00:00
Mehdi Abaakouk
13aeba410b switch instance_discovery to libvirt_metadata
Since Gnocchi is the recommended backend, and other are deprecated.
We can switch instance_discovery to the libvirt_metadata.

Change-Id: Ib846b87bfb76c359fdec28d6cd258781fd201348
2017-01-16 17:35:12 +01:00
Mehdi Abaakouk
49aac3d607 fix the gnocchi resource type upgrade
This fixes the upgrade code to return -1 on exception,
and the volume updates dict.

Change-Id: I3eb2f718428082d4c637cf0f13d503737cfcf1cb
2017-01-10 10:37:13 +01:00
Jenkins
0c4ff9f912 Merge "Don't poll nova with compute agent" 2017-01-09 17:51:13 +00:00
Mehdi Abaakouk
b692d3a6a6 Don't poll nova with compute agent
This change introduces a new method to get instances
metadata on the ceilometer-compute-agent.

This switches devstack/gate to libvirt_metadata for gnocchi

Change-Id: Ice1918659be49589a45d7a406044adc0a187aa27
2017-01-09 15:41:37 +00:00
Julien Danjou
8d23f431ab Remove events storage and API
This now has been moved to Panko.

Change-Id: I179eb0d436752e3bb8abaed714664cf74f5615e6
2017-01-06 16:33:53 +01:00
Mehdi Abaakouk
407b726fc2 upgrade: fix gnocchi resource update
This fix the gnocchi upgrade code.

Also it makes devstack fail if the upgrade don't work.

Change-Id: I658adf71fb997b63daeb2a56d9a6303103ef446d
2017-01-05 09:41:10 +01:00
gord chung
49a6d6de37 always create ceilometer user
the ceilometer user is used for polling and sending to gnocchi. it
is not related to api

Change-Id: Ic0120431674a1b300adcd514464b4474b7cc9f16
2016-12-20 19:03:09 +00:00
Jenkins
e5f117b24a Merge "cleanup gnocchiclient" 2016-12-13 16:09:09 +00:00
zhangyanxian
1e581f3c29 Fix typo in plugin.sh
TrivialFix: "vitualenv" should be "virtualenv"
Change-Id: Id2fd7392ea0cebd55b4317da91aaeff1aabc6df3
2016-12-07 07:04:52 +00:00
Jenkins
0eccf068d5 Merge "devstack: allow to configure not backend" 2016-12-01 21:26:11 +00:00
gord chung
43ec7637cf cleanup gnocchiclient
we don't support url for since mitaka. it is discovered via keystone

Change-Id: Ic7ef35bf208e2a8a1c8fe3c54f8c23abd0c5c50e
2016-11-30 16:57:15 +00:00