Skip to content

Commit

Permalink
Log full list of ns and pods when test fails (#76)
Browse files Browse the repository at this point in the history
Signed-off-by: David Kornel <[email protected]>
  • Loading branch information
kornys authored Jan 22, 2024
1 parent 761b57b commit e40181f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/odh/test/framework/logs/LogCollector.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ private static void saveClusterState(Path logpath) throws IOException {

// Collecting cluster wide resources and CRs
Files.writeString(logpath.resolve("describe-cluster-nodes.log"), cmdClient.exec(false, false, "describe", "nodes").out());
Files.writeString(logpath.resolve("namespaces.log"), cmdClient.exec(false, false, "get", "ns").out());
Files.writeString(logpath.resolve("pods.log"), cmdClient.exec(false, false, "get", "po", "--all-namespaces").out());
Files.writeString(logpath.resolve("all-events.log"), cmdClient.exec(false, false, "get", "events", "--all-namespaces").out());
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());
Expand Down

0 comments on commit e40181f

Please sign in to comment.