Skip to content

kdevops: small NIXOS and gen_hosts fixes

Daniel Gomez kdevops 1 version In review

Get series with b4
b4 am [email protected] change-id 20260422-kdevops-series-a-fixes-e26bd7d77c76

Versions newest first

  1. v1 Latest8 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8nixos: remove duplicate nixos_channel extra-var from Makefilescripts/nixos.Makefile+0 -10 replies
2/8nixos: do not emit comment-only recipe lines under $(Q)scripts/nixos.Makefile+3 -20 replies
3/8nixos: drop hardcoded qxl video model from libvirt XMLplaybooks/templates/nixos/vm-libvirt.xml.j2+0 -50 replies
4/8nixos: destroy the libvirt domain before cleaning up local artefactsplaybooks/nixos.yml+14 -00 replies
5/8gen_hosts: scope the python interpreter per inventory groupkconfigs/Kconfig.ansible_provisioning playbooks/roles/gen_hosts/templates/blktests.j2 playbooks/roles/gen_hosts/templates/cxl.j2 +28 more+207 -1740 replies
6/8gen_hosts: make the linux workflow node name follow bootlinux_builderplaybooks/roles/gen_hosts/templates/workflows/linux.j2+14 -30 replies
7/8defconfigs/nixos: name NIXOS hosts with the "nixos" prefixdefconfigs/nixos+1 -00 replies
8/8gen_hosts: drop sudo become on inventory owner refreshplaybooks/roles/gen_hosts/tasks/main.yml+0 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] kdevops: small NIXOS and gen_hosts fixes

Small cleanups picked up while building the new bringup backend that depends on this series. Each patch is independent and stands on its
own: duplicated Makefile vars, ineffective silent recipe guards, libvirt XML and cleanup path drift on the NIXOS role, and gen_hosts rough edges around inventory group scoping and inventory owner refresh.

Preparatory series for the upstreaming of nixos-qemu [1] and qemu-system-units [2] as git subtrees. The two projects provide an alternative to kdevops libvirtd, libguestfs, and virsh stack for local VM bringup, one that sidesteps the sudo and privilege escalation the Ansible host-setup playbooks currently need on the control node to drive that stack. libvirt bringup stays the default and is untouched; the alternative is opt-in via Kconfig. qemu-system-units renders the QEMU command line from templates into a systemd user service, so VMs run in the user session with no root daemon and no new wrapper on top of QEMU. nixos-qemu builds image-based and imageless guests declaratively through a NixOS flake, with no libguestfs in the loop.

---
Daniel Gomez (8):
nixos: remove duplicate nixos_channel extra-var from Makefile
nixos: do not emit comment-only recipe lines under $(Q)
nixos: drop hardcoded qxl video model from libvirt XML
nixos: destroy the libvirt domain before cleaning up local artefacts
gen_hosts: scope the python interpreter per inventory group
gen_hosts: make the linux workflow node name follow bootlinux_builder defconfigs/nixos: name NIXOS hosts with the "nixos" prefix
gen_hosts: drop sudo become on inventory owner refresh

 defconfigs/nixos                                   |  1 +
 kconfigs/Kconfig.ansible_provisioning              | 33 ++++++++++++++++
 playbooks/nixos.yml                                | 14 +++++++
 playbooks/roles/gen_hosts/tasks/main.yml           |  3 --
 playbooks/roles/gen_hosts/templates/blktests.j2    |  6 +--
 playbooks/roles/gen_hosts/templates/cxl.j2         |  6 +--
 playbooks/roles/gen_hosts/templates/fio-tests.j2   |  8 ++--
 playbooks/roles/gen_hosts/templates/fstests.j2     | 16 ++++----
 playbooks/roles/gen_hosts/templates/gitr.j2        | 10 ++---
 playbooks/roles/gen_hosts/templates/ltp.j2         |  6 +--
 playbooks/roles/gen_hosts/templates/mmtests.j2     |  8 ++--
 playbooks/roles/gen_hosts/templates/nfstest.j2     | 10 ++---
 playbooks/roles/gen_hosts/templates/pynfs.j2       | 10 ++---
 playbooks/roles/gen_hosts/templates/selftests.j2   |  6 +--
 playbooks/roles/gen_hosts/templates/sysbench.j2    |  6 +--
 .../roles/gen_hosts/templates/workflows/ai.j2      | 14 +++----
 .../gen_hosts/templates/workflows/blktests.j2      | 10 ++---
 .../gen_hosts/templates/workflows/build-linux.j2   | 30 +++++++--------
 .../templates/workflows/declared-hosts.j2          | 44 +++++++++++-----------
 .../gen_hosts/templates/workflows/fio-tests.j2     | 16 ++++----
 .../roles/gen_hosts/templates/workflows/fstests.j2 | 12 +++---
 .../roles/gen_hosts/templates/workflows/generic.j2 |  2 +-
 .../roles/gen_hosts/templates/workflows/gitr.j2    | 12 +++---
 .../roles/gen_hosts/templates/workflows/linux.j2   | 23 ++++++++---
 .../roles/gen_hosts/templates/workflows/ltp.j2     |  8 ++--
 .../roles/gen_hosts/templates/workflows/minio.j2   | 26 ++++++-------
 .../roles/gen_hosts/templates/workflows/mix.j2     | 10 ++---
 .../roles/gen_hosts/templates/workflows/mmtests.j2 |  8 ++--
 .../roles/gen_hosts/templates/workflows/nfstest.j2 | 12 +++---
 .../roles/gen_hosts/templates/workflows/pynfs.j2   | 10 ++---
 .../gen_hosts/templates/workflows/reboot-limit.j2  |  6 +--
 .../gen_hosts/templates/workflows/selftests.j2     |  8 ++--
 .../gen_hosts/templates/workflows/sysbench.j2      |  8 ++--
 .../roles/gen_hosts/templates/workflows/vllm.j2    | 14 +++----
 playbooks/templates/nixos/vm-libvirt.xml.j2        |  5 ---
 scripts/nixos.Makefile                             |  6 +--
 36 files changed, 239 insertions(+), 188 deletions(-)

---
base-commit: 1a61f43dc2bc2e019fc4a35d9673cfa31909272d
change-id: 20260422-kdevops-series-a-fixes-e26bd7d77c76

Best regards,

Signature · 1 line
Daniel Gomez <[email protected]>