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

Bug 1890635

Summary: Fail to deploy stand-alone Engine due to missing 'exportfs'
Product: [oVirt] ovirt-engine Reporter: Roni <reliezer>
Component: GeneralAssignee: Yedidyah Bar David <didi>
Status: CLOSED CURRENTRELEASE QA Contact: Roni <reliezer>
Severity: high Docs Contact:
Priority: high    
Version: 4.4.3CC: bugs, didi, jmacku, michal.skrivanek, mtessun
Target Milestone: ovirt-4.4.3-1Flags: pm-rhel: ovirt-4.4+
mtessun: blocker+
mtessun: planning_ack+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Doc team: This bug was caused by the fix for bug 1890018, and since both are targeted to 4.4.3, no user should have noticed it if using only released versions. So it's safe to not have doc-text for it. However, it's probably useful to add something like: With this version, nfs-utils is no longer required by the engine, so that if OpenSCAP is used, and this removes nfs-utils, the engine will not be removed as well. If you do not use OpenSCAP, you can manually install and use nfs-utils. nfs-utils was required until now for optional use in automatic creation of a local NFS ISO domain by engine-setup, a feature which is deprecated since 4.0.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-11 06:42:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1890018    
Attachments:
Description Flags
logs 4.4.3-10 none

Description Roni 2020-10-22 16:09:31 UTC
Created attachment 1723577 [details]
logs 4.4.3-10

Description of problem:
Fail to deploy stand-alone Engine.
(NOTE: hosted-engine setup works well)

2020-10-22 17:10:59,201+0300 DEBUG otopi.plugins.otopi.system.command command.get:54 command exportfs not detected yet, searching
2020-10-22 17:10:59,202+0300 DEBUG otopi.context context._executeMethod:145 method exception
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/otopi/context.py", line 132, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/system/nfs.py", line 137, in _late_setup
    self.command.get('exportfs'),
  File "/usr/share/otopi/plugins/otopi/system/command.py", line 57, in get
    res = super(Plugin, self).get(command, optional)
  File "/usr/lib/python3.6/site-packages/otopi/command.py", line 74, in get
    command=command
RuntimeError: Command 'exportfs' is required but missing
2020-10-22 17:10:59,204+0300 ERROR otopi.context context._executeMethod:154 Failed to execute stage 'Environment setup (late)': Command 'exportfs' is required but missing


Version-Release number of selected component (if applicable):
4.4.3-10

How reproducible:
100%

Steps to Reproduce:
1. Deploy Engine on clean rhel-8.3
2.
3.

Actual results:
Deploy Fails

Expected results:
Success

Additional info:
See attached logs

Comment 1 Jiri Macku 2020-10-22 16:35:20 UTC
The nfs-utils dependency was removed in the latest version of ovirt-engine-setup-plugin-ovirt-engine-common

[root@storage-ge-04 ~]# yum deplist ovirt-engine-setup-plugin-ovirt-engine-common
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Last metadata expiration check: 2:10:01 ago on Thu 22 Oct 2020 05:18:33 PM IDT.
package: ovirt-engine-setup-plugin-ovirt-engine-common-4.4.1.8-0.7.el8ev.noarch
  dependency: /bin/sh
   provider: bash-4.4.19-12.el8.x86_64
  dependency: java-11-openjdk-headless >= 11.0.4
   provider: java-11-openjdk-headless-1:11.0.8.10-6.el8.x86_64
  dependency: nfs-utils
   provider: nfs-utils-1:2.3.3-35.el8.x86_64
  dependency: ovirt-engine-setup-base = 4.4.1.8-0.7.el8ev
   provider: ovirt-engine-setup-base-4.4.1.8-0.7.el8ev.noarch
  dependency: policycoreutils-python-utils
   provider: policycoreutils-python-utils-2.9-9.el8.noarch
  dependency: python3-dnf
   provider: python3-dnf-4.2.23-4.el8.noarch
  dependency: python3-libselinux
   provider: python3-libselinux-2.9-4.el8_3.x86_64
  dependency: python3-m2crypto >= 0.28
   provider: python3-m2crypto-0.35.2-5.el8ev.x86_64
  dependency: python3-psycopg2
   provider: python3-psycopg2-2.7.5-7.el8.x86_64
  dependency: python3-pwquality
   provider: python3-pwquality-1.4.0-9.el8.x86_64
  dependency: shadow-utils
   provider: shadow-utils-2:4.6-11.el8.x86_64

package: ovirt-engine-setup-plugin-ovirt-engine-common-4.4.1.10-0.1.el8ev.noarch
  dependency: /bin/sh
   provider: bash-4.4.19-12.el8.x86_64
  dependency: java-11-openjdk-headless >= 11.0.4
   provider: java-11-openjdk-headless-1:11.0.8.10-6.el8.x86_64
  dependency: nfs-utils
   provider: nfs-utils-1:2.3.3-35.el8.x86_64
  dependency: ovirt-engine-setup-base = 4.4.1.10-0.1.el8ev
   provider: ovirt-engine-setup-base-4.4.1.10-0.1.el8ev.noarch
  dependency: policycoreutils-python-utils
   provider: policycoreutils-python-utils-2.9-9.el8.noarch
  dependency: python3-dnf
   provider: python3-dnf-4.2.23-4.el8.noarch
  dependency: python3-libselinux
   provider: python3-libselinux-2.9-4.el8_3.x86_64
  dependency: python3-m2crypto >= 0.28
   provider: python3-m2crypto-0.35.2-5.el8ev.x86_64
  dependency: python3-psycopg2
   provider: python3-psycopg2-2.7.5-7.el8.x86_64
  dependency: python3-pwquality
   provider: python3-pwquality-1.4.0-9.el8.x86_64
  dependency: shadow-utils
   provider: shadow-utils-2:4.6-11.el8.x86_64

package: ovirt-engine-setup-plugin-ovirt-engine-common-4.4.2.3-0.6.el8ev.noarch
  dependency: /bin/sh
   provider: bash-4.4.19-12.el8.x86_64
  dependency: java-11-openjdk-headless >= 11.0.4
   provider: java-11-openjdk-headless-1:11.0.8.10-6.el8.x86_64
  dependency: nfs-utils
   provider: nfs-utils-1:2.3.3-35.el8.x86_64
  dependency: ovirt-engine-setup-base = 4.4.2.3-0.6.el8ev
   provider: ovirt-engine-setup-base-4.4.2.3-0.6.el8ev.noarch
  dependency: policycoreutils-python-utils
   provider: policycoreutils-python-utils-2.9-9.el8.noarch
  dependency: python3-dnf
   provider: python3-dnf-4.2.23-4.el8.noarch
  dependency: python3-libselinux
   provider: python3-libselinux-2.9-4.el8_3.x86_64
  dependency: python3-m2crypto >= 0.28
   provider: python3-m2crypto-0.35.2-5.el8ev.x86_64
  dependency: python3-psycopg2
   provider: python3-psycopg2-2.7.5-7.el8.x86_64
  dependency: python3-pwquality
   provider: python3-pwquality-1.4.0-9.el8.x86_64
  dependency: shadow-utils
   provider: shadow-utils-2:4.6-11.el8.x86_64

