Merge "Use mariabackup for database backups"

This commit is contained in:
Zuul 2019-12-12 13:07:45 +00:00 committed by Gerrit Code Review
commit 30e9c3af8a
11 changed files with 34 additions and 27 deletions

View File

@ -373,6 +373,9 @@ kolla_enable_keystone: "yes"
kolla_enable_kibana: "{{ 'yes' if kolla_enable_central_logging | bool or kolla_enable_monasca | bool else 'no' }}"
kolla_enable_magnum: "no"
kolla_enable_manila: "no"
# TODO(mgoddard): Change this to a plain "no" when support for
# kolla_enable_xtrabackup has been removed.
kolla_enable_mariabackup: "{{ kolla_enable_xtrabackup | default('no') }}"
kolla_enable_mariadb: "yes"
kolla_enable_monasca: "no"
kolla_enable_murano: "no"
@ -388,7 +391,6 @@ kolla_enable_skydive: "no"
kolla_enable_storm: "{{ 'yes' if kolla_enable_monasca | bool else 'no' }}"
kolla_enable_swift: "no"
kolla_enable_telegraf: "no"
kolla_enable_xtrabackup: "no"
kolla_enable_zookeeper: "{{ 'yes' if kolla_enable_kafka | bool or kolla_enable_storm | bool else 'no' }}"
###############################################################################

View File

@ -121,6 +121,7 @@
- { name: keystone, file: keystone.conf }
- { name: magnum, file: magnum.conf }
- { name: manila, file: manila.conf }
- { name: mariabackup, file: backup.my.cnf }
- { name: mariadb, file: galera.cnf }
- { name: murano, file: murano.conf }
- { name: neutron, file: neutron.conf }
@ -128,7 +129,6 @@
- { name: nova, file: nova.conf }
- { name: octavia, file: octavia.conf }
- { name: sahara, file: sahara.conf }
- { name: xtrabackup, file: backup.my.cnf }
- { name: zookeeper, file: zookeeper.cfg }
- name: Initialise a fact containing extra configuration
@ -230,6 +230,7 @@
kolla_extra_keystone: "{{ kolla_extra_config.keystone | default }}"
kolla_extra_magnum: "{{ kolla_extra_config.magnum | default }}"
kolla_extra_manila: "{{ kolla_extra_config.manila | default }}"
kolla_extra_mariabackup: "{{ kolla_extra_config.mariabackup | default }}"
kolla_extra_mariadb: "{{ kolla_extra_config.mariadb | default }}"
kolla_extra_murano: "{{ kolla_extra_config.murano | default }}"
kolla_extra_neutron: "{{ kolla_extra_config.neutron | default }}"
@ -237,6 +238,5 @@
kolla_extra_nova: "{{ kolla_extra_config.nova | default }}"
kolla_extra_octavia: "{{ kolla_extra_config.octavia | default }}"
kolla_extra_sahara: "{{ kolla_extra_config.sahara | default }}"
kolla_extra_xtrabackup: "{{ kolla_extra_config.xtrabackup | default }}"
kolla_extra_zookeeper: "{{ kolla_extra_config.zookeeper | default }}"
kolla_extra_config_path: "{{ kayobe_config_path }}/kolla/config"

View File

@ -337,6 +337,15 @@ kolla_enable_magnum:
# Free form extra configuration to append to magnum.conf.
kolla_extra_magnum:
###############################################################################
# Mariabackup configuration.
# Whether to enable Mariabackup.
kolla_enable_mariabackup:
# Free form extra configuration to append to backup.my.cnf.
kolla_extra_mariabackup:
###############################################################################
# MariaDB configuration.
@ -455,15 +464,6 @@ kolla_enable_storm:
# Whether to enable swift.
kolla_enable_swift:
###############################################################################
# Xtrabackup configuration.
# Whether to enable Xtrabackup.
kolla_enable_xtrabackup:
# Free form extra configuration to append to backup.my.cnf.
kolla_extra_xtrabackup:
###############################################################################
# Zookeeper configuration.

View File

