Bug 1890635 - Fail to deploy stand-alone Engine due to missing 'exportfs'
Summary: Fail to deploy stand-alone Engine due to missing 'exportfs'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: 4.4.3
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ovirt-4.4.3-1
: ---
Assignee: Yedidyah Bar David
QA Contact: Roni
URL:
Whiteboard:
Depends On:
Blocks: 1890018
TreeView+ depends on / blocked
 
Reported: 2020-10-22 16:09 UTC by Roni
Modified: 2020-11-11 06:42 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-11-11 06:42:47 UTC
oVirt Team: Integration
Embargoed:
pm-rhel: ovirt-4.4+
mtessun: blocker+
mtessun: planning_ack+


Attachments (Terms of Use)
logs 4.4.3-10 (663.49 KB, application/zip)
2020-10-22 16:09 UTC, Roni
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 111868 0 master MERGED packaging: setup: Do not fail on missing exportfs 2021-01-05 09:59:02 UTC
oVirt gerrit 111870 0 ovirt-engine-4.4.3.z MERGED packaging: setup: Do not fail on missing exportfs 2021-01-05 09:59:04 UTC

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.


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