Project

General

Profile

Actions

Bug #13674

closed

Avoid re-writing old-format image header on resize

Added by Jason Dillaman over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Jason Dillaman
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
infernalis,hammer,firefly
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Race conditions are possible between snapshot creation and resize operations (especially if there are issues with watch/notify preventing a header re-read). For example, if a stale snapshot sequence is written to the header, the image will no longer be able to be opened:

librbd: image snap context is invalid!(5) Input/output error

Related issues 3 (0 open3 closed)

Copied to rbd - Backport #13752: Avoid re-writing old-format image header on resizeRejectedActions
Copied to rbd - Backport #13753: Avoid re-writing old-format image header on resizeResolvedAbhishek LekshmananActions
Copied to rbd - Backport #13754: Avoid re-writing old-format image header on resizeResolvedAbhishek VarshneyActions
Actions

Also available in: Atom PDF