Re: report librbd bug export-diff
On Sun, Dec 29, 2019 at 9:21 PM zhengyin@cmss.chinamobile.com <zhengyin@cmss.chinamobile.com> wrote:
Hello dillaman:
Problem: create a clone from a parent image, create a snapshot on the clone, when I use command "rbd export-diff <pool>/clone@snap <file> --whole-object", it can't diff parent image data. But I use this command without "--whole-object", it is ok.
steps: 1、rbd create volumes/test1 -s 1G
2、write data to volumes/test1 (offset=0, len=8388608)
3、rbd snap create volumes/test1@snap
4、rbd snap protect volumes/test1@snap
5、rbd clone volumes/test1@snap volumes/clone1
6、write data to volumes/clone1 (offset=16777216, len=4194304)
7、rbd snap create volumes/clone1@snap1
8、rbd export-diff volumes/clone1@snap1 /root/diff1 --whole-object It only diffs data [16777216L, 20971520L]
9、rbd export-diff volumes/clone1@snap1 /root/diff2 It is ok and can diffs data [0L, 8388608L], [16777216L, 20971520L]
If you confirm that this is a bug or fix it, please let me know, thank you very much.
Is this the same as this ticket [1] that was recently fixed in master and is pending backport?
________________________________ zhengyin@cmss.chinamobile.com
[1] https://tracker.ceph.com/issues/42248 -- Jason
Thanks Jason, you are right. My code didn't update in time, The bug has fixed in https://tracker.ceph.com/issues/42248, zhengyin@cmss.chinamobile.com From: Jason Dillaman Date: 2020-01-03 00:25 To: zhengyin@cmss.chinamobile.com CC: yangjun; ceph-users Subject: Re: report librbd bug export-diff On Sun, Dec 29, 2019 at 9:21 PM zhengyin@cmss.chinamobile.com <zhengyin@cmss.chinamobile.com> wrote:
Hello dillaman:
Problem: create a clone from a parent image, create a snapshot on the clone, when I use command "rbd export-diff <pool>/clone@snap <file> --whole-object", it can't diff parent image data. But I use this command without "--whole-object", it is ok.
steps: 1、rbd create volumes/test1 -s 1G
2、write data to volumes/test1 (offset=0, len=8388608)
3、rbd snap create volumes/test1@snap
4、rbd snap protect volumes/test1@snap
5、rbd clone volumes/test1@snap volumes/clone1
6、write data to volumes/clone1 (offset=16777216, len=4194304)
7、rbd snap create volumes/clone1@snap1
8、rbd export-diff volumes/clone1@snap1 /root/diff1 --whole-object It only diffs data [16777216L, 20971520L]
9、rbd export-diff volumes/clone1@snap1 /root/diff2 It is ok and can diffs data [0L, 8388608L], [16777216L, 20971520L]
If you confirm that this is a bug or fix it, please let me know, thank you very much.
Is this the same as this ticket [1] that was recently fixed in master and is pending backport?
________________________________ zhengyin@cmss.chinamobile.com
[1] https://tracker.ceph.com/issues/42248 -- Jason
Awesome, thanks for verifying! On Fri, Jan 3, 2020 at 4:54 AM zhengyin@cmss.chinamobile.com <zhengyin@cmss.chinamobile.com> wrote:
Thanks Jason, you are right. My code didn't update in time, The bug has fixed in https://tracker.ceph.com/issues/42248,
________________________________ zhengyin@cmss.chinamobile.com
From: Jason Dillaman Date: 2020-01-03 00:25 To: zhengyin@cmss.chinamobile.com CC: yangjun; ceph-users Subject: Re: report librbd bug export-diff On Sun, Dec 29, 2019 at 9:21 PM zhengyin@cmss.chinamobile.com <zhengyin@cmss.chinamobile.com> wrote:
Hello dillaman:
Problem: create a clone from a parent image, create a snapshot on the clone, when I use command "rbd export-diff <pool>/clone@snap <file> --whole-object", it can't diff parent image data. But I use this command without "--whole-object", it is ok.
steps: 1、rbd create volumes/test1 -s 1G
2、write data to volumes/test1 (offset=0, len=8388608)
3、rbd snap create volumes/test1@snap
4、rbd snap protect volumes/test1@snap
5、rbd clone volumes/test1@snap volumes/clone1
6、write data to volumes/clone1 (offset=16777216, len=4194304)
7、rbd snap create volumes/clone1@snap1
8、rbd export-diff volumes/clone1@snap1 /root/diff1 --whole-object It only diffs data [16777216L, 20971520L]
9、rbd export-diff volumes/clone1@snap1 /root/diff2 It is ok and can diffs data [0L, 8388608L], [16777216L, 20971520L]
If you confirm that this is a bug or fix it, please let me know, thank you very much.
Is this the same as this ticket [1] that was recently fixed in master and is pending backport?
________________________________ zhengyin@cmss.chinamobile.com
[1] https://tracker.ceph.com/issues/42248
-- Jason
-- Jason
participants (2)
-
Jason Dillaman
-
zhengyin@cmss.chinamobile.com