Bug 1393966 - gdeploy: Incorrect Console message when nfs-ganesha cluster creation fails.
Summary: gdeploy: Incorrect Console message when nfs-ganesha cluster creation fails.
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.2.0
Assignee: Sachidananda Urs
QA Contact: Arthy Loganathan
URL:
Whiteboard:
Depends On: 1394815 1395539 1395648 1395649 1395652
Blocks: 1351528 1364410
TreeView+ depends on / blocked
 
Reported: 2016-11-10 17:57 UTC by Arthy Loganathan
Modified: 2017-03-23 05:08 UTC (History)
6 users (show)

Fixed In Version: gdeploy-2.0.1-6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-23 05:08:39 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:0482 0 normal SHIPPED_LIVE Red Hat Gluster Storage 3.2.0 gdeploy bug fix and enhancement update 2017-03-23 09:06:28 UTC

Description Arthy Loganathan 2016-11-10 17:57:16 UTC
Description of problem:
gdeploy console message says "NFS Ganesha status is HEALTHY" even if nfs-ganesha setup fails.

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

How reproducible:
Always

Steps to Reproduce:
Setup nfs-ganesha using gdeploy.

Actual results:
gdeploy console message says "NFS Ganesha status is HEALTHY" even if nfs-ganesha setup fails.

Expected results:
gdeploy should log error message in console output in case if there is any failure in nfs ganesha cluster creation.

Additional info:
TASK [Report NFS Ganesha status] ***********************************************
ok: [dhcp46-111.lab.eng.blr.redhat.com] => {
    "msg": "--  NFS Ganesha status is HEALTHY"
}

Comment 2 Sachidananda Urs 2016-11-12 16:37:08 UTC
This is a bit tricky, because currently we don't know what are all the possible console output in case of failure in setup. Since Ganesha involves quite a few number of services. We had currently captured two error cases. Now pcs has cropped up.

I propose this beyond 3.2.0? Any concerns? And currently disable the particular health check status. User can determine by looking at console output if anything failed during the process.

Comment 3 Arthy Loganathan 2016-11-14 14:41:45 UTC
I have raised a bug on "/usr/libexec/ganesha/ganesha-ha.sh --status" to check all services which are used in nfs-ganesha are running and with few more status checks. bug info - https://bugzilla.redhat.com/show_bug.cgi?id=1394815

Comment 8 Sachidananda Urs 2016-12-06 11:58:49 UTC
Commit: https://github.com/gluster/gdeploy/commit/dcdc29deb39 fixes the issue.

Comment 9 Arthy Loganathan 2016-12-13 06:35:17 UTC
Verified the fix in build,

gdeploy-2.0.1-6.el7rhgs.noarch
nfs-ganesha-2.4.1-2.el7rhgs.x86_64
nfs-ganesha-gluster-2.4.1-2.el7rhgs.x86_64
glusterfs-ganesha-3.8.4-8.el7rhgs.x86_64


Current Output Status Message:
-------------------------------

If nfs-ganesha installation succeeds:

TASK [Report NFS Ganesha status] ***********************************************
ok: [dhcp46-42.lab.eng.blr.redhat.com] => {
    "msg": "Cluster HA Status: HEALTHY"
}

If there are any errors:

TASK [Report NFS Ganesha status (If any errors)] *******************************
ok: [dhcp46-42.lab.eng.blr.redhat.com] => {
    "msg": "Error: cluster is not currently running on this node"
}

Comment 11 errata-xmlrpc 2017-03-23 05:08:39 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://rhn.redhat.com/errata/RHEA-2017-0482.html


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