Added a sleep for the podGC to catch up.
The functionality used to exist entirely in the NC which would previously clean up pods and nodes together. Now, we simply wait for the PodGC to see that the node is now deleted and clean up the pods. This may take a while and hence we set a 1 minute timeout.
This commit is contained in:
@@ -307,8 +307,9 @@ var _ = framework.KubeDescribe("Nodes [Disruptive]", func() {
|
||||
err = framework.WaitForClusterSize(c, int(replicas-1), 10*time.Minute)
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
||||
By("waiting for podGC to remove/recreate any pods scheduled on the now non-existent node")
|
||||
framework.WaitForPodAddition(c, ns, 2*time.Minute)
|
||||
By("waiting 1 minute for the watch in the podGC to catch up, remove any pods scheduled on " +
|
||||
"the now non-existent node and the RC to recreate it")
|
||||
time.Sleep(time.Minute)
|
||||
|
||||
By("verifying whether the pods from the removed node are recreated")
|
||||
err = framework.VerifyPods(c, ns, name, true, replicas)
|
||||
|
Reference in New Issue
Block a user