Bug 1441280
Summary: | [snapshot cifs]ls on .snaps directory is throwing input/output error over cifs mount | ||||||
---|---|---|---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Vivek Das <vdas> | ||||
Component: | snapshot | Assignee: | Mohammed Rafi KC <rkavunga> | ||||
Status: | CLOSED ERRATA | QA Contact: | Vivek Das <vdas> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rhgs-3.3 | CC: | amukherj, anoopcs, jthottan, rcyriac, rhinduja, rhs-bugs, rhs-smb, rkavunga, storage-qa-internal | ||||
Target Milestone: | --- | Keywords: | Regression | ||||
Target Release: | RHGS 3.3.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | glusterfs-3.8.4-26 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1447266 (view as bug list) | Environment: | |||||
Last Closed: | 2017-09-21 04:37:54 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 1447266, 1463522 | ||||||
Bug Blocks: | 1417151 | ||||||
Attachments: |
|
Description
Vivek Das
2017-04-11 14:48:33 UTC
I was able reproduce the bug easily. Following entries were seen in Samba logs: [2017/04/12 15:42:25.377261, 5, pid=11231, effective(0, 0), real(0, 0)] ../source3/smbd/filename.c:644(unix_convert) unix_convert begin: name = .snaps/*, dirpath = .snaps, start = * [2017/04/12 15:42:25.378556, 5, pid=11231, effective(0, 0), real(0, 0)] ../source3/smbd/filename.c:218(check_parent_exists) check_parent_exists: name = .snaps/*, dirpath = .snaps, start = * [2017/04/12 15:42:25.378605, 10, pid=11231, effective(0, 0), real(0, 0)] ../source3/smbd/mangle_hash2.c:418(is_mangled) is_mangled * ? [2017/04/12 15:42:25.378630, 10, pid=11231, effective(0, 0), real(0, 0)] ../source3/smbd/mangle_hash2.c:357(is_mangled_component) is_mangled_component * (len 1) ? [2017/04/12 15:42:25.378653, 5, pid=11231, effective(0, 0), real(0, 0)] ../source3/smbd/filename.c:847(unix_convert) Wildcard * [2017/04/12 15:42:25.378676, 10, pid=11231, effective(0, 0), real(0, 0), class=vfs] ../source3/smbd/vfs.c:1199(check_reduced_name) check_reduced_name: check_reduced_name [.snaps/*] [/] [2017/04/12 15:42:25.380977, 10, pid=11231, effective(0, 0), real(0, 0), class=vfs] ../source3/smbd/vfs.c:1259(check_reduced_name) check_reduced_name realpath [.snaps/*] -> [/.snaps/*] [2017/04/12 15:42:25.380999, 5, pid=11231, effective(0, 0), real(0, 0), class=vfs] ../source3/smbd/vfs.c:1370(check_reduced_name) check_reduced_name: .snaps/* reduced to /.snaps/* [2017/04/12 15:42:25.381010, 5, pid=11231, effective(0, 0), real(0, 0)] ../source3/smbd/trans2.c:2741(call_trans2findfirst) dir=.snaps, mask = * [2017/04/12 15:42:25.381026, 5, pid=11231, effective(0, 0), real(0, 0)] ../source3/smbd/dir.c:474(dptr_create) dptr_create dir=.snaps [2017/04/12 15:42:25.381499, 10, pid=11231, effective(0, 0), real(0, 0)] ../source3/smbd/open.c:100(smbd_check_access_rights) smbd_check_access_rights: root override on .snaps. Granting 0x1 [2017/04/12 15:42:25.383028, 4, pid=11231, effective(0, 0), real(0, 0), class=vfs] ../source3/smbd/vfs.c:874(vfs_ChDir) vfs_ChDir to .snaps [2017/04/12 15:42:25.383966, 1, pid=11231, effective(0, 0), real(0, 0), class=vfs] ../source3/smbd/vfs.c:921(vfs_GetWd) vfs_GetWd: couldn't stat "." error No such file or directory (NFS problem ?) [2017/04/12 15:42:25.383985, 4, pid=11231, effective(0, 0), real(0, 0), class=vfs] ../source3/smbd/vfs.c:885(vfs_ChDir) vfs_ChDir got /.snaps [2017/04/12 15:42:25.383998, 10, pid=11231, effective(0, 0), real(0, 0), class=vfs] ../source3/smbd/vfs.c:1199(check_reduced_name) check_reduced_name: check_reduced_name [.] [/] [2017/04/12 15:42:25.385272, 3, pid=11231, effective(0, 0), real(0, 0), class=vfs] ../source3/smbd/vfs.c:1239(check_reduced_name) check_reduce_name: couldn't get realpath for . (NT_STATUS_OBJECT_PATH_NOT_FOUND) [2017/04/12 15:42:25.385286, 5, pid=11231, effective(0, 0), real(0, 0)] ../source3/smbd/filename.c:1248(check_name) check_name: name . failed with NT_STATUS_OBJECT_PATH_NOT_FOUND Judging from the above log it seems that stat and realpath vfs calls to glusterfs after changing directory to .snaps failed. Corresponding glusterfs client log entries: [2017-04-12 10:12:25.379506] D [MSGID: 0] [client-rpc-fops.c:2936:client3_3_lookup_cbk] 0-stack-trace: stack-address: 0x55b8761a29b0, xcube-snapd-client returned -1 error: No such file or directory [No such file or directory] [2017-04-12 10:12:25.379535] D [snapview-client.c:289:gf_svc_lookup_cbk] 0-xcube-snapview-client: Lookup failed on snapview graph with error No such file or directory [2017-04-12 10:12:25.379554] D [MSGID: 0] [snapview-client.c:329:gf_svc_lookup_cbk] 0-stack-trace: stack-address: 0x55b8761a29b0, xcube-snapview-client returned -1 error: No such file or directory [No such file or directory] [2017-04-12 10:12:25.379581] D [MSGID: 0] [io-stats.c:2213:io_stats_lookup_cbk] 0-stack-trace: stack-address: 0x55b8761a29b0, xcube returned -1 error: No such file or directory [No such file or directory] I have attached a simple gfapi reproducer. We need to see why those calls are failing on .snaps directory. Created attachment 1272289 [details]
gfapi-reproducer
RCA: Currently, snapview server is not handling the dentry name "." and ".." . So it fails for dentries pointing to entry_point ie, .snaps or the snapshot names. upstream master patch : https://review.gluster.org/17177 downstream patch : https://code.engineering.redhat.com/gerrit/#/c/106339/ https://code.engineering.redhat.com/gerrit/#/c/106338/ Followed the steps to reproduce and no Input/Output error seen accessing the .snaps directory on a cifs mount. Version ------- samba-client-4.6.3-2.el7rhgs.x86_64 glusterfs-3.8.4-27.el7rhgs.x86_64 As per comment 22 above not moving the bug to verified. As the bug mentioned in Comment 22 is moved to verified. Revisited the bug, followed the steps to reproduce over version samba-client-4.6.3-3.el7rhgs.x86_64 glusterfs-3.8.4-32.el7rhgs.x86_64 And i am not seeing the Input/Output error over cifs mount. Marking this as verified. 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, 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/RHBA-2017:2774 |