mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Fix issue 64119.
This commit is contained in:
parent
481b2dc7cf
commit
56289ef3f8
@ -329,6 +329,7 @@ func TestPlugin(t *testing.T) {
|
|||||||
RBDPool: "pool1",
|
RBDPool: "pool1",
|
||||||
RBDImage: "image1",
|
RBDImage: "image1",
|
||||||
FSType: "ext4",
|
FSType: "ext4",
|
||||||
|
ReadOnly: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
@ -399,6 +399,10 @@ func (util *RBDUtil) AttachDisk(b rbdMounter) (string, error) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// ReadOnly rbd volume should not check rbd status of being used to
|
||||||
|
// support mounted as read-only by multiple consumers simultaneously.
|
||||||
|
needValidUsed = !b.rbd.ReadOnly
|
||||||
}
|
}
|
||||||
err := wait.ExponentialBackoff(backoff, func() (bool, error) {
|
err := wait.ExponentialBackoff(backoff, func() (bool, error) {
|
||||||
used, rbdOutput, err := util.rbdStatus(&b)
|
used, rbdOutput, err := util.rbdStatus(&b)
|
||||||
|
Loading…
Reference in New Issue
Block a user