Bug 1372302

Summary: "Show available bricks from host" doesn't show any bricks
Product: [oVirt] ovirt-engine Reporter: Andrei Stepanov <astepano>
Component: Frontend.WebAdminAssignee: Sahina Bose <sabose>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.3CC: astepano, bugs, sabose, sasundar
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
rule-engine: planning_ack+
rule-engine: devel_ack+
pstehlik: testing_ack+
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-10 06:31:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andrei Stepanov 2016-09-01 11:22:36 UTC
"Add brick" dialog has an option "Show available bricks from host", which doesn't work.

To add a brick it is necessary to deselect option "Show available bricks from host" and type a brick path manually. 

ovirt-engine-4.0.4-0.1.el7ev.noarch

1. Log in admin portal.
2. Have a GlusterFS cluster.
3. Have a host in a GlusterFS cluster.
4. Log in to the host and create any brick.
5. Select checkbox "Show available bricks from host" in "New Volume" -> "Add bricks"

List with a available bricks on the host stays empty.

Comment 1 Sahina Bose 2016-09-07 11:29:57 UTC
How were the bricks created on the host? Under which path was it mounted?

oVirt looks under /rhgs path for brick directories to list. (The path that it looks for is a configurable option)

Comment 2 Andrei Stepanov 2016-09-12 09:10:53 UTC
I created a new FS, and mounted it under : /rhgs/brick2

/dev/mapper/vg-gluster4 on /rhgs/brick2 type xfs (rw,relatime,seclabel,attr2,inode64,noquota)

option "Show available bricks from host" doesn't show this brick. I always need to create a gluster volume manually to be used in RHV.

Moreover, I do not have a configurable option to specify a path:

# engine-config -l | grep -i gluster
AllowClusterWithVirtGlusterEnabled: "Allows to create a Cluster with both Virt and Gluster services enabled" (Value Type: String)
GlusterRefreshRateHooks: "Refresh rate (in seconds) of gluster hooks from gluster servers" (Value Type: Integer)
GlusterRefreshRateGeoRepStatusInSecs: Refresh rate (in seconds) of the geo-replication session status and statistics (Value Type: Integer)
GlusterRefreshRateGeoRepDiscoveryInSecs: Refresh rate (in seconds) for discovery of geo-replication sessions (Value Type: Integer)

I think this part should be documented at:

https://access.redhat.com/documentation/en/red-hat-virtualization/4.0/single/administration-guide/

Comment 3 Sahina Bose 2016-09-19 07:08:19 UTC
Ramesh, can you check?

Comment 4 Red Hat Bugzilla Rules Engine 2016-09-19 07:08:26 UTC
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.

Comment 5 Ramesh N 2016-09-20 06:08:18 UTC
Default mount point for gluster bricks is  configurable using the vdc_option "GlusterDefaultBrickMountPoint". Default value for this option is '"/gluster-bricks" in upstream oVirt and /rhgs/' in RHEV-M. Make sure you have mounted the brick in correct path and same thing is shown under the 'Storage Devices' sub tab under 'Hosts'. 

Currently vdc_option "GlusterDefaultBrickMountPoint" is not exposed through 'engine-config' command. Let me expose this to engine_config and have it documented in the admin guide.

Comment 6 Sahina Bose 2016-12-22 08:43:31 UTC
Can you expose this option?

Comment 7 Ramesh N 2016-12-26 05:26:16 UTC
Yeap. I can expose this the option "GlusterDefaultBrickMountPoint"  to 'engine-config' command.

Comment 8 SATHEESARAN 2018-05-10 03:49:39 UTC
Tested with RHV 4.2.3 and gluster-3.12

vdc_option GlusterDefaultBrickMountPoint is exposed now and this makes the brick mounted under that listed

# engine-config -a | grep GlusterDefaultBrickMountPoint
GlusterDefaultBrickMountPoint: /rhgs version: general

Comment 9 Sandro Bonazzola 2018-05-10 06:31:00 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.