Commit Graph

51 Commits

Author SHA1 Message Date
zhhuabj a4ffe0e28c Support disabling apache wsgi socket rotation
Bug LP 1863232 introduced a new Apache configuration option called
WSGISocketRotation which allows users to disable wsgi socket
rotation. This patch makes this configurable with a new
wsgi-socket-rotation config option that defaults to the Apache
default and can optionally be set to False.

Closes-Bug: #2021550
Change-Id: Ia50067e1f64a6003d5c2ca2ebc22903a1ab8d3ae
2023-10-17 18:13:35 +08:00
Corey Bryant 2f053a6cef Add 2023.2 Bobcat support
* sync charm-helpers to classic charms
* change openstack-origin/source default to bobcat
* add mantic to metadata series
* align testing with bobcat
* add new bobcat bundles
* add bobcat bundles to tests.yaml
* add bobcat tests to osci.yaml
* update build-on and run-on bases
* drop kinetic
* update charmcraft_channel to 2.x/stable

Change-Id: I12adaadd0a5991c271fba3aa8ebaf6c4e5122df0
2023-08-08 21:17:05 +00:00
Zuul 150498576c Merge "Replace remote-sink description with valid example" 2023-06-08 13:24:34 +00:00
Brett Milford b27083e9b5 Replace remote-sink description with valid example
Remote sync configures ceilometer.event.publisher. Only a subset of
    publishers are valid.  They are test, messaging, http, gnocchi and
    zaqar

Change-Id: I56028d674eae58d224ee843152623bdb0d2b5d45
2023-06-08 04:36:13 +00:00
Corey Bryant 35a347d69e Add Antelope support
* sync charm-helpers to classic charms
* change openstack-origin/source default to antelope
* align testing with antelope
* add new antelope bundles
* add antelope bundles to tests.yaml
* add antelope tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases

Change-Id: I35b051fb5a86081380abe9d73b88b797b91febac
2023-03-07 20:32:46 +00:00
Corey Bryant 118f10a707 Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml

Change-Id: I785cad8d470af5560ba2eb0616622d454e9d1c1b
2022-08-26 18:40:27 +00:00
Alex Kavanagh 074e8085a7 Migrate charm to charmhub latest/edge track
Change-Id: If6ecb9a650054944b89606d4c4117a8aea1af868
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-01-28 16:23:13 -07:00
Arif Ali f046895cdb Revert "Add meter-sink as an option"
This reverts commit 6ed691807d.

The meter_sink is actually required in pipeline.yaml and not in
event_pipline.yaml, and this is something that needs to be enabled
for newton and above as the ceilometer-collector is not the
dependancy for this.

Change-Id: Ie40a99281f1f60de7a409e1e3a2025a850a8a446
2021-11-05 11:27:02 +01:00
Arif Ali 6ed691807d
Add meter-sink as an option
If the user wants to add a meter-sink to the pipeline.yaml
at the moment this cannot be done. Previously, pipeline-yaml
config option was allowed and could replace the whole config.

This will now allow to also add meter-sink as an option to
the event_pipeline.yaml, and allow a new source of collecting
all meters, and pushing to the value of meter-sink URLs.

Closes-Bug: 1938807
Change-Id: If6cd82e4153b29c1d8fdb6df150d0d4bb11d4e49
2021-08-12 10:23:38 +01:00
Nobuto Murata df30cfc048 Update worker-multiplier config description
Based on the change in charm-helpers:
https://github.com/juju/charm-helpers/pull/553

Related-Bug: #1843011
Change-Id: I7c09445b79ac7073f90f10032b90751df23ab47e
2021-03-30 11:05:58 +09:00
Rodrigo Barbieri 740cac6571 Add polling-batch-size config option
Samples collected can be batched together,
consequently increasing or reducing the
amount of API calls and body data
sent to the configured publisher.

This config is available since Rocky,
adding the config option to allow its
tuning.

Change-Id: I0e3f756aa0305d3a96e21c7498d6a56208c51007
Closes-bug: #1885190
2020-08-19 18:04:53 +00:00
Edward Hope-Morley d398cdff36 Make event_sink publisher configurable
The charm currently configures events to be published to
rabbit on both the config.event_topic (event.sample queue)
and alarm topic but as of Queens Ceilometer no longer
consumes event.sample. This patch makes the event_sink
publishers configurable and defaults to publishing to
aodh to retain backwards compatibility.

