137 Commits

Author SHA1 Message Date
gordon chung
bb699bc3df set higher batching requirement
in practice, there are much more than 10 resources on the queue at
any given time so the amount of grouping done is minimal currently.
let's set a higher number so we have more groupings

Change-Id: I6bd0b9797f3a90c744002f4cf364faa696ab63ec
Closes-Bug: #1536277
2016-02-04 11:22:32 -05:00
Mehdi Abaakouk
ae591af8c1 devstack: use password with version discovery
Devstack will move to keystone v3, so support it here.

Change-Id: I2a6eb7ec63ab6d2d7ac5c8e162ef96197137a966
Closes-bug: #1539728
2016-02-02 17:36:17 +01:00
gordon chung
628ac86f48 enable notification agent partitioning
we should just enable this so we can at least catch major major
breakage.

Change-Id: Ib49257ac45c9baef997e24f5ae3327f951b97e2b
2016-01-26 14:13:31 -05:00
Mehdi Abaakouk
c1120aed0d Don't store events with Gnocchi
Since we move the Gnocchi configuration in Ceilometer devstack plugin
the event subsystem is enabled but unconfigured. So disable the
event subsystem by default if Gnocchi is used like before.

Change-Id: I33a6e962dcd01e12f828c4c126f6220439e5bfac
2016-01-19 19:52:18 -05:00
Julien Danjou
014fa900cd devstack: add support for Gnocchi backend
Change-Id: Ie5beee502ab07e4fca3353dae03c2f1f524a48c7
2016-01-18 14:28:40 +01:00
jizilian
c8c6c670ad Fix the typos in the source code
Scan the source code and filter some results. Fix the typos in
the source code. Will deliver remaining results in other patches.

ceilometer/event/trait_plugins.py
Line 169: s/it's/its

/ceilometer/publisher/kafka_broker.py
Line 58: s/this option is/options are
Line 60: s/with with/with

devstack/plugin.sh
Line 400: s/the the/the

doc/source/install/manual.rst
Line 557: s/seperately/separately
Line 567: s/requirments/requirements

Change-Id: Ia4577724977ec255ad426c7c9647ac26d0280f24
2015-12-22 21:54:15 -05:00
gordon chung
c410ff9e82 Revert "Revert "devstack config for dogpile cache""
This reverts commit a0bb0f16b1fd9785ceb5a8dc933ba2bcae54412a.

Closes-Bug: #1519477
Co-Authored-By: Chris Dent <cdent@anticdent.org>
Change-Id: I34aa352c39d80692d7c3aa71eb108f0257d36484
2015-12-15 19:47:43 +00:00
gordon chung
d118fb6a00 clean up integration test urls
the endpoints for aodh, ceilometer and gnocchi end with trailing
slash. because of that, our tests are calling <endpoint>//<path>.
this works but is technically incorrect. this patch cleans it up.

Change-Id: Ieed46c38fff4e7ea86f0f5eeab105c70b6249003
2015-11-25 18:04:30 -05:00
Jenkins
8a3e799de5 Merge "remove config files when run clean.sh" 2015-11-25 09:50:00 +00:00
ZhiQiang Fan
af85965f55 remove config files when run clean.sh
Currently we don't remove Ceilometer config files when ./clean.sh
is run, which should be fixed because it will bite developers when
they test change related to devstack script.

Note, this patch also removes ceilometer api log files when WSGI
is not enabled.

Change-Id: I3fd62787708cf64d1860b2b64d25773e79b17fe9
Closes-Bug: #1509253
2015-11-25 03:40:08 +08:00
Julien Danjou
6bc86f75ea Remove alarming code
Since we moved all the alarming code and subsystem to the Aodh project,
remove it from Ceilometer.

Depends-On: I3983128d2d964b0f1f3326948b27f5d94df65a04
Depends-On: I99c9f2be0bbc70f289da5c2ba22698b8b7dc4495
Change-Id: Id169a914c1d1f2f5ad03ebb515d3d052204d5c5c
2015-11-24 13:44:58 +01:00
ZhiQiang Fan
0ba0ba7270 install database when collector is enabled.
Currently, if we run devstack for compute node, ceilometer-collector
service will be disabled on compute node, but the database is still
installed.

