From fd1349ce3150132da6f6736ba0eb55bd94eb7c6f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 18 Mar 2019 11:24:03 -0700 Subject: [PATCH] cmd/openshift-install/create: Log progressing messages Like: Working towards 4.0.0-0.alpha-2019-03-18-091023: 64% complete These seem to advance slowly, but having slowly-changing information about progress is better than having no information ;). And with this change, we will pass along more detailed progress information if/when the cluster-version operator adds it. --- cmd/openshift-install/create.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/openshift-install/create.go b/cmd/openshift-install/create.go index e3ab927fe..fce8d1810 100644 --- a/cmd/openshift-install/create.go +++ b/cmd/openshift-install/create.go @@ -352,6 +352,11 @@ func waitForInitializedCluster(ctx context.Context, config *rest.Config) error { cov1helpers.FindStatusCondition(cv.Status.Conditions, configv1.OperatorFailing).Message) return false, nil } + if cov1helpers.IsStatusConditionTrue(cv.Status.Conditions, configv1.OperatorProgressing) { + logrus.Debugf("Still waiting for the cluster to initialize: %v", + cov1helpers.FindStatusCondition(cv.Status.Conditions, configv1.OperatorProgressing).Message) + return false, nil + } } logrus.Debug("Still waiting for the cluster to initialize...") return false, nil