Upgrade 4.3 to 4.4 with Python3 : No module named "rpmUtils"

Hello., Scenario: Upgrading from 4.3 to 4.4 Situation: When running engine-setup on the new (standalone) engine host I hit 2021-10-28 18:30:47,998+0800 DEBUG otopi.context context._executeMethod:127 Stage boot METHOD otopi.plugins.otopi.packagers.yumpackager.Plugin._boot 2021-10-28 18:30:47,999+0800 DEBUG otopi.plugins.otopi.packagers.yumpackager yumpackager._boot:187 Cannot initialize miniyum Traceback (most recent call last): File "/usr/share/otopi/plugins/otopi/packagers/yumpackager.py", line 179, in _boot self._refreshMiniyum() File "/usr/share/otopi/plugins/otopi/packagers/yumpackager.py", line 134, in _refreshMiniyum constants.PackEnv.YUM_ENABLED_PLUGINS File "/usr/share/otopi/plugins/otopi/packagers/yumpackager.py", line 61, in _getMiniYum from otopi import miniyum File "/usr/lib/python3.6/site-packages/otopi/miniyum.py", line 17, in <module> import rpmUtils.miscutils ModuleNotFoundError: No module named 'rpmUtils' I have # dnf provides \*/miscutils.py Last metadata expiration check: 4:02:50 ago on Thu 28 Oct 2021 02:40:56 PM. python3-dnf-4.4.2-11.el8.noarch : Python 3 interface to DNF Repo : @System Matched from: Filename : /usr/lib/python3.6/site-packages/dnf/rpm/miscutils.py python3-dnf-4.4.2-11.el8.noarch : Python 3 interface to DNF Repo : baseos Matched from: Filename : /usr/lib/python3.6/site-packages/dnf/rpm/miscutils.py On the original EL7 host with python2 I have # yum provides \*/miscutils.py Loaded plugins: fastestmirror, priorities, versionlock Loading mirror speeds from cached hostfile * ovirt-4.3: mirror.rackspace.com python2-dnf-4.0.9.2-1.el7_6.noarch : Python 2 interface to DNF Repo : extras Matched from: Filename : /usr/lib/python2.7/site-packages/dnf/rpm/miscutils.py python2-dnf-4.0.9.2-2.el7_9.noarch : Python 2 interface to DNF Repo : extras Matched from: Filename : /usr/lib/python2.7/site-packages/dnf/rpm/miscutils.py yum-3.4.3-168.el7.centos.noarch : RPM package installer/updater/manager Repo : base Matched from: Filename : /usr/lib/python2.7/site-packages/rpmUtils/miscutils.py yum-3.4.3-167.el7.centos.noarch : RPM package installer/updater/manager Repo : @base Matched from: Filename : /usr/lib/python2.7/site-packag# yum provides \*/miscutils.py Loaded plugins: fastestmirror, priorities, versionlock Loading mirror speeds from cached hostfile * ovirt-4.3: mirror.rackspace.com python2-dnf-4.0.9.2-1.el7_6.noarch : Python 2 interface to DNF Repo : extras Matched from: Filename : /usr/lib/python2.7/site-packages/dnf/rpm/miscutils.py python2-dnf-4.0.9.2-2.el7_9.noarch : Python 2 interface to DNF Repo : extras Matched from: Filename : /usr/lib/python2.7/site-packages/dnf/rpm/miscutils.py yum-3.4.3-168.el7.centos.noarch : RPM package installer/updater/manager Repo : base Matched from: Filename : /usr/lib/python2.7/site-packages/rpmUtils/miscutils.py yum-3.4.3-167.el7.centos.noarch : RPM pa# yum provides \*/miscutils.py Loaded plugins: fastestmirror, priorities, versionlock Loading mirror speeds from cached hostfile * ovirt-4.3: mirror.rackspace.com python2-dnf-4.0.9.2-1.el7_6.noarch : Python 2 interface to DNF Repo : extras Matched from: Filename : /usr/lib/python2.7/site-packages/dnf/rpm/miscutils.py python2-dnf-4.0.9.2-2.el7_9.noarch : Python 2 interface to DNF Repo : extras Matched from: Filename : /usr/lib/python2.7/site-packages/dnf/rpm/miscutils.py yum-3.4.3-168.el7.centos.noarch : RPM package installer/updater/manager Repo : base# yum provides \*/miscutils.py Loaded plugins: fastestmirror, priorities, versionlock Loading mirror speeds from cached hostfile * ovirt-4.3: mirror.rackspace.com python2-dnf-4.0.9.2-1.el7_6.noarch : Python 2 interface to DNF Repo : extras Matched from: Filename : /usr/lib/python2.7/site-packages/dnf/rpm/miscutils.py python2-dnf-4.0.9.2-2.el7_9.noarch : Python 2 interface to DNF Repo : extras Matched from: Filename : /usr/lib/python2.7/site-packages/dnf/rpm/miscutils.py yum-3.4.3-168.el7.centos.noarch : RPM package installer/updater/manager Repo : base Matched from: Filename : /usr/lib/python2.7/site-packages/rpmUtils/miscutils.py yum-3.4.3-167.el7.centos.noarch : RPM package installer/updater/manager Repo : @base Matched from: Filename : /usr/lib/python2.7/site-packages/rpmUtils/miscutils.py Matched from: Filename : /usr/lib/python2.7/site-packages/rpmUtils/miscutils.py yum-3.4.3-167.el7.centos.noarch : RPM package installer/updater/manager Repo : @base Matched from:# yum provides \*/miscutils.py Loaded plugins: fastestmirror, priorities, versionlock Loading mirror speeds from cached hostfile * ovirt-4.3: mirror.rackspace.com python2-dnf-4.0.9.2-1.el7_6.noarch : Python 2 interface to DNF Repo : extras Matched from: Filename : /usr/lib/python2.7/site-packages/dnf/rpm/miscutils.py python2-dnf-4.0.9.2-2.el7_9.noarch : Python 2 interface to DNF Repo : extras Matched from: Filename : /usr/lib/python2.7/site-packages/dnf/rpm/miscutils.py yum-3.4.3-168.el7.centos.noarch : RPM package installer/updater/manager Repo : base Matched from: Filename : /usr/lib/python2.7/site-packages/rpmUtils/miscutils.py yum-3.4.3-167.el7.centos.noarch : RPM package installer/updater/manager Repo : @base Matched from: Filename : /usr/lib/python2.7/site-packages/rpmUtils/miscutils.py Filename : /usr/lib/python2.7/site-packages/rpmUtils/miscutils.py ckage installer/updater/manager Repo : @base Matched from: Filename : /usr/lib/python2.7/site-packages/rpmUtils/miscutils.py es/rpmUtils/miscutils.py -- Richard Chan

