cloudkitty/devstack
Matt Crees 7b1cd3aee0 Add OpenSearch as a v2 storage backend
To facilitate the switch from Elasticsearch to OpenSearch, the ES
backend has been duplicated and renamed where appropriate to OpenSearch.

The OpenSearch implementation was modified in places for compatibility
with OpenSearch 2.x, for example:

- remove mapping name from bulk API URL
- replace put_mapping by post_mapping

This will allow for the future removal of the Elasticsearch backend.

Change-Id: I88b0a30f66af13dad1bd75cde412d2880b4ead30
Co-Authored-By: Pierre Riteau <pierre@stackhpc.com>
(cherry picked from commit 964c6704a2)
2023-12-15 08:48:51 +00:00
..
files Update the devstack plugin 2019-03-21 09:18:32 +00:00
apache-cloudkitty.template Use DevStack VENV path 2023-08-23 17:01:01 -03:00
plugin.sh Add OpenSearch as a v2 storage backend 2023-12-15 08:48:51 +00:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-24 14:13:58 +08:00
settings Add OpenSearch as a v2 storage backend 2023-12-15 08:48:51 +00:00

Installing CloudKitty using DevStack

The devstack directory contains the required files to integrate CloudKitty with DevStack.

Configure DevStack to run CloudKitty

$ DEVSTACK_DIR=/path/to/devstack
  1. Enable Ceilometer:

    $ cd ${DEVSTACK_DIR}
    $ cat >> local.conf << EOF
    [[local|localrc]]
    # ceilometer
    enable_plugin ceilometer https://opendev.org/openstack/ceilometer.git master
    EOF
  2. Enable CloudKitty:

    $ cd ${DEVSTACK_DIR}
    cat >> local.conf << EOF
    # cloudkitty
    enable_plugin cloudkitty https://opendev.org/openstack/cloudkitty master
    enable_service ck-api, ck-proc
    EOF
  3. Set CloudKitty collector to gnocchi:

    $ cd ${DEVSTACK_DIR}
    cat >> local.conf << EOF
    CLOUDKITTY_COLLECTOR=gnocchi
    EOF

Run devstack as usual:

$ ./stack.sh

See the documentation if you want more details about how to configure the devstack plugin.