Change-Id: I5b55f31adcf2b069ff51e387a416f9f1ac4099f8
Partial-Bug: #1676586
2019-02-07 10:09:48 +00:00
Xav Paice 2baf36f4ee Add polling.yaml to managed configs
This change adds polling.yaml to the list of managed config files, for
Queens and above.  Two new config items are added alongside the
template, to take into account a choice between the two polling.yaml
files supplied with the Ceilometer source, one which has a small list of
pollsters and the other which has all pollsters.  Additionally the
change adds the option to set the polling interval.

Change-Id: Ifff72870cf79bea23dbd21586857dd832c9e1405
Closes-Bug: 1785933
Closes-Bug: 1652848
2018-11-30 15:01:22 +13:00
Felipe Reyes 6d66394482 Add config to manipulate the pipeline.yaml
The configuration file /etc/ceilometer/pipeline.yaml will be managed by
juju, currently it is not. On every change of this file
ceilometer-collector daemon is restarted.

Change-Id: Ie18a5284812f4f698b929b9e17b34289e7732bf7
Closes-Bug: 1715672
2018-09-26 15:27:41 +00:00
Michael Skalka 668a289862 Add support for remote consumers of Ceilometer event data.
There is a use-case to forward events received by ceilometer from
OpenStack services to an external system via http/udp. It comes
from the fact that aodh does not include all information about an
event alarm into POSTed data. Raw event data can be published by
ceilometer via http/udp to an external system without giving a
user direct access to rabbitmq.

This patch adds a context generator, associated templates, and
configuration entry for configuring multiple event-sinks in
/etc/ceilometer/event_pipeline.yaml. This also modifies the
ceilometer.conf templates to reflect the correct naming of the
same file to align with upstream Ceilometer.

Also adds support for a future Panko charm event consumer using
the event-service interface in the above context with associated
metadata and hook symlinks.

This change will only effect Mitaka and later clouds.

Closes Bug: 1763321

Change-Id: I931438c720272bd9a3d2b958ebabcd3584790bd0
2018-05-08 09:50:36 -04:00
James Page b7a329d456 Align worker configuration option
Align ceilometer charm with worker-multiplier usage as found
across the majority of OpenStack Charms.  Worker configuration
values are set for API, Notification and Collector services
as needed for each release. Note that for Ocata or later, API
services are executed as WSGI apps under Apache which was
already plugged into the standard worker calculation logic
in charm helpers.

This includes dropping of the existing api-worker configuration
option in preference to a calculated approach.

Change-Id: Idba7c3012d9d24b7ae6ef8eade4a5261ef1cbddc
Closes-Bug: #1745189
2018-02-20 13:29:55 +00:00
David Ames a34db0aa8e Update HAProxy default timeout values
The default HAProxy timeout values are fairly strict. On a busy cloud
it is common to exceed one or more of these timeouts. The only
indication that HAProxy has exceeded a timeout and dropped the
connection is errors such as "BadStatusLine" or "EOF." These can be
very difficult to diagnose when intermittent.

This charm-helpers sync pulls in the change to update the default
timeout values to more real world settings. These values have been
extensively tested in ServerStack. Configured values will not be
overridden.

Partial Bug: #1736171

Change-Id: I2474ba8abbd77d89b82d2fefb51aef463c45169b
2017-12-11 11:36:24 -08:00
James Page 669bc22be9 Add support for use-internal-endpoints
Add support for use of internal endpoints for inter-service
API calls from ceilometer.

Change-Id: Id702de85fb2236f21773ee7f2fb3698012b5f16c
Closes-Bug: 1713923
2017-09-05 11:46:26 +01:00
James Page 72522a341f Add support for gnocchi
Add new metric-service interface to support use of
Gnocchi as a storage backend for resource and metric
data.

Configure ceilometer to use the gnocchi dispatcher
in the event that ceilometer is related to gnocchi.
This has the side effect of disabling the ceilometer
API - Aodh and Gnocchi API's should be used directly
in this deployment topology.

Note that Gnocchi is only supported in OpenStack
Mitaka or later; 'metrics-service' is added to the
required interfaces configuration as an alternative
to 'mongodb' for >= Mitaka.

Change-Id: Ia31dfefd5efa3fb5ec2ba5d132ee865c567bd8df
2017-08-10 12:57:42 +01:00
Edward Hope-Morley 5dd3d9d851 Cleanup config.yaml
Change-Id: Iafcf482dd75e808207611cc03fa552a751aa3e9e
2017-06-07 10:10:12 +01:00
Corey Bryant 47ef4a4684 Run ceilometer-api under mod_wsgi with apache2
This change aligns with the Ocata ceilometer package, which has
moved the ceilometer-api to run under mod_wsgi with apache2.

