Bug 1140588 - Incorrect errno used for permission denied errors
Summary: Incorrect errno used for permission denied errors
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhs-hadoop
Version: rhgs-3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Bradley Childs
QA Contact: BigData QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-11 10:00 UTC by Anush Shetty
Modified: 2018-02-05 01:36 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-05 01:36:08 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 996297 0 low CLOSED Gluster hadoop shim reports wrong error message when fails on access rights 2021-02-22 00:41:40 UTC

Internal Links: 996297

Description Anush Shetty 2014-09-11 10:00:18 UTC
Description of problem: When we try creating a directory as a user on the root directory (rhs mount) using hadoop shell command, the errno displayed - EIO - is incorrect.

Version-Release number of selected component (if applicable): rhs-hadoop-2.3.2-5.el6rhs.noarch


How reproducible: Always


Steps to Reproduce:
1. Create a directory of rhs-hadoop mount as user: hadoop fs -mkdir glusterfs:///hello
2.
3.

Actual results:


Expected results: The errno should be EACCES


Additional info:


$ mkdir -p /mnt/glusterfs/HadoopVol/hello
mkdir: cannot create directory `/mnt/glusterfs/HadoopVol/hello': Permission denied


$ hadoop fs -mkdir glusterfs:///hello
14/09/11 14:39:27 INFO glusterfs.GlusterVolume: Initializing gluster volume..
14/09/11 14:39:27 INFO glusterfs.GlusterFileSystem: Configuring GlusterFS
14/09/11 14:39:27 INFO glusterfs.GlusterFileSystem: Initializing GlusterFS,  CRC disabled.
14/09/11 14:39:27 INFO glusterfs.GlusterFileSystem: GIT INFO={git.commit.id.abbrev=bace8a2, git.commit.user.email=bchilds.rdu2.redhat.com, git.commit.message.full=[update RPM spec file/changelog] - 2.3.2
, git.commit.id=bace8a2d0269353c9ad293c8b2509ae145b56888, git.commit.message.short=[update RPM spec file/changelog] - 2.3.2, git.commit.user.name=Brad Childs, git.build.user.name=Unknown, git.commit.id.describe=2.3.10-9-gbace8a2, git.build.user.email=Unknown, git.branch=2.3.2, git.commit.time=10.07.2014 @ 09:59:23 EDT, git.build.time=10.07.2014 @ 10:10:47 EDT}
14/09/11 14:39:27 INFO glusterfs.GlusterFileSystem: GIT_TAG=2.3.10
14/09/11 14:39:27 INFO glusterfs.GlusterFileSystem: Configuring GlusterFS
14/09/11 14:39:27 INFO glusterfs.GlusterVolume: Initializing gluster volume..
14/09/11 14:39:27 INFO glusterfs.GlusterVolume: Gluster volume: HadoopVol at : /mnt/glusterfs/HadoopVol
14/09/11 14:39:27 INFO glusterfs.GlusterVolume: Working directory is : glusterfs:/user/tom
14/09/11 14:39:27 INFO glusterfs.GlusterVolume: Write buffer size : 131072
14/09/11 14:39:27 INFO glusterfs.GlusterVolume: Default block size : 67108864
mkdir: `glusterfs:///hello': Input/output error


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