Skip to content
Merged
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
7 changes: 4 additions & 3 deletions test/e2e/upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ func clusterUpgrade(f *framework.Framework, c configv1client.Interface, dc dynam

var errMasterUpdating error
var violationStartTime *time.Time
const gracePeriod = 2 * time.Minute
const gracePeriod = 10 * time.Minute

if err := disruption.RecordJUnit(
f,
Expand Down Expand Up @@ -666,10 +666,11 @@ func clusterUpgrade(f *framework.Framework, c configv1client.Interface, dc dynam
framework.Logf("Invariant violation detected: master pool requires update but nodes not ready. Waiting up to %v for non-draining updates to complete", gracePeriod)
return false, nil
}
if time.Since(*violationStartTime) <= gracePeriod {
waitTime := time.Since(*violationStartTime)
if waitTime <= gracePeriod {
return false, nil
}
errMasterUpdating = fmt.Errorf("the %q pool should be updated before the CVO reports available at the new version", p.GetName())
errMasterUpdating = fmt.Errorf("the %q pool should be updated before the CVO reports available at the new version (nodes still not ready after %v wait time, grace period: %v)", p.GetName(), waitTime.Round(time.Second), gracePeriod)
framework.Logf("Invariant violation detected: %s", errMasterUpdating)
}
}
Expand Down