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 <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2022-06-29 09:37:50 +02:00 committed by mergify[bot]
parent 29ddfb501b
commit 2df55a55a3

View File

@ -3747,6 +3747,7 @@ var _ = Describe("RBD", func() {
e2elog.Failf("failed to delete storageclass: %v", err)
}
err = createRBDStorageClass(f.ClientSet, f, defaultSCName, nil, map[string]string{
"imageFeatures": "exclusive-lock",
"mapOptions": "lock_on_read,queue_depth=1024",
"unmapOptions": "force",
}, deletePolicy)