Start iscsid on cinder-volume hosts using LVM backend

This is needed to create the iscsi initiator ID which may
not be present by default.

Change-Id: I7a1931c51595e2f6ee1c5794230737d68740c049
This commit is contained in:
Jonathan Rosser 2024-06-12 15:55:13 +01:00
parent 0ce2bc01fd
commit 79f14e4aa4

View File

@ -157,6 +157,17 @@
- "cinder_target_helper == 'lioadm'"
- cinder_backend_lvm_inuse | bool
# NOTE(jrosser) it is necessarry to start the iscsid service to
# generate an initiator uuid if one is not already present
- name: Ensure iscsid service is started
service:
name: "iscsid"
state: started
enabled: true
when:
- "cinder_services['cinder-volume']['group'] in group_names"
- cinder_backend_lvm_inuse | bool
- name: Create nfs shares export file
template:
src: nfs_shares.j2