Merge pull request #27271 from jsafrane/integration-flake-2

Automatic merge from submit-queue

volume integration: wait for PVs before creating PVCs

The test should wait until all volumes are processed by volume controller (i.e. in the controller cache) before creating a PVC.

Without that, the "best" matching PV could not be in the cache and controller might bind the PVC to suboptiomal one.

This fixes integration test flake "Bind mismatch! Expected pvc-2 capacity 50000000000 but got pvc-2 capacity 52000000000".

Fixes #27179 (together with #26894)
pull/6/head
k8s-merge-robot 2016-06-13 09:02:59 -07:00 committed by GitHub
commit 913241c721
1 changed files with 1 additions and 0 deletions

View File

@ -296,6 +296,7 @@ func TestPersistentVolumeMultiPVs(t *testing.T) {
if err != nil {
t.Errorf("Failed to create PersistentVolume %d: %v", i, err)
}
waitForPersistentVolumePhase(testClient, pvs[i].Name, watchPV, api.VolumeAvailable)
}
t.Log("volumes created")