Bug 1425763 - [RGW:NFS]: "cd" command to non-existing directory is working without any error message.
Summary: [RGW:NFS]: "cd" command to non-existing directory is working without any erro...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 2.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 2.2
Assignee: Matt Benjamin (redhat)
QA Contact: Ramakrishnan Periyasamy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-22 10:58 UTC by Ramakrishnan Periyasamy
Modified: 2022-02-21 18:42 UTC (History)
9 users (show)

Fixed In Version: RHEL: ceph-10.2.5-33.el7cp, nfs-ganesha-2.4.2-7.el7cp Ubuntu: ceph_10.2.5-25redhat1, nfs-ganesha_ 2.4.2-7redhat1xenial
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-14 15:50:04 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 19059 0 None None None 2017-03-22 21:31:05 UTC
Ceph Project Bug Tracker 19060 0 None None None 2017-03-22 21:30:51 UTC
Red Hat Issue Tracker RHCEPH-3533 0 None None None 2022-02-21 18:42:55 UTC
Red Hat Product Errata RHBA-2017:0514 0 normal SHIPPED_LIVE Red Hat Ceph Storage 2.2 bug fix and enhancement update 2017-03-21 07:24:26 UTC

Description Ramakrishnan Periyasamy 2017-02-22 10:58:40 UTC
Description of problem:

Created some directories like nfs01, nfs02, nfs03, etc,, while trying to access the directories using 'cd' and 'tab' key then 'enter' key. Directory is getting accessed and able to create files in it.

[ubuntu@host013 client2_run2]$ mkdir nfs01
[ubuntu@host013 client2_run2]$ mkdir nfs02
[ubuntu@host013 client2_run2]$ mkdir nfs03
[ubuntu@host013 client2_run2]$ mkdir nfs04
[ubuntu@host013 client2_run2]$ ls
nfs01  nfs02  nfs03  nfs04
[ubuntu@host013 client2_run2]$ cd nfs0
[ubuntu@host013 nfs0]$ ls
[ubuntu@host013 nfs0]$ ll
total 0
[ubuntu@host013 nfs0]$ cd ..
[ubuntu@host013 client2_run2]$ ls
nfs01  nfs02  nfs03  nfs04
[ubuntu@host013 client2_run2]$ cd nfs0
[ubuntu@host013 nfs0]$ touch a b c d
[ubuntu@host013 nfs0]$ ls
a  b  c  d
[ubuntu@host013 nfs0]$ cd ..
[ubuntu@host013 client2_run2]$ ls
nfs01  nfs02  nfs03  nfs04
[ubuntu@host013 client2_run2]$ ll
total 0
drwxrwxrwx. 3 root   root   0 Jan  1  1970 nfs0
drwxrwxr-x. 3 ubuntu ubuntu 0 Feb 22 10:43 nfs01
drwxrwxr-x. 3 ubuntu ubuntu 0 Feb 22 10:43 nfs02
drwxrwxr-x. 3 ubuntu ubuntu 0 Feb 22 10:43 nfs03
drwxrwxr-x. 3 ubuntu ubuntu 0 Feb 22 10:43 nfs04
[ubuntu@host013 client2_run2]$ cd nfs0
[ubuntu@host013 nfs0]$ ls
a  b  c  d


Version-Release number of selected component (if applicable):
ceph: 10.2.5-29.el7cp
rgw: nfs-ganesha-2.4.2-6.el7cp.x86_64

How reproducible:
2/2

Steps to Reproduce:
1. Create ceph cluster with rgw and NFS-Ganesha
2. mount NFS to any client
3. Create some directories as in description.

Actual results:
"cd" command access the invalid/not-available directory and able to create files in that.

Expected results:
Command should fail with "Directory not exists error"

Additional info:
N/A

Comment 2 Ramakrishnan Periyasamy 2017-02-22 11:03:21 UTC
Additional info:

apart from that series dir name, other directories are failing with proper error.
[ubuntu@host013 client2_run2]$ ls
nfs0  nfs01  nfs02  nfs03  nfs04
[ubuntu@host013 client2_run2]$ cd abcd
-bash: cd: abcd: No such file or directory

Comment 12 Ramakrishnan Periyasamy 2017-02-27 10:07:20 UTC
Moving this bug to verified state.

[ubuntu@host003 client1_run4]$ ls
level00  level01  level02  level03  level04  level05  level06  level07  level08  level09
[ubuntu@host003 client1_run4]$ cd level0
-bash: cd: level0: No such file or directory
[ubuntu@host003 client1_run4]$ ls
level00  level01  level02  level03  level04  level05  level06  level07  level08  level09
[ubuntu@host003 client1_run4]$ mkdir nfs01
[ubuntu@host003 client1_run4]$ mkdir nfs02
[ubuntu@host003 client1_run4]$ mkdir nfs03
[ubuntu@host003 client1_run4]$ ls
level00  level01  level02  level03  level04  level05  level06  level07  level08  level09  nfs01  nfs02  nfs03
[ubuntu@host003 client1_run4]$ cd nfs0
-bash: cd: nfs0: No such file or directory
[ubuntu@host003 client1_run4]$ 


Verified in 
[ubuntu@host003 nfs]$ sudo ceph -v
ceph version 10.2.5-34.el7cp (d11a516e27459d970ff00b54315f5ba66185f046)

[ubuntu@host023 ~]$ sudo rpm -qa | grep nfs
nfs-ganesha-rgw-2.4.2-7.el7cp.x86_64
libnfsidmap-0.25-15.el7.x86_64
nfs-ganesha-2.4.2-7.el7cp.x86_64
nfs-utils-1.3.0-0.33.el7.x86_64

Comment 14 errata-xmlrpc 2017-03-14 15:50:04 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, 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://rhn.redhat.com/errata/RHBA-2017-0514.html


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