You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
o.Eventually(machineConfiguration.IsGenerationUpToDate, "2m", "10s").Should(o.BeTrue(), "MachineConfiguration observedGeneration did not catch up to generation")
150
155
logger.Infof("Skew functionality has been disabled")
151
156
}
157
+
158
+
// GetRenderedMachineConfigForMaster returns a list with all the MCs whose name starts with "render-master"
// GetAllApplicableExtensionsToMCPOrFail returns all the extensions that are supported for the given MCP, and all the packages that will install those extensions
e2e.Failf("Something went wrong. There is no suitable pool to execute the test case. There is no pool with nodes using an architecture different from %s", arch)
1549
1580
returnnil
1550
1581
}
1582
+
1583
+
// GetSortedUpdatedNodes returns a list of nodes in the order that they are being updated by the MCO
1584
+
// If maxUnavailable>0, then the function will fail if more that maxUpdatingNodes are being updated at the same time
exutil.AssertWaitPollNoErr(fmt.Errorf("Degraded machines"), fmt.Sprintf("mcp %s has degraded %d machines", mcp.name, degradedstdout))
1606
+
}
1607
+
1608
+
// Check that there aren't more thatn maxUpdatingNodes updating at the same time
1609
+
ifmaxUnavailable>0 {
1610
+
totalUpdating:=0
1611
+
for_, node:=rangepoolNodes {
1612
+
isUpdating, err:=node.IsUpdating()
1613
+
iferr!=nil {
1614
+
logger.Errorf("Error getting IsUpdating state for node %s: %v", node.GetName(), err)
1615
+
returnfalse, err
1616
+
}
1617
+
ifisUpdating {
1618
+
totalUpdating++
1619
+
}
1620
+
}
1621
+
iftotalUpdating>maxUnavailable {
1622
+
// print nodes for debug
1623
+
mcp.oc.Run("get").Args("nodes").Execute()
1624
+
exutil.AssertWaitPollNoErr(fmt.Errorf("maxUnavailable Not Honored. Pool %s, error: %d nodes were updating at the same time. Only %d nodes should be updating at the same time", mcp.GetName(), totalUpdating, maxUnavailable), "")
1625
+
}
1626
+
}
1627
+
1628
+
remainingNodes:= []*Node{}
1629
+
for_, node:=rangependingNodes {
1630
+
isUpdating, err:=node.IsUpdating()
1631
+
iferr!=nil {
1632
+
logger.Errorf("Error getting IsUpdating state for node %s: %v", node.GetName(), err)
1633
+
returnfalse, err
1634
+
}
1635
+
ifisUpdating {
1636
+
logger.Infof("Node %s is UPDATING", node.GetName())
1637
+
updatedNodes=append(updatedNodes, node)
1638
+
} else {
1639
+
remainingNodes=append(remainingNodes, node)
1640
+
}
1641
+
}
1642
+
1643
+
iflen(remainingNodes) ==0 {
1644
+
logger.Infof("All nodes have started to be updated on mcp %s", mcp.name)
0 commit comments