Skip to content

Commit 53915ab

Browse files
authored
Merge pull request #871 from stackhpc/upstream/2025.1-2026-05-11
Synchronise 2025.1 with upstream
2 parents d746d7c + b61077e commit 53915ab

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

ansible/roles/nova-cell/tasks/config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,3 +203,23 @@
203203
with_items:
204204
- nova-compute
205205
- nova-compute-ironic
206+
207+
- name: Copying over multipath.conf
208+
become: true
209+
vars:
210+
service: "{{ nova_cell_services['nova-compute'] }}"
211+
ansible.builtin.template:
212+
src: "{{ item }}"
213+
dest: "{{ node_config_directory }}/nova-compute/multipath.conf"
214+
mode: "0660"
215+
with_first_found:
216+
- files:
217+
- "{{ node_custom_config }}/nova/{{ inventory_hostname }}/multipath.conf"
218+
- "{{ node_custom_config }}/multipath/{{ inventory_hostname }}/multipath.conf"
219+
- "{{ node_custom_config }}/nova/multipath.conf"
220+
- "{{ node_custom_config }}/multipath.conf"
221+
- "multipath.conf.j2"
222+
skip: true
223+
when:
224+
- service | service_enabled_and_mapped_to_host
225+
- enable_multipathd | bool
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
defaults {
2+
user_friendly_names no
3+
find_multipaths yes
4+
skip_kpartx yes
5+
}
6+
7+
blacklist {
8+
}

ansible/roles/nova-cell/templates/nova-compute.json.j2

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@
8585
"dest": "/var/lib/kolla/share/ca-certificates",
8686
"owner": "root",
8787
"perm": "0600"
88+
}{% endif %}{% if enable_multipathd | bool %},
89+
{
90+
"source": "{{ container_config_directory }}/multipath.conf",
91+
"dest": "/etc/multipath.conf",
92+
"owner": "root",
93+
"perm": "0644"
8894
}{% endif %}
8995
],
9096
"permissions": [

0 commit comments

Comments
 (0)