Commit Graph

14 Commits

Author SHA1 Message Date
Rajesh Tailor b2516674df Fix typos in parameter descriptions and tests
Change-Id: I20e1dda110e479e796604991be240021fd51d861
2022-06-20 15:50:42 +05:30
Takashi Kajinami f0371cecf2 Use oslo::coordination to manage coordination backend packages
This change replaces current implementation to manage packages for
coordination backend by oslo::coordination resource type, so that we
can gather all logics related to coordination in a single place.

Because Gnocchi is not using a common parameter name, configuration
is still managed by gnocchi class.

Depends-on: https://review.opendev.org/792535
Change-Id: I9998d1351ec656fd2e4c0eee8de16f4c65d1aeb8
2021-08-20 15:14:13 +00:00
Thomas Goirand fe14239030 Get rid of the $pyvers variable
Since everyone has switched to Python3, it's time for the removal of the
$pyvers variable.

Change-Id: I4446c778d5853dfe0e4e825eca3b441478a85340
2021-05-21 11:21:07 +02:00
Takashi Kajinami 271ccb6103 Deprecate parameters under gnocchi::storage
coordination_url[1] and metric_processing_delay[2] under storage
section are both deprecated, so deprecate parameters under
gnocchi::storage and migrate these parameters to appropriate
classes, gnocchi and gnocchi::metricd .

[1] 70b9ca427b
[2] 72fdba704d
Change-Id: I88dff282df4ce477e543dd2fcf5052a9ac472b84
2020-03-20 22:06:53 +09:00
Tobias Urdin a0fccec778 Change ubuntu to py3
Change-Id: I3bc422abeb49fe068d6013333101366d0071ebab
2019-01-17 12:11:29 +01:00
Tobias Urdin 56794f300a Move gnocchi api in wsgi back to python2
Canonical are packaging gnocchi-api package with apache
and python3 by default. We cannot test it in CI since
we cannot run py2 and py3 on the same node with apache wsgi.

Canonical helped us by packaging python2 support back into
python-gnocchi package so we change our wsgi usage to use
this package and set the new wsgi script path.

We still want users to be able to install only gnocchi-api
since they might not run apache wsgi even though its installed by
default.

Adds installation of rados and redis packages for python3
when needed, this is because all gnocchi components will
still be running in py3, also CLI such as gnocchi-upgrade
but the gnocchi-api is in wsgi using py2. Because of that
we still need to install the py2 packages.

Enables acceptance testing for Debian based operating systems.

Change-Id: I070f88dd40ca4129cbd3abf5b4f5ecb511b2895e
2018-03-06 22:34:21 +01:00
Pradeep Kilambi 315733a00c Add metric_processing_delay param
Expose this param to tweak the delay between processing
metrics in gnocchi.

Change-Id: I5de5283d1b14e0bba63d6d9a440611914ba86ca4
2017-04-19 12:29:36 -04:00
Pradeep Kilambi c0f0622e1d Install python-redis when coordination is set
Without this redis can be missing when needed and cause
metricd to go nuts.

Change-Id: I5aa394f25f8c7b0f733868eb4389acda26333132
2017-03-03 11:30:45 -05:00
Pradeep Kilambi 970ecbbb8a Remove carbonara package reference
carbonara package only had one bin file carbonara-dump.
Thats gone now. Rest of the carbonara code is just python
and part of python-gnocchi. So we dont need this anymore.

Change-Id: Iaf1d4b5c85dde30b68d383f43b95d650e43d96a4
2017-01-19 18:43:55 -05:00
ZhongShengping 654cd9c862 Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: Idc43b06eab3f7103392da699e2a77bb55ce7344d
2016-12-05 11:44:08 +08:00
Pradeep Kilambi c8df591e5e Add coordination url to gnocchi::storage
Change-Id: Ie4c0fbee88486d9ff4f1b06105a8f401c9b6b719
2016-06-06 09:37:41 -04:00
Alex Schultz 2c8c0dcc19 Switch gnocchi to rspec-puppet-facts
This change updates the gnocchi tests to use rspec-puppet-facts to test
multiple operating systems.

Change-Id: I56545ff69c2db76be5db5ee6dca36ec9cbc6e801
2016-04-06 10:43:14 -06:00
Gael Chamoulaud 9377bbb813 Switch gnocchi to use os_service_default fact
This change switches the gnocchi module to use the os_service_default
fact for configuration options that default to '<SERVICE DEFAULT>'.

Related-bug: #1515273
Change-Id: I88f51a7025905b381c117675afc30a9ec1756c5b
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-12-09 16:00:11 +01:00
Emilien Macchi feee911823 Implement API service & dependencies
This patch rewrite puppet-gnocchi to be compliant with other modules.
It takes example at how puppet-aodh was written.

* Update init.pp to match Gnocchi requirements
* Update config.pp
* Add policy.pp
* Add storage.pp for carbonara
* Update db configuration
* Update keystone/auth.pp
* Add acceptance for API service for Centos only (not packaged on Ubuntu)
* Update unit tests

Change-Id: I82400b1e30f3700ab7a3d006b6bb143351bcc830
2015-11-06 15:43:42 -05:00