@ -85,6 +85,10 @@ provisioner:
kolla_extra_manila: |
[extra-manila.conf]
foo=bar
kolla_enable_mariabackup: true
kolla_extra_mariabackup: |
[extra-backup.my.cnf]
foo=bar
kolla_enable_mariadb: true
kolla_extra_mariadb: |
[extra-galera.cnf]
@ -116,10 +120,6 @@ provisioner:
foo=bar
kolla_enable_swift: true
kolla_enable_storm: true
kolla_enable_xtrabackup: true
kolla_extra_xtrabackup: |
[extra-backup.my.cnf]
foo=bar
kolla_enable_zookeeper: true
kolla_extra_zookeeper: |
[extra-zookeeper.cfg]

View File

@ -31,13 +31,13 @@
- { src: keystone.conf.j2, dest: keystone.conf, enabled: "{{ kolla_enable_keystone }}" }
- { src: magnum.conf.j2, dest: magnum.conf, enabled: "{{ kolla_enable_magnum }}" }
- { src: manila.conf.j2, dest: manila.conf, enabled: "{{ kolla_enable_manila }}" }
- { src: backup.my.cnf.j2, dest: backup.my.cnf, enabled: "{{ kolla_enable_mariabackup }}" }
- { src: ml2_conf.ini.j2, dest: neutron/ml2_conf.ini, enabled: "{{ kolla_enable_neutron }}" }
- { src: murano.conf.j2, dest: murano.conf, enabled: "{{ kolla_enable_murano }}" }
- { src: neutron.conf.j2, dest: neutron.conf, enabled: "{{ kolla_enable_neutron }}" }
- { src: nova.conf.j2, dest: nova.conf, enabled: "{{ kolla_enable_nova }}" }
- { src: octavia.conf.j2, dest: octavia.conf, enabled: "{{ kolla_enable_octavia }}" }
- { src: sahara.conf.j2, dest: sahara.conf, enabled: "{{ kolla_enable_sahara }}" }
- { src: backup.my.cnf.j2, dest: backup.my.cnf, enabled: "{{ kolla_enable_xtrabackup }}" }
- { src: zookeeper.cfg.j2, dest: zookeeper.cfg, enabled: "{{ kolla_enable_zookeeper }}" }
when: item.enabled | bool

View File

@ -1,9 +1,9 @@
# {{ ansible_managed }}
{% if kolla_extra_xtrabackup %}
{% if kolla_extra_mariabackup %}
#######################
# Extra configuration
#######################
{{ kolla_extra_xtrabackup }}
{{ kolla_extra_mariabackup }}
{% endif %}

View File

@ -198,11 +198,6 @@ kolla_openstack_custom_config:
- container.ring.gz
- object.builder
- object.ring.gz
# Xtrabackup.
- src: "{{ kolla_extra_config_path }}/xtrabackup"
dest: "{{ kolla_node_custom_config_path }}/xtrabackup"
patterns: "*"
enabled: "{{ kolla_enable_xtrabackup }}"
# Zookeeper.
- src: "{{ kolla_extra_config_path }}/zookeeper"
dest: "{{ kolla_node_custom_config_path }}/zookeeper"

View File

@ -190,12 +190,12 @@ Performing Database Backups
Database backups can be performed using the underlying support in Kolla
Ansible.
In order to enable backups, enable Xtrabackup in
In order to enable backups, enable Mariabackup in
``${KAYOBE_CONFIG_PATH}/kolla.yml``:
.. code-block:: console
kolla_enable_xtrabackup: true
kolla_enable_mariabackup: true
To apply this change, use the :ref:`kayobe overcloud service reconfigure
<overcloud-administration-reconfigure>` command.

View File

@ -393,7 +393,7 @@ which files are supported.
=============================== =======================================================
File Purpose
=============================== =======================================================
``backup.my.cnf`` Xtrabackup configuration.
``backup.my.cnf`` Mariabackup configuration.
``barbican/*`` Extended Barbican configuration.
``blazar.conf`` Blazar configuration.
``blazar/*`` Extended Blazar configuration.

View File

@ -220,6 +220,7 @@
#kolla_enable_manila_backend_hnas:
#kolla_enable_manila_backend_cephfs_native:
#kolla_enable_manila_backend_cephfs_nfs:
#kolla_enable_mariabackup:
#kolla_enable_mistral:
#kolla_enable_monasca:
#kolla_enable_mongodb:

View File

@ -0,0 +1,9 @@
---
upgrade:
- |
The database backup support in Kolla Ansible has been modified to use
Mariabackup rather than Xtrabackup.
deprecations:
- |
The ``kolla_enable_xtrabackup`` variable is deprecated in favour of
``kolla_enable_mariabackup``.