From 398e3e1238867fe3cf7f8eaf191304490e8d6289 Mon Sep 17 00:00:00 2001 From: jbtrystram Date: Mon, 5 Feb 2024 09:48:05 +0100 Subject: [PATCH] kola - testiso: targetclid.sock does not exists Simply rely on `targetcli ls` to succeed to wait for targetcli to be ready. --- mantle/cmd/kola/resources/iscsi_butane_setup.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mantle/cmd/kola/resources/iscsi_butane_setup.yaml b/mantle/cmd/kola/resources/iscsi_butane_setup.yaml index 05e9fabcef..87e27b6d9e 100644 --- a/mantle/cmd/kola/resources/iscsi_butane_setup.yaml +++ b/mantle/cmd/kola/resources/iscsi_butane_setup.yaml @@ -40,9 +40,9 @@ storage: #!/bin/bash set -xeuo pipefail podman exec targetd bash -exc " - # wait until the targetcli socket is ready + # wait until targetcli is ready to accept commands # FIXME: use RestartMode=direct instead in the systemd unit but we need systemd v254 - while ! test -S /var/run/targetclid.sock; do sleep 1; done + while ! targetcli ls; do sleep 1; done targetcli /backstores/block create name=coreos dev=/dev/disk/by-id/virtio-target targetcli iscsi/ create iqn.2023-10.coreos.target.vm:coreos targetcli iscsi/iqn.2023-10.coreos.target.vm:coreos/tpg1/luns create /backstores/block/coreos