Bug 1372302 - "Show available bricks from host" doesn't show any bricks
Summary: "Show available bricks from host" doesn't show any bricks
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.2.0
: 4.2.0
Assignee: Sahina Bose
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-01 11:22 UTC by Andrei Stepanov
Modified: 2019-04-28 10:27 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-05-10 06:31:00 UTC
oVirt Team: Gluster
Embargoed:
rule-engine: ovirt-4.2+
rule-engine: planning_ack+
rule-engine: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 84621 0 master MERGED engine: Expose GlusterDefaultBrickMountPoint in config 2020-07-20 07:51:31 UTC

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.


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