mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
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:
parent
29ddfb501b
commit
2df55a55a3
@ -3747,8 +3747,9 @@ var _ = Describe("RBD", func() {
|
|||||||
e2elog.Failf("failed to delete storageclass: %v", err)
|
e2elog.Failf("failed to delete storageclass: %v", err)
|
||||||
}
|
}
|
||||||
err = createRBDStorageClass(f.ClientSet, f, defaultSCName, nil, map[string]string{
|
err = createRBDStorageClass(f.ClientSet, f, defaultSCName, nil, map[string]string{
|
||||||
"mapOptions": "lock_on_read,queue_depth=1024",
|
"imageFeatures": "exclusive-lock",
|
||||||
"unmapOptions": "force",
|
"mapOptions": "lock_on_read,queue_depth=1024",
|
||||||
|
"unmapOptions": "force",
|
||||||
}, deletePolicy)
|
}, deletePolicy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
e2elog.Failf("failed to create storageclass: %v", err)
|
e2elog.Failf("failed to create storageclass: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user