public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
* [RFC PATCH] storage-subsystem: correct playbooks for Fedora distro
@ 2025-08-14 19:09 Viacheslav Dubeyko
  2025-08-15  0:35 ` Luis Chamberlain
  2025-08-15  8:47 ` Daniel Gomez
  0 siblings, 2 replies; 21+ messages in thread
From: Viacheslav Dubeyko @ 2025-08-14 19:09 UTC (permalink / raw)
  To: kdevops; +Cc: Slava.Dubeyko, slava

From: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>

Claude AI helped to make the first kdevops run successful
under Fedora Linux 42 (Workstation Edition). This patch
contains modifications suggested by Claude AI. It modifies
playbooks/roles/guestfs/tasks/bringup/extra-disks.yml and
playbooks/roles/guestfs/tasks/bringup/storage-pool-path.yml.

Generated-by: Claude AI
Signed-off-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
---
 playbooks/roles/guestfs/tasks/bringup/extra-disks.yml | 11 ++++++++++-
 .../roles/guestfs/tasks/bringup/storage-pool-path.yml |  1 +
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/playbooks/roles/guestfs/tasks/bringup/extra-disks.yml b/playbooks/roles/guestfs/tasks/bringup/extra-disks.yml
index 438b65e..a2a4f84 100644
--- a/playbooks/roles/guestfs/tasks/bringup/extra-disks.yml
+++ b/playbooks/roles/guestfs/tasks/bringup/extra-disks.yml
@@ -9,8 +9,17 @@
       - "{{ path }}"
       - "100G"
 
-- name: Update the permission settings of the drive image file
+- name: Update the permission settings of the drive image file (libvirt system uri)
   ansible.builtin.file:
     path: "{{ path }}"
     group: "{{ libvirt_qemu_group }}"
     mode: "g+rw,o-rw"
+  when:
+    - libvirt_uri_system|bool
+
+- name: Update the permission settings of the drive image file (libvirt session uri)
+  ansible.builtin.file:
+    path: "{{ path }}"
+    mode: "u+rw,g+r,o-rw"
+  when:
+    - not libvirt_uri_system|bool
diff --git a/playbooks/roles/guestfs/tasks/bringup/storage-pool-path.yml b/playbooks/roles/guestfs/tasks/bringup/storage-pool-path.yml
index 385b6cd..7a4bbbc 100644
--- a/playbooks/roles/guestfs/tasks/bringup/storage-pool-path.yml
+++ b/playbooks/roles/guestfs/tasks/bringup/storage-pool-path.yml
@@ -11,6 +11,7 @@
   ansible.builtin.fail:
     msg: "Ansible user is not part of the {{ libvirt_qemu_group }} group."
   when:
+    - libvirt_uri_system|bool
     - libvirt_qemu_group not in user_groups
 
 - name: Create storage pool path directory (libvirt session uri)
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2025-08-27 21:22 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-14 19:09 [RFC PATCH] storage-subsystem: correct playbooks for Fedora distro Viacheslav Dubeyko
2025-08-15  0:35 ` Luis Chamberlain
2025-08-15 13:48   ` Chuck Lever
2025-08-15  8:47 ` Daniel Gomez
2025-08-15 11:18   ` Daniel Gomez
2025-08-15 17:28   ` Viacheslav Dubeyko
2025-08-15 17:40     ` Chuck Lever
2025-08-15 18:16       ` Viacheslav Dubeyko
2025-08-15 18:29         ` Chuck Lever
2025-08-15 18:39           ` Viacheslav Dubeyko
2025-08-15 18:46             ` Chuck Lever
2025-08-22  2:18           ` Luis Chamberlain
2025-08-22  8:34             ` Daniel Gomez
2025-08-22 13:50               ` Chuck Lever
2025-08-22 23:14                 ` Luis Chamberlain
2025-08-23 12:33                   ` Daniel Gomez
2025-08-23 21:21                     ` Luis Chamberlain
2025-08-25 12:16                       ` Daniel Gomez
2025-08-27 21:21                         ` Luis Chamberlain
2025-08-24 17:00                     ` Chuck Lever
2025-08-25  7:21                       ` Luis Chamberlain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox