mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
e2e: wait for upgraded pods to be running during upgrade-tests
This commit calls `waitForDaemonSets` and `waitForDeploymentComplete` after upgrading to wait for csi driver pods to be in running state for both rbd and cephfs upgrade tests. Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
parent
6984da5096
commit
81809500be
@ -234,6 +234,16 @@ var _ = Describe("CephFS Upgrade Testing", func() {
|
|||||||
}
|
}
|
||||||
deployCephfsPlugin()
|
deployCephfsPlugin()
|
||||||
|
|
||||||
|
err = waitForDeploymentComplete(cephfsDeploymentName, cephCSINamespace, f.ClientSet, deployTimeout)
|
||||||
|
if err != nil {
|
||||||
|
e2elog.Failf("timeout waiting for upgraded deployment %s with error %v", cephfsDeploymentName, err)
|
||||||
|
}
|
||||||
|
|
||||||
|
err = waitForDaemonSets(cephfsDeamonSetName, cephCSINamespace, f.ClientSet, deployTimeout)
|
||||||
|
if err != nil {
|
||||||
|
e2elog.Failf("timeout waiting for upgraded daemonset %s with error %v", cephfsDeamonSetName, err)
|
||||||
|
}
|
||||||
|
|
||||||
app.Labels = label
|
app.Labels = label
|
||||||
// validate if the app gets bound to a pvc created by
|
// validate if the app gets bound to a pvc created by
|
||||||
// an earlier release.
|
// an earlier release.
|
||||||
|
@ -251,6 +251,17 @@ var _ = Describe("RBD Upgrade Testing", func() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deployRBDPlugin()
|
deployRBDPlugin()
|
||||||
|
|
||||||
|
err = waitForDeploymentComplete(rbdDeploymentName, cephCSINamespace, f.ClientSet, deployTimeout)
|
||||||
|
if err != nil {
|
||||||
|
e2elog.Failf("timeout waiting for upgraded deployment %s with error %v", rbdDeploymentName, err)
|
||||||
|
}
|
||||||
|
|
||||||
|
err = waitForDaemonSets(rbdDaemonsetName, cephCSINamespace, f.ClientSet, deployTimeout)
|
||||||
|
if err != nil {
|
||||||
|
e2elog.Failf("timeout waiting for upgraded daemonset %s with error %v", rbdDaemonsetName, err)
|
||||||
|
}
|
||||||
|
|
||||||
// validate if the app gets bound to a pvc created by
|
// validate if the app gets bound to a pvc created by
|
||||||
// an earlier release.
|
// an earlier release.
|
||||||
app.Labels = label
|
app.Labels = label
|
||||||
|
Loading…
Reference in New Issue
Block a user