Bug #15683
closedRBD image features settings are not copied onto the clone.
0%
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.
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
Updated by Ilya Dryomov almost 8 years ago
- Status changed from New to Closed
Not a kernel client issue, duplicates #15388.