Log stacktrace when workspace start failure (#18014)
parent
8a10b84875
commit
872cbc71e1
|
|
@ -253,9 +253,7 @@ public class KubernetesInternalRuntime<E extends KubernetesEnvironment>
|
|||
|
||||
startSynchronizer.completeExceptionally(startFailureCause);
|
||||
LOG.warn(
|
||||
"Failed to start Kubernetes runtime of workspace {}. Cause: {}",
|
||||
workspaceId,
|
||||
startFailureCause.getMessage());
|
||||
"Failed to start Kubernetes runtime of workspace {}.", workspaceId, startFailureCause);
|
||||
boolean interrupted =
|
||||
Thread.interrupted() || startFailureCause instanceof RuntimeStartInterruptedException;
|
||||
// Cancels workspace servers probes if any
|
||||
|
|
@ -266,9 +264,9 @@ public class KubernetesInternalRuntime<E extends KubernetesEnvironment>
|
|||
runtimeCleaner.cleanUp(namespace, workspaceId);
|
||||
} catch (InfrastructureException cleanUppingEx) {
|
||||
LOG.warn(
|
||||
"Failed to clean up namespace after workspace '{}' start failing. Cause: {}",
|
||||
"Failed to clean up namespace after workspace '{}' start failing.",
|
||||
context.getIdentity().getWorkspaceId(),
|
||||
cleanUppingEx.getMessage());
|
||||
cleanUppingEx);
|
||||
}
|
||||
|
||||
if (interrupted) {
|
||||
|
|
@ -492,14 +490,12 @@ public class KubernetesInternalRuntime<E extends KubernetesEnvironment>
|
|||
getContext().getIdentity(), machineName, MachineStatus.FAILED);
|
||||
} catch (InfrastructureException e) {
|
||||
LOG.error(
|
||||
"Unable to update status of the machine '{}:{}'. Cause: {}",
|
||||
"Unable to update status of the machine '{}:{}'.",
|
||||
getContext().getIdentity().getWorkspaceId(),
|
||||
machineName,
|
||||
e.getMessage());
|
||||
e);
|
||||
}
|
||||
eventPublisher.sendFailedEvent(machineName, ex.getMessage(), getContext().getIdentity());
|
||||
} else {
|
||||
String message = ex.getMessage() + " (happened elsewhere)";
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
|
@ -540,10 +536,10 @@ public class KubernetesInternalRuntime<E extends KubernetesEnvironment>
|
|||
getContext().getIdentity(), machineName, MachineStatus.RUNNING);
|
||||
} catch (InfrastructureException e) {
|
||||
LOG.error(
|
||||
"Unable to update status of the machine '{}:{}'. Cause: {}",
|
||||
"Unable to update status of the machine '{}:{}'.",
|
||||
getContext().getIdentity().getWorkspaceId(),
|
||||
machineName,
|
||||
e.getMessage());
|
||||
e);
|
||||
}
|
||||
eventPublisher.sendRunningEvent(machineName, getContext().getIdentity());
|
||||
};
|
||||
|
|
@ -1069,11 +1065,11 @@ public class KubernetesInternalRuntime<E extends KubernetesEnvironment>
|
|||
eventPublisher.sendServerRunningEvent(machineName, serverRef, url, identity);
|
||||
} catch (InfrastructureException e) {
|
||||
LOG.error(
|
||||
"Unable to update status of the server '{}:{}:{}'. Cause: {}",
|
||||
"Unable to update status of the server '{}:{}:{}'.",
|
||||
identity.getWorkspaceId(),
|
||||
machineName,
|
||||
serverRef,
|
||||
e.getMessage());
|
||||
e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1106,11 +1102,11 @@ public class KubernetesInternalRuntime<E extends KubernetesEnvironment>
|
|||
}
|
||||
} catch (InfrastructureException e) {
|
||||
LOG.error(
|
||||
"Unable to update status of the server '{}:{}:{}'. Cause: {}",
|
||||
"Unable to update status of the server '{}:{}:{}'.",
|
||||
identity.getWorkspaceId(),
|
||||
machineName,
|
||||
serverName,
|
||||
e.getMessage());
|
||||
e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue