Bug 1158898

Summary: [USS]: creating file/directories under .snaps shows wrong error message
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Rahul Hinduja <rhinduja>
Component: snapshotAssignee: Vijaikumar Mallikarjuna <vmallika>
Status: CLOSED ERRATA QA Contact: Rahul Hinduja <rhinduja>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: rhs-bugs, rjoseph, smohan, storage-qa-internal, surs, vagarwal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.0.3   
Hardware: x86_64   
OS: Linux   
Whiteboard: USS
Fixed In Version: glusterfs-3.6.0.33-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1159840 (view as bug list) Environment:
Last Closed: 2015-01-15 13:41:33 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:    
Bug Blocks: 1159840, 1162694, 1175730    

Description Rahul Hinduja 2014-10-30 13:20:13 UTC
Description of problem:
=======================

When an attempt is made to create file/directories inside .snaps, it fails with wrong error message as "Stale file handle". It should fail with "Read only file system"

Version-Release number of selected component (if applicable):
=============================================================

glusterfs-3.6.0.30-1.el6rhs.x86_64


How reproducible:
==================

always


Steps to Reproduce:
===================
1. Enable uss on the volume
2. Cd to .snaps from the client


Actual results:
===============

[root@wingo .snaps]# mkdir a
mkdir: cannot create directory `a': Stale file handle
[root@wingo .snaps]# touch a
touch: cannot touch `a': Stale file handle
[root@wingo .snaps]# 


Expected results:
=================

[root@wingo .snaps]# mkdir a
mkdir: cannot create directory `a': Read-only file system
[root@wingo .snaps]# touch a
touch: cannot touch `a': Read-only file system
[root@wingo .snaps]#

Comment 3 Vijaikumar Mallikarjuna 2014-11-12 09:51:30 UTC
Patch submitted: https://code.engineering.redhat.com/gerrit/36478

Comment 4 Rahul Hinduja 2014-11-20 11:32:20 UTC
Verified with build: glusterfs-3.6.0.33-1.el6.x86_64

From Fuse:
----------

[root@wingo .snaps]# mount | grep "/mnt/vol0"
inception.lab.eng.blr.redhat.com:/vol0 on /mnt/vol0 type fuse.glusterfs (rw,default_permissions,allow_other,max_read=131072)
[root@wingo .snaps]#
[root@wingo .snaps]# pwd
/mnt/vol0/.snaps
[root@wingo .snaps]# mkdir temp
mkdir: cannot create directory `temp': Read-only file system
[root@wingo .snaps]#

From Fuse:
----------

[root@wingo .snaps]# mount | grep "/mnt/nvol0"
inception.lab.eng.blr.redhat.com:/vol0 on /mnt/nvol0 type nfs (rw,vers=3)
[root@wingo .snaps]# cd /mnt/nvol0/.snaps
[root@wingo .snaps]# pwd
/mnt/nvol0/.snaps
[root@wingo .snaps]# mkdir temp1
mkdir: cannot create directory `temp1': Read-only file system
[root@wingo .snaps]# 


Moving the bug to verified state

Comment 6 errata-xmlrpc 2015-01-15 13:41:33 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-2015-0038.html