Project

General

Profile

Bug #38500

[librbd] race condition possible when validating RBD pool

Added by Jason Dillaman 6 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
02/27/2019
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous,mimic
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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.


Related issues

Copied to rbd - Backport #38563: mimic: [librbd] race condition possible when validating RBD pool Resolved
Copied to rbd - Backport #38564: luminous: [librbd] race condition possible when validating RBD pool Resolved

History

#1 Updated by Jason Dillaman 6 months ago

  • Status changed from In Progress to Need Review
  • Pull request ID set to 26683

#2 Updated by Mykola Golub 6 months ago

  • Status changed from Need Review to Pending Backport

#3 Updated by Nathan Cutler 6 months ago

  • Copied to Backport #38563: mimic: [librbd] race condition possible when validating RBD pool added

#4 Updated by Nathan Cutler 6 months ago

  • Copied to Backport #38564: luminous: [librbd] race condition possible when validating RBD pool added

#5 Updated by Nathan Cutler about 1 month ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF