Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2002178

Summary: Deploying ovirt HCI fail due to glusterfs-selinux package missing
Product: [oVirt] ovirt-distribution Reporter: Vlad Vetu <vvetu>
Component: glusterfsAssignee: Niels de Vos <ndevos>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: high    
Version: 4.4.8CC: arachman, bugs, cshao, lsvaty, lveyde, mavital, michal.skrivanek, peyu, sanja, sbonazzo, shlei, weiwang, yaniwang
Target Milestone: ovirt-4.4.9Keywords: Regression, ZStream
Target Release: 4.4.9Flags: pm-rhel: ovirt-4.4+
michal.skrivanek: blocker-
sbonazzo: devel_ack+
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-8.6-2.el8 glusterfs-8.6-2.el8s Doc Type: No Doc Update
Doc Text:
A missing dependency on glusterfs-selinux caused failures running glusterfs-server. The dependency has been added now, so updating glusterfs-server will install the missing package solving the issue.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-12 12:49:06 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 Vlad Vetu 2021-09-08 07:41:03 UTC
Description of problem:
When trying to deploy a new HyperConverged Infrastructure cluster the installer will fail at labeling gluster bricks.

Version-Release number of selected component (if applicable):
oVirt Node 4.4.8

How reproducible:
Deploy a new ovirt HCI cluster

Steps to Reproduce:
1. install ovirt node OS
2. Run hyperconverged installer through ovirt cockpit-dashboard
3. Leave default selinux configuration for gluster setup

Actual results:
Task failed:
shell: semanage fcontext -a -t glusterd_brick_t "{{ item }}"
ValueError: Type glusterd_brick_t is invalid, must be a file or device type

Expected results:
Installer to complete successfully.

Additional info:
The problem seems to be caused by a missing package on the host glusterfs-selinux
The same error is produced by trying to manually label the bricks.

As a workaround:
For the ovirt-4.4-centos-gluster8 repo add in includepkgs the missing package glusterfs-selinux and manually install it.
Re-run the installer.

[ovirt-4.4-centos-gluster8]
name = CentOS-$releasever - Gluster 8
mirrorlist = http://mirrorlist.centos.org?arch=$basearch&release=$releasever&repo=storage-gluster-8
gpgcheck = 1
enabled = 1
gpgkey = https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Storage
includepkgs = ovirt-node-ng-image-update ovirt-node-ng-image ovirt-engine-appliance vdsm-hook-fcoe vdsm-hook-vhostmd vdsm-hook-openstacknet vdsm-hook-ethtool-options glusterfs-selinux

Comment 1 RHEL Program Management 2021-09-08 07:44:24 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.

Comment 2 RHEL Program Management 2021-09-13 09:48:40 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 3 Sandro Bonazzola 2021-09-13 10:11:06 UTC
The problem is that glusterfs-server is missing a dependency on glusterfs-selinux.
Reported to Gluster community here: https://github.com/gluster/glusterfs/issues/2780 .

A new build of oVirt Node will be issued as soon as Gluster team will provide the fix.
In the meanwhile, the workaround suggested in the bug description can be used.

Comment 4 Sandro Bonazzola 2021-09-13 10:25:20 UTC
Pushed a fix to the glusterfs specfile: https://github.com/gluster/glusterfs/pull/2781

Comment 5 Niels de Vos 2021-10-12 11:27:11 UTC
https://lists.gluster.org/pipermail/packaging/2021-October/000975.html

glusterfs-8.6-2.el8 and glusterfs-8.6-2.el8s are available in the
testing repositories. This addresses a dependency issue that recently
was reported in relation to oVirt and SELinux:

- https://bugzilla.redhat.com/2002178
- https://github.com/gluster/glusterfs/issues/2780

Updating should now pull in the glusterfs-selinux package too, assuming
glusterfs-server-8.6.1 or older is installed.

    # dnf --enablerepo=centos-gluster8-test update glusterfs-server

Please report back if this addresses the problem, or if any other
changes are required.

Comment 6 Sandro Bonazzola 2021-10-12 11:52:30 UTC
Thanks Niels, this works for me, waiting for it to be promoted to release