From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3CFD28313F for ; Mon, 22 Sep 2025 09:36:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758533819; cv=none; b=b6e8q4jCDGj/xBrxSkUCwzMH8WJdCiHR+pe3IPay8x/Pnd9BANO+dCriBZ1XUL9MfNKOFxblGfow8Ku01iH3Inq4JSpSdz4SgeOZazF8vOk0Ew3VEpBwwEnYwIvhREJXyN28i+m4bdFxd8FXZnc33nwOqkiALZJviH7O3gsEvP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758533819; c=relaxed/simple; bh=3rMLU+MJlrWo+YZhlmMc4zx3TSUzpLRFIUbfafiu1Qg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Zv/ygGt2Y4tRrkT0z6AdwHJem+vsZjY2GIxeUnXEweJLvbvmevNE/IbNXpm3o+UAO/c6k5LNP4ROKbGnMXFkH6+jWVQpstgwgUTdCLjX4Zf2oWwSD0BTVlyNxwqvDAN2l3wyCG5kTbA/b3NVX/nok3hIs9M4lkSOri4nMo9XIcM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=DUozKPYw; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="DUozKPYw" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=ZlgX4aMKwM/nPiRvQu/puAx3Ppuy58uj/gacVU6akmM=; b=DUozKPYw3DFjZFV99Gc6vG4OlN Zdyxer1jJ7VlaN4oftKYGk0qZnWthT9/Mwy2P6+4IFSBLKNztpmZHnjHX/XG1FgRC73ksGRsEjDnZ g58vkL06/3ba1nMDPRBqNheBAJNENyCDEoQdKgF1wB6zr3Flj3w/KBzBVse46VfTdnzA7QjYi61jU 1MEqYm+y8fxUgXlwQ2H8vEumTkoO/FlKM31kjHBPDm0zj2mLuXyTGdkwqQ3SBn6jlL6CTuRgUhDJZ vZougROlZXA/l13qq0SsStVAasYTsJnL12jqZDK4Jo7qeZpmBjrheApKCGRJzkCAdPFVBqQo8VLhX ckXJ0wGw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1v0cyf-00000009uDw-39J9; Mon, 22 Sep 2025 09:36:57 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Luis Chamberlain Subject: [PATCH 04/13] fstests: fix pNFS block layout iSCSI setup Date: Mon, 22 Sep 2025 02:36:46 -0700 Message-ID: <20250922093656.2361016-5-mcgrof@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250922093656.2361016-1-mcgrof@kernel.org> References: <20250922093656.2361016-1-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain 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 --- 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