Merge "Switch default cloudkitty storage backend to influxdb"
This commit is contained in:
commit
7d95cfd737
@ -597,7 +597,7 @@ enable_horizon_vitrage: "{{ enable_vitrage | bool }}"
|
|||||||
enable_horizon_watcher: "{{ enable_watcher | bool }}"
|
enable_horizon_watcher: "{{ enable_watcher | bool }}"
|
||||||
enable_horizon_zun: "{{ enable_zun | bool }}"
|
enable_horizon_zun: "{{ enable_zun | bool }}"
|
||||||
enable_hyperv: "no"
|
enable_hyperv: "no"
|
||||||
enable_influxdb: "{{ enable_monasca | bool or (cloudkitty_storage_backend is defined and cloudkitty_storage_backend == 'influxdb') }}"
|
enable_influxdb: "{{ enable_monasca | bool or (enable_cloudkitty | bool and cloudkitty_storage_backend == 'influxdb') }}"
|
||||||
enable_ironic: "no"
|
enable_ironic: "no"
|
||||||
enable_ironic_ipxe: "no"
|
enable_ironic_ipxe: "no"
|
||||||
enable_ironic_neutron_agent: "{{ enable_neutron | bool and enable_ironic | bool }}"
|
enable_ironic_neutron_agent: "{{ enable_neutron | bool and enable_ironic | bool }}"
|
||||||
@ -861,6 +861,12 @@ cinder_backup_mount_options_nfs: ""
|
|||||||
#######################
|
#######################
|
||||||
# Valid option is gnocchi
|
# Valid option is gnocchi
|
||||||
cloudkitty_collector_backend: "gnocchi"
|
cloudkitty_collector_backend: "gnocchi"
|
||||||
|
# Valid options are 'sqlalchemy' or 'influxdb'. The default value is
|
||||||
|
# 'influxdb', which matches the default in Cloudkitty since the Stein release.
|
||||||
|
# When the backend is "influxdb", we also enable Influxdb.
|
||||||
|
# Also, when using 'influxdb' as the backend, we trigger the configuration/use
|
||||||
|
# of Cloudkitty storage backend version 2.
|
||||||
|
cloudkitty_storage_backend: "influxdb"
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Designate options
|
# Designate options
|
||||||
|
@ -100,13 +100,12 @@ cloudkitty_custom_metrics_yaml_file: "metrics.yml"
|
|||||||
####################
|
####################
|
||||||
# Storage backend
|
# Storage backend
|
||||||
####################
|
####################
|
||||||
# Valid options are 'sqlalchemy' or 'influxdb'. The default value in
|
# Valid options are 'sqlalchemy' or 'influxdb'. The default value is
|
||||||
# Kolla-ansible is 'sqlalchemy' (for backwards compatibility).
|
# 'influxdb', which matches the default in Cloudkitty since the Stein release.
|
||||||
# When cloudkitty_storage_backend is define with "influxdb" as its value,
|
# When the backend is "influxdb", we also enable Influxdb.
|
||||||
# we also trigger the deployment of Influxdb via Kolla-ansible.
|
|
||||||
# Also, when using 'influxdb' as the backend, we trigger the configuration/use
|
# Also, when using 'influxdb' as the backend, we trigger the configuration/use
|
||||||
# of Cloudkitty storage backend version 2.
|
# of Cloudkitty storage backend version 2.
|
||||||
cloudkitty_storage_backend: "sqlalchemy"
|
cloudkitty_storage_backend: "influxdb"
|
||||||
|
|
||||||
# InfluxDB retention policy to use (defaults to autogen).
|
# InfluxDB retention policy to use (defaults to autogen).
|
||||||
# cloudkitty_influxdb_retention_policy: "autogen"
|
# cloudkitty_influxdb_retention_policy: "autogen"
|
||||||
|
@ -1,6 +1,19 @@
|
|||||||
---
|
---
|
||||||
- include_tasks: config.yml
|
- include_tasks: config.yml
|
||||||
|
|
||||||
|
# NOTE(mgoddard): Transition support for upgrades from Rocky or Stein which may
|
||||||
|
# be using the SQLAlchemy storage backend.
|
||||||
|
# TODO(mgoddard): Remove in U cycle.
|
||||||
|
- name: Creating Cloudkitty influxdb database
|
||||||
|
become: true
|
||||||
|
kolla_toolbox:
|
||||||
|
module_name: influxdb_database
|
||||||
|
module_args:
|
||||||
|
hostname: "{{ influxdb_address }}"
|
||||||
|
port: "{{ influxdb_http_port }}"
|
||||||
|
database_name: "{{ cloudkitty_influxdb_name }}"
|
||||||
|
when: cloudkitty_storage_backend == 'influxdb'
|
||||||
|
|
||||||
- include_tasks: bootstrap_service.yml
|
- include_tasks: bootstrap_service.yml
|
||||||
|
|
||||||
- name: Flush handlers
|
- name: Flush handlers
|
||||||
|
@ -72,7 +72,7 @@ version = 1
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if cloudkitty_storage_backend == 'influxdb' %}
|
{% if cloudkitty_storage_backend == 'influxdb' %}
|
||||||
[storage_influx]
|
[storage_influxdb]
|
||||||
database = {{ cloudkitty_influxdb_name }}
|
database = {{ cloudkitty_influxdb_name }}
|
||||||
host = {{ influxdb_address }}
|
host = {{ influxdb_address }}
|
||||||
port = {{ influxdb_http_port }}
|
port = {{ influxdb_http_port }}
|
||||||
|
@ -268,7 +268,7 @@
|
|||||||
#enable_horizon_watcher: "{{ enable_watcher | bool }}"
|
#enable_horizon_watcher: "{{ enable_watcher | bool }}"
|
||||||
#enable_horizon_zun: "{{ enable_zun | bool }}"
|
#enable_horizon_zun: "{{ enable_zun | bool }}"
|
||||||
#enable_hyperv: "no"
|
#enable_hyperv: "no"
|
||||||
#enable_influxdb: "{{ enable_monasca | bool or (cloudkitty_storage_backend is defined and cloudkitty_storage_backend == 'influxdb') }}"
|
#enable_influxdb: "{{ enable_monasca | bool or (enable_cloudkitty | bool and cloudkitty_storage_backend == 'influxdb') }}"
|
||||||
#enable_ironic: "no"
|
#enable_ironic: "no"
|
||||||
#enable_ironic_ipxe: "no"
|
#enable_ironic_ipxe: "no"
|
||||||
#enable_ironic_neutron_agent: "{{ enable_neutron | bool and enable_ironic | bool }}"
|
#enable_ironic_neutron_agent: "{{ enable_neutron | bool and enable_ironic | bool }}"
|
||||||
@ -446,6 +446,17 @@
|
|||||||
#cinder_backup_share: ""
|
#cinder_backup_share: ""
|
||||||
#cinder_backup_mount_options_nfs: ""
|
#cinder_backup_mount_options_nfs: ""
|
||||||
|
|
||||||
|
#######################
|
||||||
|
# Cloudkitty options
|
||||||
|
#######################
|
||||||
|
# Valid option is gnocchi
|
||||||
|
#cloudkitty_collector_backend: "gnocchi"
|
||||||
|
# Valid options are 'sqlalchemy' or 'influxdb'. The default value is
|
||||||
|
# 'influxdb', which matches the default in Cloudkitty since the Stein release.
|
||||||
|
# When the backend is "influxdb", we also enable Influxdb.
|
||||||
|
# Also, when using 'influxdb' as the backend, we trigger the configuration/use
|
||||||
|
# of Cloudkitty storage backend version 2.
|
||||||
|
#cloudkitty_storage_backend: "influxdb"
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# Designate options
|
# Designate options
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Modifies the default storage backend for Cloudkitty to InfluxDB, to match
|
||||||
|
the default in Cloudkitty from Stein onwards. This is controlled via
|
||||||
|
``cloudkitty_storage_backend``. To use the previous default, set
|
||||||
|
``cloudkitty_storage_backend`` to ``sqlalchemy``. See `bug 1838641
|
||||||
|
<https://bugs.launchpad.net/kolla-ansible/+bug/1838641>`__ for details.
|
Loading…
x
Reference in New Issue
Block a user