Project

General

Profile

Actions

Bug #15683

closed

RBD image features settings are not copied onto the clone.

Added by Rohith Radhakrishnan almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

Steps to reproduce:-

1) Create rbd image
2) Disable some features like layering, exclusive-lock, object-map etc.
3) Create a snapshot and clone the image.
4) Check the properties of the cloned image.

Result:- All the disabled features are enabled and shown on the cloned image.

Also attaching output logs separately.

Actions #1

Updated by Rohith Radhakrishnan almost 8 years ago

Attaching the output from all commands:-

root@host1:~$ ceph osd pool create pool4 1024
pool 'pool4' created

root@host1:~$ sudo rbd create rbd4 -p pool4 --size 40960
root@host1:~$ sudo rbd info rbd4 -p pool4
rbd image 'rbd4':
size 40960 MB in 10240 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.4a0a6b8b4567
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:

root@host1: sudo rbd feature disable rbd4 -p pool4 exclusive-lock,object-map,deep-flatten,fast-diff

root@host1:~$ sudo rbd info rbd4 -p pool4
rbd image 'rbd4':
size 40960 MB in 10240 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.4a0a6b8b4567
format: 2
features: layering
flags:

root@host1:~$ rbd snap create -p pool4 rbd4@test_snap_1
root@host1:~$ rbd snap protect -p pool4 rbd4@test_snap_1
root@host1:~$ rbd clone -p pool4 rbd4@test_snap_1 --dest-pool pool4 --dest test_clone_1

root@host1:~$ sudo rbd info test_clone_1 -p pool4
rbd image 'test_clone_1':
size 40960 MB in 10240 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.4ada6b8b4567
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:
parent: pool4/rbd4@test_snap_1
overlap: 40960 MB

Actions #2

Updated by Jason Dillaman almost 8 years ago

See ticket #15388

Actions #3

Updated by Rohith Radhakrishnan almost 8 years ago

tnx

Actions #4

Updated by Ilya Dryomov almost 8 years ago

  • Status changed from New to Closed

Not a kernel client issue, duplicates #15388.

Actions

Also available in: Atom PDF