Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cmd/openshift-install/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ var (
if err2 := logClusterOperatorConditions(ctx, config); err2 != nil {
logrus.Error("Attempted to gather ClusterOperator status after installation failure: ", err2)
}
logTroubleshootingLink()
logrus.Fatal(err)
}
timer.StopTimer(timer.TotalTimeElapsed)
Expand Down Expand Up @@ -509,3 +510,10 @@ func waitForInstallComplete(ctx context.Context, config *rest.Config, directory

return logComplete(rootOpts.dir, consoleURL)
}

func logTroubleshootingLink() {
logrus.Error("Cluster initialization failed because one or more operators are not functioning properly.")
logrus.Error("The cluster should be accessible for troublsehooting as detailed in the documentation linked below.")
logrus.Error("The 'wait-for install-complete' subcommand can then be used to continue the installation.")
logrus.Error("https://docs.openshift.com/container-platform/latest/support/troubleshooting/troubleshooting-installations.html")
}
2 changes: 1 addition & 1 deletion cmd/openshift-install/waitfor.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func newWaitForInstallCompleteCmd() *cobra.Command {
if err2 := logClusterOperatorConditions(ctx, config); err2 != nil {
logrus.Error("Attempted to gather ClusterOperator status after wait failure: ", err2)
}

logTroubleshootingLink()
logrus.Fatal(err)
}
timer.StopTimer(timer.TotalTimeElapsed)
Expand Down