Fix nova online volume resize with multipathd

Closes-Bug: 1982777

Change-Id: Ic752b981041b233ab55d5b9abef667b21b47857d
This commit is contained in:
Victor Chembaev 2022-07-25 21:27:07 +03:00
parent aa1ae23c5a
commit 277db5c3b7
3 changed files with 21 additions and 8 deletions

View File

@ -26,14 +26,19 @@
- Restart multipathd container
- name: Copying over multipath.conf
template:
src: "multipath.conf.j2"
dest: "{{ node_config_directory }}/{{ item.key }}/multipath.conf"
mode: "0660"
vars:
service: "{{ multipathd_services['multipathd'] }}"
become: true
template:
src: "{{ item }}"
dest: "{{ node_config_directory }}/multipathd/multipath.conf"
mode: "0660"
with_first_found:
- "{{ node_custom_config }}/multipath/{{ inventory_hostname }}/multipath.conf"
- "{{ node_custom_config }}/multipath.conf"
- "multipath.conf.j2"
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ multipathd_services }}"
- inventory_hostname in groups[service.group]
- service.enabled | bool
notify:
- Restart multipathd container

View File

@ -1,5 +1,5 @@
defaults {
user_friendly_names yes
user_friendly_names no
find_multipaths yes
}

View File

@ -0,0 +1,8 @@
---
fixes:
- |
Fixes 1982777.
Set multipathd user_friendly_names to "no"
to make os-brick able to resize volumes online.
Adds ability to override multipathd config.
`LP#1982777 <https://launchpad.net/bugs/1982777>`__