Bug 762175 (GLUSTER-443) - For glusterfs-volgen "open failed" errors: report exactly what file or directory isn't opening
Summary: For glusterfs-volgen "open failed" errors: report exactly what file or direct...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-443
Product: GlusterFS
Classification: Community
Component: scripts
Version: mainline
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Harshavardhana
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-05 12:51 UTC by Simon Blandford
Modified: 2015-03-23 01:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTNR
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Harshavardhana 2009-12-05 09:59:30 UTC
Fixed in 2.0.9rcX and origin/release-2.0 upstream branch. 

commit ad5e0dc127a85027d5d2f8a26e746f4fdcf5e9f4
Author: Harshavardhana Ranganath <harsha>
Date:   Thu Nov 26 12:10:05 2009 +0000

Comment 1 Simon Blandford 2009-12-05 12:51:59 UTC
Please give more information for file access exceptions when they are trapped.

For example, the following code...

    try:
        tmp_read_fd = file (volume_path, "r")
    except:
        print "open failed"
        sys.exit (1)

..could be changed to ...

    try:
        tmp_read_fd = file (volume_path, "r")
    except:
        print "volume open failed: " + volume_path
        sys.exit (1)


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