From c5623580c4110e4bfaa2ae57992d25adfea63afe Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 27 Jun 2023 10:52:16 +0200 Subject: [PATCH] restart toolstack in test_linstor_missing --- tests/storage/linstor/test_linstor_sr.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/storage/linstor/test_linstor_sr.py b/tests/storage/linstor/test_linstor_sr.py index 10c337a59..854148ad4 100644 --- a/tests/storage/linstor/test_linstor_sr.py +++ b/tests/storage/linstor/test_linstor_sr.py @@ -106,6 +106,12 @@ def test_linstor_missing(self, linstor_sr, host): assert not sr.all_pbds_attached() host.yum_install(packages) linstor_installed = True + + # Needed because the linstor driver is not in the xapi + # sm-plugins list because xcp-ng-linstor RPM has been + # removed by the `yum remove ...` call. + host.restart_toolstack(verify=True) + sr.plug_pbds(verify=True) sr.scan() finally: