Bug 762175 (GLUSTER-443)

Summary: For glusterfs-volgen "open failed" errors: report exactly what file or directory isn't opening
Product: [Community] GlusterFS Reporter: Simon Blandford <simon>
Component: scriptsAssignee: Harshavardhana <fharshav>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: cww, gluster-bugs, lakshmipathi
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTNR Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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)