Skip to content

Commit

Permalink
e2e: adding io-timeout for lower kernel versions
Browse files Browse the repository at this point in the history
This got removed unintentionally with
ceph#2628

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
  • Loading branch information
Prasanna Kumar Kalever committed Nov 14, 2021
1 parent c97b643 commit 830ded5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/rbd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 830ded5

Please sign in to comment.