Download container logs when EnsureOnline fails
This commit is contained in:
parent
9fab7757b0
commit
771a952f02
|
@ -93,10 +93,26 @@ namespace DistTestCore
|
||||||
{
|
{
|
||||||
var group = new CodexNodeGroup(lifecycle, codexSetup, runningContainers, codexNodeFactory);
|
var group = new CodexNodeGroup(lifecycle, codexSetup, runningContainers, codexNodeFactory);
|
||||||
RunningGroups.Add(group);
|
RunningGroups.Add(group);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
Stopwatch.Measure(lifecycle.Log, "EnsureOnline", group.EnsureOnline, debug: true);
|
Stopwatch.Measure(lifecycle.Log, "EnsureOnline", group.EnsureOnline, debug: true);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
CodexNodesNotOnline(runningContainers);
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
|
||||||
return group;
|
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()
|
private StartupWorkflow CreateWorkflow()
|
||||||
{
|
{
|
||||||
return workflowCreator.CreateWorkflow();
|
return workflowCreator.CreateWorkflow();
|
||||||
|
|
Loading…
Reference in New Issue