From 878a099752aa344b3b420c190a6b56be19096007 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 31 Jan 2025 19:01:27 -0600 Subject: [PATCH] r/kubelet: Ensure iscsi service is running The _iscsi.socket_ unit gets enabled by default with the _iscsi-initiator-utils_ package is installed, but it won't start automatically until the next boot. Without this service running, Longhorn volumes will not be able to attach to the node, so we need to explicitly ensure it is running before any workloads are assigned to the node. --- roles/kubelet/tasks/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/roles/kubelet/tasks/main.yml b/roles/kubelet/tasks/main.yml index 27b4ca6..cf2160e 100644 --- a/roles/kubelet/tasks/main.yml +++ b/roles/kubelet/tasks/main.yml @@ -112,3 +112,16 @@ enabled: true tags: - service + +- name: ensure iscsi socket is enabled + systemd: + name: iscsid.socket + enabled: true + tags: + - service +- name: ensure iscsi socket is active + systemd: + name: iscsid.socket + state: started + tags: + - service