Bug 885592 - [RHS-C] SHD service status details are not displayed in "Services" tab in Cluster
Summary: [RHS-C] SHD service status details are not displayed in "Services" tab in Clu...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhsc
Version: 2.1
Hardware: All
OS: All
medium
high
Target Milestone: ---
: RHGS 2.1.2
Assignee: Bala.FA
QA Contact: Shruti Sampat
URL:
Whiteboard:
: 902506 902829 (view as bug list)
Depends On:
Blocks: 919332
TreeView+ depends on / blocked
 
Reported: 2012-12-10 07:23 UTC by Prasanth
Modified: 2015-05-13 16:32 UTC (History)
14 users (show)

Fixed In Version: CB11
Doc Type: Bug Fix
Doc Text:
Previously, the self heal daemon service status details were not displayed in 'Services' sub tab of Clusters. Now, with this update, the self heal daemon service details are displayed.
Clone Of:
: 919332 (view as bug list)
Environment:
Last Closed: 2014-02-25 07:23:19 UTC
Embargoed:


Attachments (Terms of Use)
SHD_missing (139.23 KB, image/jpeg)
2012-12-10 07:23 UTC, Prasanth
no flags Details
vdsm logs (17.25 KB, text/x-log)
2013-06-18 10:14 UTC, Shruti Sampat
no flags Details
engine logs (3.07 MB, text/x-log)
2013-06-18 10:15 UTC, Shruti Sampat
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:0208 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #2 2014-02-25 12:20:30 UTC
oVirt gerrit 16177 0 None None None Never
oVirt gerrit 21599 0 None None None Never

Description Prasanth 2012-12-10 07:23:58 UTC
Created attachment 660612 [details]
SHD_missing

Description of problem:

SHD service status details are not displayed in "Services" tab in Cluster 

Version-Release number of selected component (if applicable): rhsc-2.1-qa18.el6ev.noarch


How reproducible: Always


Steps to Reproduce:
1. Select a Cluster and click on the sub-tab "Services "
2. You will see only NFS related details and not SHD

  
Actual results: Currently ONLY NFS service related details are seen and SHD service details are missing. Even if you select SHD from the drop-down, and click on "Filter", it doesn't show anything.

Expected results: SHD service status should also be displayed along with NFS as currently we support SHD service as well as per http://wiki.ovirt.org/Features/GlusterVolumeAdvancedDetails



Additional info: Screenshot attached

SHD service is running in the server. See below:

-----
# ps aux |grep glustershd
root     29047  0.1  0.1 318848 17588 ?        Ssl  Dec09   0:03 /usr/sbin/glusterfs -s localhost --volfile-id gluster/glustershd -p /var/lib/glusterd/glustershd/run/glustershd.pid -l /var/log/glusterfs/glustershd.log -S /var/run/bc939796854a60f449342f975c33068c.socket --xlator-option *replicate*.node-uuid=9dd0c92e-e929-43a0-aaff-d6c201e5d77d
-----

Even otherwise, it should say the status as DOWN instead of not displaying anything.

Comment 2 Kanagaraj 2012-12-18 09:28:00 UTC
While calling volumeStatus, a REPLICATE volume should be passed as an argument to get the SHD details. The same will be applicable for NFS as well(the volume should have nfs enabled).

So the engine has to decide which volume to be passed as an argument when calling volumeStatus. A volume which is both REPLICATE and NFS=true should be selected. if nothing found, call the volumeStatus twice, first time with REPLICATE volume, second time with NFS enable volume and the results should be combined and shown to the user.

The services could be empty if the cluster has no REPLICATE volumes and no NFS enabled volumes.

Comment 3 Dhandapani 2012-12-24 11:04:06 UTC
Patch sent to upstream: http://gerrit.ovirt.org/#/c/10336/

Comment 4 Shireesh 2013-01-22 05:33:45 UTC
*** Bug 902506 has been marked as a duplicate of this bug. ***

Comment 5 Shireesh 2013-01-22 13:57:00 UTC
*** Bug 902829 has been marked as a duplicate of this bug. ***

Comment 6 Matt Mahoney 2013-01-25 18:00:32 UTC
When this bug was opened, there replicate volumes in Up state. Once a volume was added and "Up", then cluster services table was populated as expected.

