Hide Forgot
Description of problem: Version-Release number of selected component (if applicable): ceph version 10.1.0-1.el7cp (61adb020219fbad4508050b5f0a792246ba74dae) How reproducible: Always Steps to Reproduce: 1. Create an RBD image 2. Crate a snap on the image and protect it. 3. Try to create a clone on the snap by specifying any feature Actual results: [root@magna009 yum.repos.d]# rbd ls -l Tejas NAME SIZE PARENT FMT PROT LOCK cln1 102400M Tejas/img1@s1 2 cln1@sc1 102400M Tejas/img1@s1 2 cln3 102400M 2 cln3@sc3 102400M Tejas/img1@s3 2 clone 10240M 2 clone@new-snap 10240M Tejas/test1@test-renamed 2 img1 102400M 2 img1@s1 102400M 2 yes img1@s2 102400M 2 img1@s3 102400M 2 yes new 10240M 2 new@new1 10240M 2 yes test 10240M 2 test@test-snap 10240M 2 test1 10240M 2 test1@test-renamed 10240M 2 yes rbd clone Tejas/new@new1 Tejas/new-clone --image-feature object-map rbd: clone error: (22) Invalid argument rbd clone Tejas/new@new1 Tejas/new-clone --image-feature deep-flatten rbd: clone error: (22) Invalid argument Expected results: Clone creation should succeed Setup: mons: magna009 magna031 magna046 osd: magna052 magna058 magna077
The "--image-feature" option specifies all features you want enabled on an image (i.e. it's not additive). In this case, cloning requires the "layering" feature. Additionally, even if you specified the "layering" feature, you cannot enable object map without "exclusive-lock".
what is the procedure to enable deep-flattening on a clone? Is there any other commands to enable deep-flattenig?
"--image-feature layering,deep-flatten" or "--image-feature layering --image-feature deep-flatten"
Jason, That is exactly what I am trying : rbd clone Tejas/new@new1 Tejas/new-clone --image-feature deep-flatten rbd: clone error: (22) Invalid argument layering is already enabled on the clone. But deep-flatteing is failing.
based on my comment above, we are still unable to proceed with deep-flatten testing. Hence I am reopening this bug. We may need some more clarity on this.
Your CLI arguments are invalid as described above. Closing again.