e2e: adding io-timeout for lower kernel versions

This got removed unintentionally with
https://github.com/ceph/ceph-csi/pull/2628

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
Prasanna Kumar Kalever 2021-11-12 18:33:20 +05:30 committed by mergify[bot]
parent c97b6432e3
commit cee6da5313

View File

@ -268,6 +268,10 @@ var _ = Describe("RBD", func() {
if err != nil {
e2elog.Failf("failed to get the kernel version with error %v", err)
}
// default io-timeout=0, needs kernel >= 5.4
if !util.CheckKernelSupport(kernelRelease, nbdZeroIOtimeoutSupport) {
nbdMapOptions = "debug-rbd=20,io-timeout=330"
}
})
AfterEach(func() {