Implement e2e test for node out of disk condition.
This is a second attempt at this commit and it fixes the cause for its flakiness in the first attempt. The ability to SSH into individual nodes, described by api.Node, and running commands on them appears to be useful for other e2e tests too. So, move issueSSHCommand utility function to e2e util file. Also, modify waitForNodeToBe e2e util function to take any node condition. The current implementation only takes api.NodeReady condition into consideration. This change makes the function take any node condition.
This commit is contained in:
@@ -185,7 +185,7 @@ func ClusterLevelLoggingWithElasticsearch(f *Framework) {
|
||||
// Previous tests may have cause failures of some nodes. Let's skip
|
||||
// 'Not Ready' nodes, just in case (there is no need to fail the test).
|
||||
filterNodes(nodes, func(node api.Node) bool {
|
||||
return isNodeReadySetAsExpected(&node, true)
|
||||
return isNodeConditionSetAsExpected(&node, api.NodeReady, true)
|
||||
})
|
||||
if len(nodes.Items) < 2 {
|
||||
Failf("Less than two nodes were found Ready: %d", len(nodes.Items))
|
||||
|
Reference in New Issue
Block a user