diff --git a/src/main/java/io/odh/test/framework/logs/LogCollector.java b/src/main/java/io/odh/test/framework/logs/LogCollector.java index 250382ab..72bf076b 100644 --- a/src/main/java/io/odh/test/framework/logs/LogCollector.java +++ b/src/main/java/io/odh/test/framework/logs/LogCollector.java @@ -57,12 +57,16 @@ private static void saveClusterState(Path logpath) throws IOException { Files.writeString(logpath.resolve("pvs.log"), cmdClient.exec(false, false, "describe", "pv").out()); Files.writeString(logpath.resolve("dsc.yml"), cmdClient.exec(false, false, "get", "dsc", "-o", "yaml").out()); Files.writeString(logpath.resolve("dsci.yml"), cmdClient.exec(false, false, "get", "dsci", "-o", "yaml").out()); + Files.writeString(logpath.resolve("subsccriptions.yml"), cmdClient.exec(false, false, "get", "subscriptions.operators.coreos.com", "--all-namespaces", "-o", "yaml").out()); kube.listPodsByPrefixInName(OdhConstants.BUNDLE_OPERATOR_NAMESPACE, "opendatahub-operator-controller-manager").forEach(pod -> { writeLogsFromPods(logpath, pod); }); kube.listPodsByPrefixInName(OdhConstants.OLM_OPERATOR_NAMESPACE, "opendatahub").forEach(pod -> { writeLogsFromPods(logpath, pod); }); + kube.listPodsByPrefixInName(OdhConstants.OLM_OPERATOR_NAMESPACE, OdhConstants.OLM_OPERATOR_NAME).forEach(pod -> { + writeLogsFromPods(logpath, pod); + }); kube.listPods(OdhConstants.CONTROLLERS_NAMESPACE).forEach(pod -> { writeLogsFromPods(logpath, pod); }); diff --git a/src/main/java/io/odh/test/utils/PodUtils.java b/src/main/java/io/odh/test/utils/PodUtils.java index a725740a..cd0a6742 100644 --- a/src/main/java/io/odh/test/utils/PodUtils.java +++ b/src/main/java/io/odh/test/utils/PodUtils.java @@ -28,7 +28,7 @@ public class PodUtils { private PodUtils() { } public static void waitForPodsReady(String namespaceName, boolean containers, Runnable onTimeout) { - TestUtils.waitFor("readiness of all Pods matching in namespace {} " + namespaceName, + TestUtils.waitFor("readiness of all Pods matching in namespace " + namespaceName, TestConstants.GLOBAL_POLL_INTERVAL_MEDIUM, READINESS_TIMEOUT, () -> { List pods = ResourceManager.getClient().listPods(namespaceName);