From 2df55a55a3f276ffeaac3dc36450702ce47f60f8 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 29 Jun 2022 09:37:50 +0200 Subject: [PATCH] e2e: use `exclusive-lock` together with `lock_on_read` When using `lock_on_read`, the RBD image needs to have the `exclusive-lock` feature enabled too. Fixes: #3221 Signed-off-by: Niels de Vos --- e2e/rbd.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/e2e/rbd.go b/e2e/rbd.go index cafff25b9..595131ab8 100644 --- a/e2e/rbd.go +++ b/e2e/rbd.go @@ -3747,8 +3747,9 @@ var _ = Describe("RBD", func() { e2elog.Failf("failed to delete storageclass: %v", err) } err = createRBDStorageClass(f.ClientSet, f, defaultSCName, nil, map[string]string{ - "mapOptions": "lock_on_read,queue_depth=1024", - "unmapOptions": "force", + "imageFeatures": "exclusive-lock", + "mapOptions": "lock_on_read,queue_depth=1024", + "unmapOptions": "force", }, deletePolicy) if err != nil { e2elog.Failf("failed to create storageclass: %v", err)