Bug 806795 - NFS: Log - change from warning to error
Summary: NFS: Log - change from warning to error
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: GlusterFS
Classification: Community
Component: nfs
Version: pre-release
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vinayaga Raman
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-26 09:21 UTC by Sachidananda Urs
Modified: 2014-03-31 01:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-27 12:31:14 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Sachidananda Urs 2012-03-26 09:21:10 UTC
When the operations fail and file/directory is not created, the log should be `ERROR' not `WARNING':


[2012-03-25 23:09:29.494395] W [client3_1-fops.c:514:client3_1_unlink_cbk] 0-nfs-test-3-client-0: remote operation failed: Read-only file system
[2012-03-25 23:09:29.494414] W [nfs3.c:3358:nfs3svc_remove_cbk] 0-nfs: 14633cb0: /one/linux-3.2.11/arch/x86/xen/xen-ops.h => -1 (Read-only file system)
[2012-03-25 23:09:29.495138] W [client3_1-fops.c:1590:client3_1_setattr_cbk] 0-nfs-test-3-client-0: remote operation failed: Read-only file system
[2012-03-25 23:09:29.495555] W [client3_1-fops.c:1590:client3_1_setattr_cbk] 0-nfs-test-3-client-1: remote operation failed: Read-only file system
[2012-03-25 23:09:29.496054] W [client3_1-fops.c:514:client3_1_unlink_cbk] 0-nfs-test-3-client-1: remote operation failed: Read-only file system
[2012-03-25 23:09:29.496081] W [nfs3.c:3358:nfs3svc_remove_cbk] 0-nfs: 19633cb0: /linux-3.2.11/arch/x86/include/asm/mmu_context.h => -1 (Read-only file system)
[2012-03-25 23:09:29.496211] W [client3_1-fops.c:1590:client3_1_setattr_cbk] 0-nfs-test-3-client-0: remote operation failed: Read-only file system
[2012-03-25 23:09:29.496333] W [client3_1-fops.c:1590:client3_1_setattr_cbk] 0-nfs-test-3-client-1: remote operation failed: Read-only file system
[2012-03-25 23:09:29.496799] W [client3_1-fops.c:1590:client3_1_setattr_cbk] 0-nfs-test-3-client-0: remote operation failed: Read-only file system
[2012-03-25 23:09:29.497386] W [client3_1-fops.c:1590:client3_1_setattr_cbk] 0-nfs-test-3-client-1: remote operation failed: Read-only file system

Comment 1 Vijay Bellur 2012-04-27 12:31:14 UTC
This should be handled more appropriately by a translator at a higher level. For instance with replicate, the right behavior is to log these messages at log level WARNING in the client protocol. Only replicate will be in a position to determine whether the operation is a failure or not. Since replicate provides resiliency against these kind of errors, it is better not to confuse the user with ERRORS.


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