Actions
Bug #38500
closed[librbd] race condition possible when validating RBD pool
Status:
Resolved
Priority:
Normal
Assignee:
Jason Dillaman
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
luminous,mimic
Regression:
No
Severity:
3 - minor
Reviewed:
Description
The create image state machine attempts to validate the pool for snapshot and overwrite support. However, if multiple images are being created concurrently, this can result in a race condition where the contents of the "rbd_info" object keeps switching between "validate" and "overwrite validated". The pool should be validated at initialization time to help avoid this issue and the initial write should be guarded to ensure the object doesn't exist.
Actions