This patch makes sure that database is installed only when collector
is enabled.

Also add check for coordinate and hypervisor requirements.

Change-Id: Ib3614d2e698403c24ad299d95ef42c81815fa76e
Closes-Bug: #1508518
2015-11-13 19:40:14 -07:00
ZhiQiang Fan
9c3278c942 configure Apache only when ceilometer-api is enabled
Currently, even though ceilometer-api service is disabled by user,
we still try to configure ceilometer-api in Apache if CEILOMETER_USE_MOD_WSGI
is not set to false. This patch adds a constraint to ensure we only
configure when ceilometer-api is enabled.

Change-Id: I3f2bab3f646f7df57c32db3251f811cb801d93de
Partial-Bug: #1508518
2015-10-23 02:26:13 -06:00
Chris Dent
cac2b26d06 Do collector setup and storage cleanup for all backends
It appears that a bit of overzealous copy and pasting of commands has
meant that:

* the number of collectors was not being set for mongodb, which may
  be a cause of performance issues in the gate
* the cleanup was not being called for the sql backend, which leaves
  behind wsgi config files when that backend is chosen

Change-Id: I013f14f8b167e564f794333c0fe5c8f421bb25a9
2015-10-13 09:17:01 +00:00
ZhiQiang Fan
27822d05c9 change collector_workers to [collector]workers
We have deprecated collector_workers, let's update it in devstack as
well.

Change-Id: I914d34998ca357b1dea117229fbee494509d8f57
Closes-Bug: #1505555
2015-10-13 01:05:27 -07:00
Chris Dent
614d7422d5 Be explicit when copying files to /etc/ceilometer
If we use a glob too many files are attempted to be copied and we can
cause two issues:

* there can be a permission problem because an earlier call to
  configure_rootwrap already wrote some files as root
* iniset calls on ceilometer.conf that already happened will be
  clobbered

Change-Id: I960256cdd2c32bbbe4591282e8a56ee156541667
Closes-Bug: #1503338
2015-10-09 13:49:02 +00:00
Chris Dent
0f0b725935 Remove last vestiges of devstack from grenade plugin
lib/ceilometer no longer exits so we must source our plugin to get
stop_ceilometer

Change-Id: I059cc24eae046df195573c0f1a90cd52e8ef1c7e
Depends-On: I01d00f95d602b9b159b3b64ff46a7cd3e23c3983
2015-10-06 12:34:23 -04:00
Julien Danjou
e6087c9570 devstack: install all configuration files from etc/
All those files need to be installed.

Change-Id: I5b9da5e959e94a22c322c73249d00c729b171efb
2015-09-25 23:50:32 +02:00
Jenkins
15b07a2b6e Merge "devstack: add new option to support event-alarm" 2015-09-11 02:50:38 +00:00
Jenkins
2fc2bfb42e Merge "polling: remove deprecated agents" 2015-09-08 20:05:06 +00:00
Julien Danjou
43e07a393d polling: remove deprecated agents
We have deprecated the agents for a while now in favor of the
ceilometer-polling tool, let's update the doc for good and remove them.

Depends-On: I4a2a982d4153a31971a5f1a1b504b96ce29236f9
Change-Id: I7447ba4f408c95b0acf1b809504ce16fff1c6e21
2015-09-07 10:20:29 +02:00
Ryota MIBU
5670ffebb6 devstack: add new option to support event-alarm
Change-Id: I71c11f3c57e4a055893a80083ce472cc92e27fb9
2015-09-03 18:56:12 +09:00
Chris Dent
f24d1f43cc Sync devstack plugin with devstack:lib/ceilometer
This removes the cp of the meters.yaml file to /etc/ceilometer. It
is not needed.

This is part of a regular process of keeping the plugin and the
devstack version functionally equivalent until the devstack version
finally goes away.

