Bug 1394796 - gdeploy: Volname should be made optional in nfs-ganesha create-cluster
Summary: gdeploy: Volname should be made optional in nfs-ganesha create-cluster
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gdeploy
Version: rhgs-3.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: RHGS 3.3.0
Assignee: Sachidananda Urs
QA Contact: Manisha Saini
URL:
Whiteboard:
Depends On:
Blocks: 1417147
TreeView+ depends on / blocked
 
Reported: 2016-11-14 13:17 UTC by Arthy Loganathan
Modified: 2017-09-21 04:49 UTC (History)
11 users (show)

Fixed In Version: gdeploy-2.0.1-2
Doc Type: Enhancement
Doc Text:
With this release, ‘volname’ is made optional while creating NFS Ganesha cluster, which was mandatory before. You might want to create a NFS Ganesha cluster without exporting or building any volumes i.e. creating a cluster without having any gluster volume.
Clone Of:
Environment:
Last Closed: 2017-09-21 04:49:50 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2777 0 normal SHIPPED_LIVE gdeploy bug fix and enhancement update for RHEL7 2017-09-21 08:23:08 UTC

Description Arthy Loganathan 2016-11-14 13:17:18 UTC
Description of problem:
User can setup ganesha without having any volumes and later they can create and export volumes. Hence, volname should be made optional in nfs-ganesha create-cluster.

Version-Release number of selected component (if applicable):
gdeploy-2.0.1-3.el7rhgs.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create nfs.ganesha.conf without 'volname' key in create-cluster.
2. Run gdeploy for setting up ganesha.

Actual results:
Ganesha cluster creation succeeds, but it also tries to export volume which is undefined in conf file and it fails.

Expected results:
Ganesha cluster creation should succeed without any error.

Additional info:

Error Message:

TASK [Exports/Unexports volume through NFS-Ganesha] ****************************
fatal: [dhcp46-111.lab.eng.blr.redhat.com]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'volname' is undefined\n\nThe error appears to have been in '/tmp/tmpI5Ra8w/gluster-volume-export-ganesha.yml': line 7, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  tasks:\n    - name: Exports/Unexports volume through NFS-Ganesha\n      ^ here\n"}
to retry, use:
                --limit
                @/tmp/tmpI5Ra8w/gluster-volume-export-ganesha.retry

Comment 2 Sachidananda Urs 2016-11-14 15:01:13 UTC
Since this is not a blocker, and very minimal use case of someone setting up NFS Ganesha without a volume I suggest that we move this beyond 3.2.0.

Arthy hope that is fine.

Comment 3 Arthy Loganathan 2016-11-16 06:56:10 UTC
Discussed with Alok and since this is very minimal use case, we move this beyond 3.2.0

Comment 5 Sachidananda Urs 2017-02-27 08:15:13 UTC
Commit: https://github.com/gluster/gdeploy/commit/42fecd22 fixes the issue.

Comment 7 Manisha Saini 2017-04-28 09:15:43 UTC
Verified this bug on gdeploy-2.0.2-4.el7rhgs.noarch

Ganesha cluster creation succeed without giving volume name under [nfs-ganesha] section in gdeploy.No errors related to volume export were observed.

Moving it to verified state

Comment 11 errata-xmlrpc 2017-09-21 04:49:50 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://access.redhat.com/errata/RHBA-2017:2777


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