Use mariabackup for database backups
Kolla ansible switched its database backup support to mariabackup from xtrabackup due to incompatibilities. See https://bugs.launchpad.net/kolla/+bug/1843043 for details. Change-Id: Ib95771f09fd6d5e71a2af471de47f811e1cab88b Related-Bug: #1843043 Story: 2006952 Task: 37634
This commit is contained in:
parent
9332c211f4
commit
e93bbd9ed5
@ -370,6 +370,9 @@ kolla_enable_keystone: "yes"
|
|||||||
kolla_enable_kibana: "{{ 'yes' if kolla_enable_central_logging | bool or kolla_enable_monasca | bool else 'no' }}"
|
kolla_enable_kibana: "{{ 'yes' if kolla_enable_central_logging | bool or kolla_enable_monasca | bool else 'no' }}"
|
||||||
kolla_enable_magnum: "no"
|
kolla_enable_magnum: "no"
|
||||||
kolla_enable_manila: "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_mariadb: "yes"
|
||||||
kolla_enable_monasca: "no"
|
kolla_enable_monasca: "no"
|
||||||
kolla_enable_murano: "no"
|
kolla_enable_murano: "no"
|
||||||
@ -385,7 +388,6 @@ kolla_enable_skydive: "no"
|
|||||||
kolla_enable_storm: "{{ 'yes' if kolla_enable_monasca | bool else 'no' }}"
|
kolla_enable_storm: "{{ 'yes' if kolla_enable_monasca | bool else 'no' }}"
|
||||||
kolla_enable_swift: "no"
|
kolla_enable_swift: "no"
|
||||||
kolla_enable_telegraf: "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' }}"
|
kolla_enable_zookeeper: "{{ 'yes' if kolla_enable_kafka | bool or kolla_enable_storm | bool else 'no' }}"
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -121,6 +121,7 @@
|
|||||||
- { name: keystone, file: keystone.conf }
|
- { name: keystone, file: keystone.conf }
|
||||||
- { name: magnum, file: magnum.conf }
|
- { name: magnum, file: magnum.conf }
|
||||||
- { name: manila, file: manila.conf }
|
- { name: manila, file: manila.conf }
|
||||||
|
- { name: mariabackup, file: backup.my.cnf }
|
||||||
- { name: mariadb, file: galera.cnf }
|
- { name: mariadb, file: galera.cnf }
|
||||||
- { name: murano, file: murano.conf }
|
- { name: murano, file: murano.conf }
|
||||||
- { name: neutron, file: neutron.conf }
|
- { name: neutron, file: neutron.conf }
|
||||||
@ -128,7 +129,6 @@
|
|||||||
- { name: nova, file: nova.conf }
|
- { name: nova, file: nova.conf }
|
||||||
- { name: octavia, file: octavia.conf }
|
- { name: octavia, file: octavia.conf }
|
||||||
- { name: sahara, file: sahara.conf }
|
- { name: sahara, file: sahara.conf }
|
||||||
- { name: xtrabackup, file: backup.my.cnf }
|
|
||||||
- { name: zookeeper, file: zookeeper.cfg }
|
- { name: zookeeper, file: zookeeper.cfg }
|
||||||
|
|
||||||
- name: Initialise a fact containing extra configuration
|
- name: Initialise a fact containing extra configuration
|
||||||
@ -230,6 +230,7 @@
|
|||||||
kolla_extra_keystone: "{{ kolla_extra_config.keystone | default }}"
|
kolla_extra_keystone: "{{ kolla_extra_config.keystone | default }}"
|
||||||
kolla_extra_magnum: "{{ kolla_extra_config.magnum | default }}"
|
kolla_extra_magnum: "{{ kolla_extra_config.magnum | default }}"
|
||||||
kolla_extra_manila: "{{ kolla_extra_config.manila | 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_mariadb: "{{ kolla_extra_config.mariadb | default }}"
|
||||||
kolla_extra_murano: "{{ kolla_extra_config.murano | default }}"
|
kolla_extra_murano: "{{ kolla_extra_config.murano | default }}"
|
||||||
kolla_extra_neutron: "{{ kolla_extra_config.neutron | default }}"
|
kolla_extra_neutron: "{{ kolla_extra_config.neutron | default }}"
|
||||||
@ -237,6 +238,5 @@
|
|||||||
kolla_extra_nova: "{{ kolla_extra_config.nova | default }}"
|
kolla_extra_nova: "{{ kolla_extra_config.nova | default }}"
|
||||||
kolla_extra_octavia: "{{ kolla_extra_config.octavia | default }}"
|
kolla_extra_octavia: "{{ kolla_extra_config.octavia | default }}"
|
||||||
kolla_extra_sahara: "{{ kolla_extra_config.sahara | 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_zookeeper: "{{ kolla_extra_config.zookeeper | default }}"
|
||||||
kolla_extra_config_path: "{{ kayobe_config_path }}/kolla/config"
|
kolla_extra_config_path: "{{ kayobe_config_path }}/kolla/config"
|
||||||
|
@ -337,6 +337,15 @@ kolla_enable_magnum:
|
|||||||
# Free form extra configuration to append to magnum.conf.
|
# Free form extra configuration to append to magnum.conf.
|
||||||
kolla_extra_magnum:
|
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.
|
# MariaDB configuration.
|
||||||
|
|
||||||
@ -455,15 +464,6 @@ kolla_enable_storm:
|
|||||||
# Whether to enable swift.
|
# Whether to enable swift.
|
||||||
kolla_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.
|
# Zookeeper configuration.
|
||||||
|
|
||||||
|
@ -85,6 +85,10 @@ provisioner:
|
|||||||
kolla_extra_manila: |
|
kolla_extra_manila: |
|
||||||
[extra-manila.conf]
|
[extra-manila.conf]
|
||||||
foo=bar
|
foo=bar
|
||||||
|
kolla_enable_mariabackup: true
|
||||||
|
kolla_extra_mariabackup: |
|
||||||
|
[extra-backup.my.cnf]
|
||||||
|
foo=bar
|
||||||
kolla_enable_mariadb: true
|
kolla_enable_mariadb: true
|
||||||
kolla_extra_mariadb: |
|
kolla_extra_mariadb: |
|
||||||
[extra-galera.cnf]
|
[extra-galera.cnf]
|
||||||
@ -116,10 +120,6 @@ provisioner:
|
|||||||
foo=bar
|
foo=bar
|
||||||
kolla_enable_swift: true
|
kolla_enable_swift: true
|
||||||
kolla_enable_storm: true
|
kolla_enable_storm: true
|
||||||
kolla_enable_xtrabackup: true
|
|
||||||
kolla_extra_xtrabackup: |
|
|
||||||
[extra-backup.my.cnf]
|
|
||||||
foo=bar
|
|
||||||
kolla_enable_zookeeper: true
|
kolla_enable_zookeeper: true
|
||||||
kolla_extra_zookeeper: |
|
kolla_extra_zookeeper: |
|
||||||
[extra-zookeeper.cfg]
|
[extra-zookeeper.cfg]
|
||||||
|
@ -31,13 +31,13 @@
|
|||||||
- { src: keystone.conf.j2, dest: keystone.conf, enabled: "{{ kolla_enable_keystone }}" }
|
- { src: keystone.conf.j2, dest: keystone.conf, enabled: "{{ kolla_enable_keystone }}" }
|
||||||
- { src: magnum.conf.j2, dest: magnum.conf, enabled: "{{ kolla_enable_magnum }}" }
|
- { src: magnum.conf.j2, dest: magnum.conf, enabled: "{{ kolla_enable_magnum }}" }
|
||||||
- { src: manila.conf.j2, dest: manila.conf, enabled: "{{ kolla_enable_manila }}" }
|
- { 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: 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: murano.conf.j2, dest: murano.conf, enabled: "{{ kolla_enable_murano }}" }
|
||||||
- { src: neutron.conf.j2, dest: neutron.conf, enabled: "{{ kolla_enable_neutron }}" }
|
- { src: neutron.conf.j2, dest: neutron.conf, enabled: "{{ kolla_enable_neutron }}" }
|
||||||
- { src: nova.conf.j2, dest: nova.conf, enabled: "{{ kolla_enable_nova }}" }
|
- { src: nova.conf.j2, dest: nova.conf, enabled: "{{ kolla_enable_nova }}" }
|
||||||
- { src: octavia.conf.j2, dest: octavia.conf, enabled: "{{ kolla_enable_octavia }}" }
|
- { src: octavia.conf.j2, dest: octavia.conf, enabled: "{{ kolla_enable_octavia }}" }
|
||||||
- { src: sahara.conf.j2, dest: sahara.conf, enabled: "{{ kolla_enable_sahara }}" }
|
- { 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 }}" }
|
- { src: zookeeper.cfg.j2, dest: zookeeper.cfg, enabled: "{{ kolla_enable_zookeeper }}" }
|
||||||
when: item.enabled | bool
|
when: item.enabled | bool
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
{% if kolla_extra_xtrabackup %}
|
{% if kolla_extra_mariabackup %}
|
||||||
#######################
|
#######################
|
||||||
# Extra configuration
|
# Extra configuration
|
||||||
#######################
|
#######################
|
||||||
|
|
||||||
{{ kolla_extra_xtrabackup }}
|
{{ kolla_extra_mariabackup }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -198,11 +198,6 @@ kolla_openstack_custom_config:
|
|||||||
- container.ring.gz
|
- container.ring.gz
|
||||||
- object.builder
|
- object.builder
|
||||||
- object.ring.gz
|
- object.ring.gz
|
||||||
# Xtrabackup.
|
|
||||||
- src: "{{ kolla_extra_config_path }}/xtrabackup"
|
|
||||||
dest: "{{ kolla_node_custom_config_path }}/xtrabackup"
|
|
||||||
patterns: "*"
|
|
||||||
enabled: "{{ kolla_enable_xtrabackup }}"
|
|
||||||
# Zookeeper.
|
# Zookeeper.
|
||||||
- src: "{{ kolla_extra_config_path }}/zookeeper"
|
- src: "{{ kolla_extra_config_path }}/zookeeper"
|
||||||
dest: "{{ kolla_node_custom_config_path }}/zookeeper"
|
dest: "{{ kolla_node_custom_config_path }}/zookeeper"
|
||||||
|
@ -190,12 +190,12 @@ Performing Database Backups
|
|||||||
Database backups can be performed using the underlying support in Kolla
|
Database backups can be performed using the underlying support in Kolla
|
||||||
Ansible.
|
Ansible.
|
||||||
|
|
||||||
In order to enable backups, enable Xtrabackup in
|
In order to enable backups, enable Mariabackup in
|
||||||
``${KAYOBE_CONFIG_PATH}/kolla.yml``:
|
``${KAYOBE_CONFIG_PATH}/kolla.yml``:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
kolla_enable_xtrabackup: true
|
kolla_enable_mariabackup: true
|
||||||
|
|
||||||
To apply this change, use the :ref:`kayobe overcloud service reconfigure
|
To apply this change, use the :ref:`kayobe overcloud service reconfigure
|
||||||
<overcloud-administration-reconfigure>` command.
|
<overcloud-administration-reconfigure>` command.
|
||||||
|
@ -362,7 +362,7 @@ which files are supported.
|
|||||||
=============================== =======================================================
|
=============================== =======================================================
|
||||||
File Purpose
|
File Purpose
|
||||||
=============================== =======================================================
|
=============================== =======================================================
|
||||||
``backup.my.cnf`` Xtrabackup configuration.
|
``backup.my.cnf`` Mariabackup configuration.
|
||||||
``barbican/*`` Extended Barbican configuration.
|
``barbican/*`` Extended Barbican configuration.
|
||||||
``blazar.conf`` Blazar configuration.
|
``blazar.conf`` Blazar configuration.
|
||||||
``blazar/*`` Extended Blazar configuration.
|
``blazar/*`` Extended Blazar configuration.
|
||||||
|
@ -217,6 +217,7 @@
|
|||||||
#kolla_enable_manila_backend_hnas:
|
#kolla_enable_manila_backend_hnas:
|
||||||
#kolla_enable_manila_backend_cephfs_native:
|
#kolla_enable_manila_backend_cephfs_native:
|
||||||
#kolla_enable_manila_backend_cephfs_nfs:
|
#kolla_enable_manila_backend_cephfs_nfs:
|
||||||
|
#kolla_enable_mariabackup:
|
||||||
#kolla_enable_mistral:
|
#kolla_enable_mistral:
|
||||||
#kolla_enable_monasca:
|
#kolla_enable_monasca:
|
||||||
#kolla_enable_mongodb:
|
#kolla_enable_mongodb:
|
||||||
|
9
releasenotes/notes/mariabackup-9370d55279c1aa78.yaml
Normal file
9
releasenotes/notes/mariabackup-9370d55279c1aa78.yaml
Normal 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``.
|
Loading…
Reference in New Issue
Block a user