Comment 7 Prasanth 2013-01-28 08:56:49 UTC
(In reply to comment #2)
> While calling volumeStatus, a REPLICATE volume should be passed as an
> argument to get the SHD details. The same will be applicable for NFS as
> well(the volume should have nfs enabled).
> 
> So the engine has to decide which volume to be passed as an argument when
> calling volumeStatus. A volume which is both REPLICATE and NFS=true should
> be selected. if nothing found, call the volumeStatus twice, first time with
> REPLICATE volume, second time with NFS enable volume and the results should
> be combined and shown to the user.
> 
> The services could be empty if the cluster has no REPLICATE volumes and no
> NFS enabled volumes.

Kanagaraj, instead of showing the services as empty when a cluster has no REPLICATE volumes and no NFS enabled volumes, it will be good if we can provide a useful message or s pop-up window in the "Services" tab providing the reason.

Comment 8 Matt Mahoney 2013-02-26 20:05:44 UTC
Created a Replicate volume, started the volume, and both NFS and SHD details were present.

Comment 9 Matt Mahoney 2013-02-26 20:06:25 UTC
Tested against QA6.

Comment 11 Shruti Sampat 2013-06-18 10:01:36 UTC
I am seeing this issue in bb3. Moving the bug to ASSIGNED.

Comment 12 Shruti Sampat 2013-06-18 10:08:36 UTC
Another issue that I see, is that when none of the hosts and none of the services are selected from the respective drop-down menus, the Console does not display any services, whereas all services on all hosts should be displayed.

Comment 13 Shruti Sampat 2013-06-18 10:11:23 UTC
Attaching engine logs and vdsm logs.

Comment 14 Shruti Sampat 2013-06-18 10:14:07 UTC
Created attachment 762456 [details]
vdsm logs

Comment 15 Shruti Sampat 2013-06-18 10:15:14 UTC
Created attachment 762457 [details]
engine logs

Comment 16 Sahina Bose 2013-06-18 10:55:23 UTC
In the logs, see this:
2013-06-18 15:24:44,102 ERROR [org.ovirt.engine.core.bll.gluster.GetGlusterVolumeAdvancedDetailsQuery] (ajp-/127.0.0.1:8702-2) To get service details, no Nfs or Replicated volumes found in the cluster.

Can you give output of gluster volume status?

Comment 17 Kanagaraj 2013-06-18 10:59:43 UTC
Sahina,

This is the log when the user selects a cluster which doesn't have any volumes.

Comment 18 Sahina Bose 2013-06-25 07:15:59 UTC
Shruti,

The vdsm logs is from host 10.70.35.107? 
Is this host part of your "myglustercluster" ?

Comment 19 Shruti Sampat 2013-06-25 07:28:21 UTC
Sahina,

The screenshot is an older attachment that was uploaded earlier from another setup. The logs that I have attached are not from the same setup. So the machine 10.70.35.107 is not part of 'myglustercluster' seen in the screenshot.

Comment 21 Shruti Sampat 2013-07-08 11:47:08 UTC
Verfified as fixed in Red Hat Storage Console Version: 2.1.0-0.bb5.el6rhs. The NFS and SHD services details are being displayed for all possible combinations of hosts and service type.

Comment 22 Shruti Sampat 2013-07-08 12:35:36 UTC
Seeing another issue. Filtering on a specified host and service has issues, the result appears and then disappears, and this keeps happening. 'ShowAll' works fine. 

Moving to ASSIGNED state.

Comment 24 Bala.FA 2013-11-25 09:31:41 UTC
upstream vdsm patch is at http://gerrit.ovirt.org/#/c/21596/
downstream glusterfs patch is at https://code.engineering.redhat.com/gerrit/#/c/15759/

Comment 25 Bala.FA 2013-11-29 10:02:39 UTC
Downstream vdsm patch https://code.engineering.redhat.com/gerrit/#/c/16544/

Comment 26 Dustin Tsang 2013-12-16 16:24:39 UTC
The validation message isn't quite accurate which may confuse the user since validation is shown when the number of bricks less than equal to 4. As prasanth pointed out before, 0 and 4 are both a multiples of 4.

multiple is also misspelled in the current validation message.


current validation message: "Number of bricks should be a mutiple of Stripe Count"

suggested; something similar to: "Number of bricks should be a multiple of Stripe Count with a minimum of 8 bricks"

Comment 27 Sahina Bose 2013-12-17 05:02:41 UTC
The comment 26 is not relevant to the SHD service details. I'm moving this back to ON_QA. Please provide correct details, if you're failing again.

Comment 28 Shruti Sampat 2013-12-19 05:30:43 UTC
Verified as fixed in Red Hat Storage Console Version: 2.1.2-0.27.beta.el6_5.

Comment 29 Shalaka 2014-01-09 08:53:31 UTC
Please review and signoff the edited DocText.

Comment 30 Bala.FA 2014-01-09 09:01:54 UTC
doc-text looks good to me.

Comment 32 errata-xmlrpc 2014-02-25 07:23:19 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.

http://rhn.redhat.com/errata/RHEA-2014-0208.html


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