Commit 38bfad46 authored by Guillaume Abrioux's avatar Guillaume Abrioux
Browse files

container: conditionnally disable lvmetad

Enabling lvmetad in containerized deployments on el7 based OS might
cause issues.
This commit make it possible to disable this service if needed.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1955040

Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
parent d58500ad
......@@ -343,6 +343,7 @@ dummy:
## OSD options
#
#lvmetad_disabled: false
#is_hci: false
#hci_safety_factor: 0.2
#non_hci_safety_factor: 0.7
......
......@@ -343,6 +343,7 @@ ceph_iscsi_config_dev: false
## OSD options
#
#lvmetad_disabled: false
#is_hci: false
#hci_safety_factor: 0.2
#non_hci_safety_factor: 0.7
......
---
- name: lvmetad tasks related
when:
- inventory_hostname in groups.get(osd_group_name, [])
- lvmetad_disabled | default(False) | bool
- ansible_facts['os_family'] == 'RedHat'
- ansible_facts['distribution_major_version'] | int == 7
block:
- name: stop lvmetad
service:
name: lvm2-lvmetad
state: stopped
- name: disable and mask lvmetad service
service:
name: lvm2-lvmetad
enabled: no
masked: yes
- name: remove ceph udev rules
file:
path: "{{ item }}"
......
......@@ -335,6 +335,7 @@ cephfs_pools:
## OSD options
#
lvmetad_disabled: false
is_hci: false
hci_safety_factor: 0.2
non_hci_safety_factor: 0.7
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment