diff --git a/group_vars/galera_all.yml b/group_vars/galera_all.yml index 8c949d9746..73c15b7bb5 100644 --- a/group_vars/galera_all.yml +++ b/group_vars/galera_all.yml @@ -22,3 +22,7 @@ galera_server_package_state: "{{ package_state }}" galera_container_bind_mounts: - bind_dir_path: "/var/lib/mysql" mount_path: "/openstack/{{ inventory_hostname }}" + +# Disable PrivateDevices for MariaDB on CentOS 7 +# See https://bugs.launchpad.net/openstack-ansible/+bug/1697531 for details. +galera_disable_privatedevices: "{{ ((properties.is_metal | default(false)) | bool) | ternary('false', 'true') }}" diff --git a/releasenotes/notes/centos-galera-privatedevices-4958f0be6cffa466.yaml b/releasenotes/notes/centos-galera-privatedevices-4958f0be6cffa466.yaml new file mode 100644 index 0000000000..0adf1bfff1 --- /dev/null +++ b/releasenotes/notes/centos-galera-privatedevices-4958f0be6cffa466.yaml @@ -0,0 +1,14 @@ +--- +issues: + - | + OpenStack-Ansible sets a new variable, `galera_disable_privatedevices`, + that controls whether the `PrivateDevices` configuration in MariaDB's + systemd unit file is enabled. + + If the `galera_server` role is deployed on a bare metal host, the MariaDB + default is maintained (`PrivateDevices=true`). If the `galera_server` role + is deployed within a container, the `PrivateDevices` configuration is set + to `true` to work around a systemd bug with a bind mounted `/dev/ptmx`. + + See `Launchpad Bug 1697531 `_ + for more details.