diff --git a/DistTestCore/CodexStarter.cs b/DistTestCore/CodexStarter.cs index 23b60b1..4c40a06 100644 --- a/DistTestCore/CodexStarter.cs +++ b/DistTestCore/CodexStarter.cs @@ -93,10 +93,26 @@ namespace DistTestCore { var group = new CodexNodeGroup(lifecycle, codexSetup, runningContainers, codexNodeFactory); RunningGroups.Add(group); - Stopwatch.Measure(lifecycle.Log, "EnsureOnline", group.EnsureOnline, debug: true); + + try + { + Stopwatch.Measure(lifecycle.Log, "EnsureOnline", group.EnsureOnline, debug: true); + } + catch + { + CodexNodesNotOnline(runningContainers); + throw; + } + return group; } + private void CodexNodesNotOnline(RunningContainers runningContainers) + { + Log("Codex nodes failed to start"); + foreach (var container in runningContainers.Containers) lifecycle.DownloadLog(container); + } + private StartupWorkflow CreateWorkflow() { return workflowCreator.CreateWorkflow();