public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
From: Luis Chamberlain <mcgrof@kernel.org>
To: Chuck Lever <cel@kernel.org>, Daniel Gomez <da.gomez@kruces.com>,
	kdevops@lists.linux.dev
Cc: Luis Chamberlain <mcgrof@kernel.org>
Subject: [PATCH 1/2] volume_group: add scsi disk support
Date: Mon, 21 Jul 2025 17:23:23 -0700	[thread overview]
Message-ID: <20250722002324.225989-2-mcgrof@kernel.org> (raw)
In-Reply-To: <20250722002324.225989-1-mcgrof@kernel.org>

Add support to use a scsi disk for the volume disk group.

Generated-by: Claude AI
Suggested-by: Chuck Lever <cel@kernel.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
---
 playbooks/roles/volume_group/tasks/guestfs.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/playbooks/roles/volume_group/tasks/guestfs.yml b/playbooks/roles/volume_group/tasks/guestfs.yml
index a5536159..0a285f16 100644
--- a/playbooks/roles/volume_group/tasks/guestfs.yml
+++ b/playbooks/roles/volume_group/tasks/guestfs.yml
@@ -31,6 +31,13 @@
     - libvirt_extra_storage_drive_ide is defined
     - libvirt_extra_storage_drive_ide|bool
 
+- name: Set the SCSI device search pattern
+  ansible.builtin.set_fact:
+    by_id_pattern: "scsi-0QEMU_QEMU_HARDDISK_kdevops*"
+  when:
+    - libvirt_extra_storage_drive_scsi is defined
+    - libvirt_extra_storage_drive_scsi|bool
+
 - name: Verify there are block devices to search
   ansible.builtin.fail:
     msg: No supported block devices are available for NFSD.
-- 
2.47.2


  reply	other threads:[~2025-07-22  0:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-22  0:23 [PATCH 0/2] kdevops: extra scsi disk uses Luis Chamberlain
2025-07-22  0:23 ` Luis Chamberlain [this message]
2025-07-22  0:23 ` [PATCH 2/2] fstests: use the scsi disk drive when available Luis Chamberlain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250722002324.225989-2-mcgrof@kernel.org \
    --to=mcgrof@kernel.org \
    --cc=cel@kernel.org \
    --cc=da.gomez@kruces.com \
    --cc=kdevops@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox