Project

General

Profile

Actions

Bug #64735

open

OSD/MON: rollback_to snap the latest overlap is not right

Added by dian xing 2 months ago. Updated about 1 month ago.

Status:
Fix Under Review
Priority:
Normal
Category:
Snapshots
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
quincy,reef,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

when rollback_to snap, we use the latest clone's current overlap to intersection_of older snapshot's clone overlap.
we should update the latest clone's current overlap to [0, obs.oi.size] before intersection_of other clone's overlap.

How to reproduce:

rbd create ceph-vm-pool-1/test_rollback -s 4M
fio -ioengine=rbd -bs=4M -size=4M -rw=write -pool=ceph-vm-pool-1 -rbdname=test_rollback --group_report -name=test-direct=1 -numjobs=1 -iodepth=1
rbd snap create ceph-vm-pool-1/test_rollback@base
fio -ioengine=rbd -bs=4M -size=4M -rw=write -pool=ceph-vm-pool-1 -rbdname=test_rollback --group_report -name=test-direct=1 -numjobs=1 -iodepth=1
[root@test xingd]# rbd du --exact ceph-vm-pool-1/test_rollback
NAME               PROVISIONED USED
test_rollback@base       4 MiB 4 MiB
test_rollback            4 MiB 4 MiB
<TOTAL>                  4 MiB 8 MiB
rbd snap rollback ceph-vm-pool-1/test_rollback@base
[root@test xingd]# rbd du --exact ceph-vm-pool-1/test_rollback
NAME               PROVISIONED USED
test_rollback@base       4 MiB 4 MiB
test_rollback            4 MiB 4 MiB       ### this is not correct after rollback to snap
<TOTAL>                  4 MiB 8 MiB

Related issues 2 (2 open0 closed)

Related to crimson - Bug #65697: fix _do_rollback_to clone_overlapsNew

Actions
Copied to rbd - Bug #64874: post-rollback "rbd du" output is incorrectNew

Actions
Actions

Also available in: Atom PDF