Change-Id: I1261f054f077b73d3d64529ca9c59678ecbf15de
2015-09-03 09:25:20 +01:00
Chris Dent
788a8341db Create conf directory during devstack install phase
Otherwise other plugins which depend on ceilometer and want to set
configuration items may have issues with the configuration directory not
being there.

Change-Id: Id8d10c9fcdd85e2840a74dcff5245b6f44f7424b
2015-08-26 10:21:33 +00:00
Jenkins
6978e301b3 Merge "Revert "Remove version from os_auth_url in service_credentials"" 2015-08-14 12:19:29 +00: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
Jenkins
56416fec25 Merge "Grenade plugin using devstack plugin for ceilometer" 2015-08-13 15:37:27 +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
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
Pradeep Kilambi
94b3d40cea Enable entry points for new declarative meters
Include the new entry point for meters notifications
and deprecate the migrated ones. Also add the exchange
controls to the notification agent directly.

As a first step, this commit converts glance, magnetodb
and orchestration meters.

Partially Implements: blueprint declarative-notifications

Depends-On: I9de94c5ac6349c3b46adbacb77fc877b5201285c

Change-Id: I45ea9ab20bbed1ec12b91a20977e8adb52bf59da
2015-08-07 08:28:00 +00:00
Chris Dent
7b2376068f Sync devstack plugin with devstack:lib/ceilometer
While the removal of ceilometer from core devstack is still pending
we need to make sure that change in lib/ceilometer are reflected in
the plugin. This synchronizes the small number of recent changes.
We're nearly there on the extractions so there shouldn't be too much
more of this.

Change-Id: I8c99d57ba5183d3c63b4814ca0664d5bf3420832
2015-08-06 09:27:32 +00:00
Mehdi Abaakouk
2f3d9a8c55 Move gnocchi resources definition in yaml file
Transformation of samples to gnocchi resources/metrics is
just json2json think, so do it in a declarative ways like we do
for event and declarative notification.

Implements blueprint gnocchi-declarative-resources

Change-Id: I5a202c30614d06821063e243d4e2330736aba5fd
2015-07-21 16:05:44 +02:00
Jenkins
527e7b4783 Merge "Store and restore the xtrace option in devstack plugin" 2015-07-17 20:06:47 +00:00
Chris Dent
6d7c7cb00a Store and restore the xtrace option in devstack plugin
Otherwise we might upset the xtrace setting in other files.

Change-Id: I93e7654fb67f455d3cbedb1e6cd010651d8d67dd
2015-07-16 13:17:06 +00:00
Chris Dent
33de8f9904 Delay the start of the collector until after apache restart
Otherwise when using the gnocchi plugin keystone can drop out of
sight at exactly the wrong time.

Change-Id: If0d5faaadd297cbb6c25dd66da07e83a4bce71bd
2015-07-15 17:02:09 +00:00
Chris Dent
8f00ad5eff Namespace functions in devstack plugin
Otherwise there can be collisions with other plugins.

Also change how mongodb is installed, slightly, to insure that it is
actually running. Otherwise calls to drop database during the
cleanup function can fail because mongo is not actually there.

Change-Id: Id6ecb21614f7091e522d99bcadd3b5e237dd6723
2015-07-10 13:41:24 +00:00
Chris Dent
db92d31f16 Create a devstack plugin for ceilometer
This is mostly a straight port of devstack:lib/ceilometer with some
minor cleanups in the code. Notable changes include:

* default values are moved to devstack/settings
* all services provided by ceilometer are turned on by default, use
  disable_service to turn them off
* mongod smallfiles is no longer used as it is not (apparently) used
  with deb-based installs and there's a lot of water under the
  bridge since then, so let's remove the complexity
* config handling is broken down into smaller sub-functions
* explicitly require python redis driver if needed, otherwise it
  will not be available in a virtualenv
* install_ceilometermiddleware is not included, it is moved to
  lib/swift

Change-Id: If36faa72b8c8d0f58a4ab5d02ed9cf92de3583b7
2015-06-29 09:38:53 +00:00