Hi, On Thu, Oct 28, 2021 at 1:49 PM Richard Chan <richard@treeboxsolutions.com> wrote:
Hello.,
Scenario: Upgrading from 4.3 to 4.4
Please provide more details. How do you upgrade? Do you follow some document/procedure? Which? At which point are you in?
Situation: When running engine-setup on the new (standalone) engine host I hit
2021-10-28 18:30:47,998+0800 DEBUG otopi.context context._executeMethod:127 Stage boot METHOD otopi.plugins.otopi.packagers.yumpackager.Plugin._boot 2021-10-28 18:30:47,999+0800 DEBUG otopi.plugins.otopi.packagers.yumpackager yumpackager._boot:187 Cannot initialize miniyum
Please check/share the setup log. Generally speaking, otopi does not try to init yum, unless dnf failed to init. I guess going forward we should completely remove yum support. It was left over from the time where we supported both. This would not have solved your current problem, only output a different error message. Thanks and best regards, -- Didi

On Thu, Oct 28, 2021 at 7:19 PM Yedidyah Bar David <didi@redhat.com> wrote:
Hi,
On Thu, Oct 28, 2021 at 1:49 PM Richard Chan <richard@treeboxsolutions.com> wrote:
Hello.,
Scenario: Upgrading from 4.3 to 4.4
Please provide more details. How do you upgrade?
Do you follow some document/procedure? Which? At which point are you in?
Situation: When running engine-setup on the new (standalone) engine host I hit
2021-10-28 18:30:47,998+0800 DEBUG otopi.context context._executeMethod:127 Stage boot METHOD otopi.plugins.otopi.packagers.yumpackager.Plugin._boot 2021-10-28 18:30:47,999+0800 DEBUG otopi.plugins.otopi.packagers.yumpackager yumpackager._boot:187 Cannot initialize miniyum
Please check/share the setup log.
Generally speaking, otopi does not try to init yum, unless dnf failed to init.
I guess going forward we should completely remove yum support. It was left over from the time where we supported both. This would not have solved your current problem, only output a different error message.
Thanks and best regards, -- Didi
I am trying this on a AlmaLinux 8 host; I see that otopi actually has hardcoded strings like "fedora" " centos" etc. I have set OTOPI_DNF_ENABLE=1 and so far have made it to the "Please confirm installation settings" phase. My bad - sorry for the noise. Just curious: will this affect installing hosts and general oVirt 4.4 operations like upgrades? So far so good... I will reach back if it hits other issues. -- Richard Chan

On Thu, Oct 28, 2021 at 2:40 PM Richard Chan <richard@treeboxsolutions.com> wrote:
On Thu, Oct 28, 2021 at 7:19 PM Yedidyah Bar David <didi@redhat.com> wrote:
Hi,
On Thu, Oct 28, 2021 at 1:49 PM Richard Chan <richard@treeboxsolutions.com> wrote:
Hello.,
Scenario: Upgrading from 4.3 to 4.4
Please provide more details. How do you upgrade?
Do you follow some document/procedure? Which? At which point are you in?
Situation: When running engine-setup on the new (standalone) engine host I hit
2021-10-28 18:30:47,998+0800 DEBUG otopi.context context._executeMethod:127 Stage boot METHOD otopi.plugins.otopi.packagers.yumpackager.Plugin._boot 2021-10-28 18:30:47,999+0800 DEBUG otopi.plugins.otopi.packagers.yumpackager yumpackager._boot:187 Cannot initialize miniyum
Please check/share the setup log.
Generally speaking, otopi does not try to init yum, unless dnf failed to init.
I guess going forward we should completely remove yum support. It was left over from the time where we supported both. This would not have solved your current problem, only output a different error message.
Thanks and best regards, -- Didi
I am trying this on a AlmaLinux 8 host; I see that otopi actually has hardcoded strings like "fedora" " centos" etc. I have set OTOPI_DNF_ENABLE=1 and so far have made it to the "Please confirm installation settings" phase.
My bad - sorry for the noise.
Just curious: will this affect installing hosts and general oVirt 4.4 operations like upgrades? So far so good... I will reach back if it hits other issues.
Indeed AlmaLinux support is at most partial. We had a few patches/threads about it, not sure about status. You might want to check this recent thread: [ovirt-devel] Re: [External] : Re: Need to complie kmod-cxgb3 Best regards, -- Didi
participants (2)
-
Richard Chan
-
Yedidyah Bar David