package: ovirt-engine-setup-plugin-ovirt-engine-common-4.4.2.6-0.2.el8ev.noarch
  dependency: /bin/sh
   provider: bash-4.4.19-12.el8.x86_64
  dependency: java-11-openjdk-headless >= 11.0.4
   provider: java-11-openjdk-headless-1:11.0.8.10-6.el8.x86_64
  dependency: nfs-utils
   provider: nfs-utils-1:2.3.3-35.el8.x86_64
  dependency: ovirt-engine-setup-base = 4.4.2.6-0.2.el8ev
   provider: ovirt-engine-setup-base-4.4.2.6-0.2.el8ev.noarch
  dependency: policycoreutils-python-utils
   provider: policycoreutils-python-utils-2.9-9.el8.noarch
  dependency: python3-dnf
   provider: python3-dnf-4.2.23-4.el8.noarch
  dependency: python3-libselinux
   provider: python3-libselinux-2.9-4.el8_3.x86_64
  dependency: python3-m2crypto >= 0.28
   provider: python3-m2crypto-0.35.2-5.el8ev.x86_64
  dependency: python3-psycopg2
   provider: python3-psycopg2-2.7.5-7.el8.x86_64
  dependency: python3-pwquality
   provider: python3-pwquality-1.4.0-9.el8.x86_64
  dependency: shadow-utils
   provider: shadow-utils-2:4.6-11.el8.x86_64

package: ovirt-engine-setup-plugin-ovirt-engine-common-4.4.3.8-0.1.el8ev.noarch
  dependency: /bin/sh
   provider: bash-4.4.19-12.el8.x86_64
  dependency: java-11-openjdk-headless >= 11.0.4
   provider: java-11-openjdk-headless-1:11.0.8.10-6.el8.x86_64
  dependency: ovirt-engine-setup-base = 4.4.3.8-0.1.el8ev
   provider: ovirt-engine-setup-base-4.4.3.8-0.1.el8ev.noarch
  dependency: policycoreutils-python-utils
   provider: policycoreutils-python-utils-2.9-9.el8.noarch
  dependency: python3-dnf
   provider: python3-dnf-4.2.23-4.el8.noarch
  dependency: python3-libselinux
   provider: python3-libselinux-2.9-4.el8_3.x86_64
  dependency: python3-m2crypto >= 0.28
   provider: python3-m2crypto-0.35.2-5.el8ev.x86_64
  dependency: python3-psycopg2
   provider: python3-psycopg2-2.7.5-7.el8.x86_64
  dependency: python3-pwquality
   provider: python3-pwquality-1.4.0-9.el8.x86_64
  dependency: shadow-utils
   provider: shadow-utils-2:4.6-11.el8.x86_64

Probably because the appliance for installing the Hosted engine still has installed the older version it also has installed the nfs-utils and we don't see this issue there.

Comment 2 Michal Skrivanek 2020-10-23 07:32:41 UTC
IIUC this is all obsolete, can we just drop it all?

(decreasing Sev, it's easy to just install nfs-utils before running setup)

Comment 3 Yedidyah Bar David 2020-10-25 08:09:55 UTC
(In reply to Michal Skrivanek from comment #2)
> IIUC this is all obsolete, can we just drop it all?

You mean, "drop all the code"? We can, but it's a rather large change.

From a project/product POV, we declared it deprecated at 4.0.4 (bug 1332813) and removed
the question in 4.2.0 [1]. At the time, I didn't remove the code, so as to not break setups when the answer is provided in an answer file.

Comment 4 Michal Skrivanek 2020-10-26 13:33:18 UTC
(In reply to Yedidyah Bar David from comment #3)
> (In reply to Michal Skrivanek from comment #2)
> > IIUC this is all obsolete, can we just drop it all?
> 
> You mean, "drop all the code"? We can, but it's a rather large change.

yes. but indeed not necessarily in this bug

> From a project/product POV, we declared it deprecated at 4.0.4 (bug 1332813)
> and removed
> the question in 4.2.0 [1]. At the time, I didn't remove the code, so as to
> not break setups when the answer is provided in an answer file.

yeah, so it should be safe to remove

Comment 6 Roni 2020-11-05 23:17:40 UTC
Verified on build version: 4.4.3-13, (4.4.3.10-0.1.el8ev)
Verified using automation on a standalone environment

Comment 7 Sandro Bonazzola 2020-11-11 06:42:47 UTC
This bugzilla is included in oVirt 4.4.3 release, published on November 10th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.3 release, it has been closed with a resolution of CURRENT RELEASE.

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