Skip to content

Commit 6b9c1da

Browse files
committed
nfsd/fstests: fix pNFS block layout iSCSI configuration
For pNFS block layout testing, the NFS server must run the iSCSI target service. Fix the Ansible role execution by: 1. Remove invalid delegate_to from include_role in fstests role 2. Add iSCSI target setup to nfsd role when pNFS is enabled 3. Keep iSCSI initiator setup with correct target hostname The iSCSI target now runs on the NFS server itself, and test nodes connect to it as initiators for pNFS block layout access. Generated-by: Claude AI Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 66921cb commit 6b9c1da

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

playbooks/roles/fstests/tasks/main.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@
2727
tags: ["oscheck", "git", "fstests"]
2828
when: "fstests_xfs_build_custom_xfsprogs|bool"
2929

30-
- name: Set up iSCSI target on NFS server for pNFS block layout
31-
ansible.builtin.include_role:
32-
name: iscsi
33-
delegate_to: "{{ fstests_nfs_server_host }}"
34-
when:
35-
- fstests_nfs_section_pnfs|bool
36-
- fstests_nfs_use_kdevops_nfsd|bool
37-
3830
- name: Set up an iSCSI initiator on target nodes
3931
ansible.builtin.include_role:
4032
name: iscsi

playbooks/roles/nfsd/tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
group: root
2323
mode: "0644"
2424

25+
- name: Set up iSCSI target on NFS server for pNFS block layout
26+
ansible.builtin.include_role:
27+
name: iscsi
28+
when:
29+
- fstests_nfs_section_pnfs|default(false)|bool
30+
2531
- name: Set up an iSCSI initiator
2632
ansible.builtin.include_role:
2733
name: iscsi

0 commit comments

Comments
 (0)