Merge "Fix nova online volume resize with multipathd"

This commit is contained in:
Zuul 2022-08-03 09:40:12 +00:00 committed by Gerrit Code Review
commit da214b74a9
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>`__