Change-Id: I0f13f3bcb346182541376843a65d07f570f89442
2017-01-13 20:32:48 +00:00
Leonardo Borda f3c74cc4c6 Add metering and event ttl config options
ceilometer.conf template >= Kilo does not contain metering-time-to-live
and event-time-to-live parameters. Add these options so we can control
ceilometer database growth.

Change-Id: Id5831280daeb582586bfa615268309c4abec5d63
Closes-Bug: 1561220
2016-07-11 09:25:04 +01:00
David Ames 31ccb187c6 DNS HA
Implement DNS high availability. Pass the correct information to
hacluster to register a DNS entry with MAAS 2.0 or greater rather
than using a virtual IP.

Charm-helpers sync to bring in DNS HA helpers

Change-Id: I543095a210e668f30c3617990b3ee668a3143dd9
2016-06-15 11:25:22 -07:00
Edward Hope-Morley ae67aad7fe Add hardening support
Add charmhelpers.contrib.hardening and calls to install,
config-changed, upgrade-charm and update-status hooks. Also
add new config option to allow one or more hardening
modules to be applied at runtime.

Change-Id: I7752d72cc5a3f47fe66bca23aac730d76af8556a
2016-03-24 11:12:40 +00:00
David Ames 014189ce27 Fix lp:1522130 Add sane haproxy timeout defaults and make them configurable. 2015-12-07 15:08:12 -08:00
Corey Bryant 1faed27c9f Rebased on trunk 2015-09-22 15:34:48 +00:00
billy.olsen@canonical.com 1813855ab6 [niedbalski,r=billy-olsen] Add api_workers option to allow the number of
workers available to be configured.

Closes-Bug: 1473222
2015-09-21 12:08:13 -07:00
Corey Bryant aed71aaab3 Action managed openstack upgrade support 2015-09-14 20:58:54 +00:00
Edward Hope-Morley 41f528eb59 [trivial] Cleanup config.yaml
Partially-Closes-Bug: 1473426
2015-07-10 15:14:06 +01:00
Jorge Niedbalski a28bbce3fd Adds the api_workers option 2015-07-09 18:29:27 -03:00
Corey Bryant e008bc301c [billy-olsen,r=corey.bryant] Provide support for user-specified public endpoint hostname. 2015-06-11 08:57:33 -04:00
Billy Olsen 608c72f8b2 Change config option to os-public-hostname and lint error 2015-06-03 11:26:45 -07:00
Billy Olsen 889bbdaaa7 [wolsen,r=] Add support for overriding public endpoint addresses.
Adds in the config option for overriding public endpoint addresses
and introduces a unit tests to ensure that the override for the
public address is functioning correctly.

Closes-Bug: #1398182
2015-06-02 10:55:03 -07:00
Brad Marshall 21cfd2bfb5 [bradm] Fixed formatting for nagios_servicegroup config option 2015-02-19 12:03:06 +10:00
Brad Marshall f72aff4ad8 [bradm] Add nagios_servicegroups config option 2015-02-19 11:56:28 +10:00
Liam Young 008b832aba Merged next in and resolved conflicts 2015-01-09 16:27:03 +00:00
root 273f1c3453 [bradm] initial nrpe checks 2014-10-29 22:30:35 -05:00
Edward Hope-Morley 0b13902584 [hopem,r=]
Ceilometer api HA
2014-10-21 19:49:06 +01:00
Liam Young 1a4ce28e53 [trivial] lint fixes 2014-10-01 15:22:55 +00:00
James Page ad45c61d5e Add support for multiple-networks 2014-06-27 12:35:10 +01:00
James Page c685265ceb Resync ssl-everywhere helpers, add ssl_* configuration 2014-02-27 09:47:41 +00:00
yolanda.robla@canonical.com d121babc8a added syslog support 2014-02-03 11:33:27 +01:00
James Page 6ba2f86ee5 Default to distro, use grizzly if on precise by default 2013-10-20 17:12:40 -07:00
James Page 3d154836aa Switch to using openstack context templating 2013-10-18 14:38:01 +01:00
James Page 3327961f7c Tidy template, pass config values for logging 2013-10-17 15:41:48 +01:00
James Page e66a379d5a General tidy, sort out hooks, use openstack helpers 2013-03-31 12:19:54 +01:00
yolanda.robla@canonical.com f27b140403 fixes in metadata file 2013-02-14 14:15:03 +01:00
yolanda.robla@canonical.com af33c6fe17 fixes due to review 2013-02-14 12:45:03 +01:00
yolanda.robla@canonical.com d2a01ed024 updated keystone templates 2013-02-11 14:54:11 +01:00
Yolanda Robla bbd63210bc first hook 2013-01-14 14:03:19 +00:00