Bug 2053652 - diff-iterate include_parent functionality is broken in fast-diff mode
Summary: diff-iterate include_parent functionality is broken in fast-diff mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD
Version: 5.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 5.1
Assignee: Ilya Dryomov
QA Contact: Preethi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-11 17:17 UTC by Ilya Dryomov
Modified: 2022-04-04 10:24 UTC (History)
3 users (show)

Fixed In Version: ceph-16.2.7-57.el8cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-04 10:24:10 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 53787 0 None None None 2022-02-11 17:20:11 UTC
Red Hat Issue Tracker RHCEPH-3160 0 None None None 2022-02-11 17:20:55 UTC
Red Hat Product Errata RHSA-2022:1174 0 None None None 2022-04-04 10:24:30 UTC

Comment 6 Preethi 2022-02-16 15:49:17 UTC
IIlya, Am seeing the below issue while verifying with latest build. 

[ceph: root@magna031 /]# rbd create --size 20M --thick-provision foo
Thick provisioning: 100% complete...done.
[ceph: root@magna031 /]# rbd snap create foo@snap
Creating snap: 100% complete...done.
[ceph: root@magna031 /]# rbd snap protect foo@snap
[ceph: root@magna031 /]# rbd clone foo@snap bar
[ceph: root@magna031 /]# rbd diff foo
Offset    Length   Type
0         4194304  data
4194304   4194304  data
8388608   4194304  data
12582912  4194304  data
16777216  4194304  data
[ceph: root@magna031 /]# rbd diff --whole-object foo
Offset    Length   Type
0         4194304  data
4194304   4194304  data
8388608   4194304  data
12582912  4194304  data
16777216  4194304  data
[ceph: root@magna031 /]# rbd diff bar
2022-02-16T15:18:19.795+0000 7fcd3cff9700 -1 librbd::cache::ParentCacheObjectDispatch: 0x7fcd4800f6e0 operator(): Parent cache fail to connect RO daeomn.
2022-02-16T15:18:19.811+0000 7fcd3cff9700 -1 librbd::cache::ParentCacheObjectDispatch: 0x7fcd4800f6e0 operator(): Parent cache fail to register client.
2022-02-16T15:18:19.811+0000 7fcd3cff9700 -1 librbd::cache::ParentCacheObjectDispatch: 0x7fcd4800f6e0 handle_register_client: Parent cache register fails.
Offset    Length   Type
0         4194304  data
4194304   4194304  data
8388608   4194304  data
12582912  4194304  data
16777216  4194304  data
[ceph: root@magna031 /]# rbd diff --whole-object bar
2022-02-16T15:18:39.409+0000 7fad56ffd700 -1 librbd::cache::ParentCacheObjectDispatch: 0x7fad6c00f740 operator(): Parent cache fail to connect RO daeomn.
2022-02-16T15:18:39.409+0000 7fad56ffd700 -1 librbd::cache::ParentCacheObjectDispatch: 0x7fad6c00f740 operator(): Parent cache fail to register client.
2022-02-16T15:18:39.409+0000 7fad56ffd700 -1 librbd::cache::ParentCacheObjectDispatch: 0x7fad6c00f740 handle_register_client: Parent cache register fails.


[ceph: root@magna031 /]# ceph version
ceph version 16.2.7-63.el8cp (bf7cd8de848e792908ac129b7bfe90e12a06549b) pacific (stable)
[ceph: root@magna031 /]#

Comment 8 Preethi 2022-02-17 06:35:33 UTC
IIlya, Yes its working in new cluster- below steps followed 

[ceph: root@magna021 /]# ceph version
ceph version 16.2.7-60.el8cp (34dbdb659b7a1be34b84aaa825e7cbccc3170aef) pacific (stable)
[ceph: root@magna021 /]# 



[ceph: root@magna021 /]# rbd create --size 20M --thick-provision test/image1
Thick provisioning: 100% complete...done.


[ceph: root@magna021 /]# rbd snap create test/image1@snap
Creating snap: 100% complete...done.

[ceph: root@magna021 /]# rbd snap protect test/image1@snap 

[ceph: root@magna021 /]# rbd clone test/image1@snap test/bar
.
[ceph: root@magna021 /]# rbd diff test/image1
Offset    Length   Type
0         4194304  data
4194304   4194304  data
8388608   4194304  data
12582912  4194304  data
16777216  4194304  data
[ceph: root@magna021 /]# rbd diff --whole-object test/image1
Offset    Length   Type
0         4194304  data
4194304   4194304  data
8388608   4194304  data
12582912  4194304  data
16777216  4194304  data
[ceph: root@magna021 /]# rbd diff test/bar
Offset    Length   Type
0         4194304  data
4194304   4194304  data
8388608   4194304  data
12582912  4194304  data
16777216  4194304  data
[ceph: root@magna021 /]# rbd diff --whole-object test/bar   
Offset    Length   Type
0         4194304  data
4194304   4194304  data
8388608   4194304  data
12582912  4194304  data
16777216  4194304  data
[ceph: root@magna021 /]#

Comment 10 errata-xmlrpc 2022-04-04 10:24:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage 5.1 Security, Enhancement, and Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1174


Note You need to log in before you can comment on or make changes to this bug.