Bug 1046211 - Same error code returned for differnt errors in create volume
Summary: Same error code returned for differnt errors in create volume
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: glusterfs
Version: 2.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Bug Updates Notification Mailing List
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard: glusterd
Depends On:
Blocks: 1046055
TreeView+ depends on / blocked
 
Reported: 2013-12-24 05:28 UTC by Ramesh N
Modified: 2015-12-03 17:13 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-03 17:13:32 UTC
Embargoed:


Attachments (Terms of Use)

Description Ramesh N 2013-12-24 05:28:43 UTC
Description of problem:

 Glusterfs returns the same error code for different errors in create volume CLI

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


How reproducible:

Always
Steps to Reproduce:
1. Create a volume with bricks from root partition without using force option
2. Create a volume with invalid brick directory

Actual results:
  
  For both the cases glusterfs returns the same error code.

 For 1:

 <cliOutput>
  <opRet>-1</opRet>
  <opErrno>2</opErrno>
  <opErrstr>The brick 10.70.43.87:/bricks/v11-1 is is being created in the root partition. It is recommended that you don't use the system's root partition for storage backend. Or use 'force' at the end of the command if you want to override this behavior.</opErrstr>
</cliOutput>

For 2:

<cliOutput>
  <opRet>-1</opRet>
  <opErrno>2</opErrno>
  <opErrstr>Failed to create brick directory for brick 10.70.43.87:/brickkks/v11-1. Reason : No such file or directory </opErrstr>
</cliOutput>

  In both the cases same error code is returned though the error message is different.

Expected results:

  Glusterfs should returns different error code for different errors.

Additional info:
  Returning different error codes helps in handling the error in UI.

Comment 2 Vivek Agarwal 2015-12-03 17:13:32 UTC
Thank you for submitting this issue for consideration in Red Hat Gluster Storage. The release for which you requested us to review, is now End of Life. Please See https://access.redhat.com/support/policy/updates/rhs/

If you can reproduce this bug against a currently maintained version of Red Hat Gluster Storage, please feel free to file a new report against the current release.


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