From ddc9b1a98b16a3a567b3d4df9c85dce6f2cda67a Mon Sep 17 00:00:00 2001 From: Tellsanguis Date: Thu, 27 Nov 2025 12:45:59 +0100 Subject: [PATCH] fix(cicd): Disable SSH host key verification for LINSTOR connections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ajoute -o StrictHostKeyChecking=no et -o UserKnownHostsFile=/dev/null - Résout l'erreur 'Host key verification failed' - Nécessaire car le container Docker n'a pas les clés d'hôtes enregistrées --- scripts/manage_linstor_resources.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/manage_linstor_resources.py b/scripts/manage_linstor_resources.py index 4d71299..855549d 100644 --- a/scripts/manage_linstor_resources.py +++ b/scripts/manage_linstor_resources.py @@ -67,8 +67,13 @@ class LinstorManager: remote_host: Si spécifié, exécute la commande via SSH sur cet hôte """ if remote_host: - # Construit la commande SSH - ssh_command = ['ssh', f'root@{remote_host}'] + command + # Construit la commande SSH avec options pour désactiver la vérification de clé d'hôte + ssh_command = [ + 'ssh', + '-o', 'StrictHostKeyChecking=no', + '-o', 'UserKnownHostsFile=/dev/null', + f'root@{remote_host}' + ] + command self.log(f"Exécution SSH sur {remote_host}: {' '.join(command)}") command = ssh_command else: