diff --git a/tests/framework/installer/ceph_installer.go b/tests/framework/installer/ceph_installer.go index 206b880fa..9119a3310 100644 --- a/tests/framework/installer/ceph_installer.go +++ b/tests/framework/installer/ceph_installer.go @@ -365,6 +365,9 @@ func (h *CephInstaller) UninstallRookFromMultipleNS(systemNamespace string, name h.checkCephHealthStatus(namespace) } + // Gather logs after status checks + h.GatherAllRookLogs(namespace, SystemNamespace(namespace), h.T().Name()) + roles := h.Manifests.GetClusterRoles(namespace, systemNamespace) _, err = h.k8shelper.KubectlWithStdin(roles, deleteFromStdinArgs...) diff --git a/tests/integration/base_deploy_test.go b/tests/integration/base_deploy_test.go index 17f516111..5cb801c0f 100644 --- a/tests/integration/base_deploy_test.go +++ b/tests/integration/base_deploy_test.go @@ -140,6 +140,5 @@ func (op *TestCluster) SetInstallData(version string) {} // TearDownRook is a wrapper for tearDown after Suite func (op *TestCluster) Teardown() { - op.installer.GatherAllRookLogs(op.namespace, installer.SystemNamespace(op.namespace), op.installer.T().Name()) op.installer.UninstallRook(op.namespace) }