[PATCH 04/13] fstests: fix pNFS block layout iSCSI setup
Luis Chamberlain <[email protected]>
| Newsgroups | dev.linux.lists.kdevops |
|---|---|
| Message-ID | <[email protected]> |
For pNFS block layout testing, the NFS server needs to provide block storage via iSCSI. Fix the setup by: 1. Setting up the iSCSI target service on the NFS server itself 2. Overriding iscsi_target_hostname to point to the NFS server when setting up iSCSI initiators on test nodes This allows pNFS block layout testing without requiring a separate dedicated iSCSI target host. Generated-by: Claude AI Signed-off-by: Luis Chamberlain <[email protected]> --- playbooks/roles/fstests/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/playbooks/roles/fstests/tasks/main.yml b/playbooks/roles/fstests/tasks/main.yml index 8f44c109..357e33c4 100644 --- a/playbooks/roles/fstests/tasks/main.yml +++ b/playbooks/roles/fstests/tasks/main.yml @@ -27,10 +27,20 @@ tags: ["oscheck", "git", "fstests"] when: "fstests_xfs_build_custom_xfsprogs|bool" +- name: Set up iSCSI target on NFS server for pNFS block layout + ansible.builtin.include_role: + name: iscsi + delegate_to: "{{ fstests_nfs_server_host }}" + when: + - fstests_nfs_section_pnfs|bool + - fstests_nfs_use_kdevops_nfsd|bool + - name: Set up an iSCSI initiator on target nodes ansible.builtin.include_role: name: iscsi tasks_from: add_initiator + vars: + iscsi_target_hostname: "{{ fstests_nfs_server_host }}" when: - fstests_nfs_section_pnfs|bool -- 2.51.0