Description of problem: The subscription-manager package is missing from the oVirt Node image and cannot be registered to katello/satellite without manually installing the package and matching the package version with the related packages from /etc/dnf/plugins/versionlock.list Version-Release number of selected component (if applicable): oVirt Node 4.4.8 How reproducible: Fresh install ovirt node host Steps to Reproduce: 1. Install ovirt node host 2. Try to register the host to katello/satellite content management system 3. Actual results: Fails because the package is not present on the host. Expected results: To be able to join a host to katello/satellite without manual intervention on host due to versionlock.list and includepkgs restrictions. Additional info: If you want to manually install the package you need to inspect /etc/dnf/plugins/versionlock.list file and add an extra lock for the subscription-manager package with the same version as python3-subscription-manager-rhsm* otherwise you risk to hit package version conflicts. FRESH INSTALL: [root@ovirt-bl-1 ~]# grep "subscription-manager" /etc/dnf/plugins/versionlock.list python3-subscription-manager-rhsm-1.28.21-2.el8.x86_64 subscription-manager-rhsm-certificates-1.28.21-2.el8.x86_64 WORKAROUND: Edit /etc/yum.repos.d/node-optional.repo and modify on [onn-baseos] repository the includespkgs to include subscription-manager [root@ovirt-bl-1 ~]# cat /etc/yum.repos.d/node-optional.repo # imgbased: set-enabled [onn-baseos] name = oVirt Node Optional packages from CentOS Stream $releasever - BaseOS mirrorlist = http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=BaseOS&infra=$infra gpgcheck = 1 enabled = 1 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial includepkgs = fcoe-utils subscription-manager [root@ovirt-bl-1 ~]# dnf makecache [root@ovirt-bl-1 ~]# grep "subscription-manager" /etc/dnf/plugins/versionlock.list python3-subscription-manager-rhsm-1.28.21-2.el8.x86_64 subscription-manager-rhsm-certificates-1.28.21-2.el8.x86_64 [root@ovirt-bl-1 ~]# dnf versionlock subscription-manager-1.28.21-2.el8 Updating Subscription Management repositories. ... Adding versionlock on: subscription-manager-0:1.28.21-2.el8.* [root@ovirt-bl-1 ~]# grep "subscription-manager" /etc/dnf/plugins/versionlock.list python3-subscription-manager-rhsm-1.28.21-2.el8.x86_64 subscription-manager-rhsm-certificates-1.28.21-2.el8.x86_64 subscription-manager-0:1.28.21-2.el8.* [root@ovirt-bl-1 ~]# dnf install -y subscription-manager
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.
After thinking a bit about it, maybe better to do as in the workaround and just make subscription-manager available in onn-baseos repo
(In reply to Sandro Bonazzola from comment #3) > After thinking a bit about it, maybe better to do as in the workaround and > just make subscription-manager available in onn-baseos repo OK, going to modify the fix, so the package will be available for installation, but won't be installed by default.
Test Result: Package "subscription-manager" still cannot be installed from onn-baseos repository. Move it to "ASSIGNED" Test Version: ovirt-node-ng-installer-4.4.10-2021122723.el8.iso Test steps: 1. Install ovirt-node-ng-installer-4.4.10-2021122723.el8.iso 2. Check package subscription-manager with host, no this package. 3. # vi /etc/yum.repos.d/node-optional.repo # imgbased: set-enabled [onn-baseos] name = oVirt Node Optional packages from CentOS Stream $releasever - BaseOS mirrorlist = http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=BaseOS&infra=$infra gpgcheck = 1 enabled = 1 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial includepkgs = fcoe-utils subscription-manager 4. # dnf makecache Ceph packages for x86_64 20 kB/s | 329 kB 00:16 oVirt Node Optional packages from CentOS Stream 8 - BaseOS 8.9 MB/s | 16 MB 00:01 oVirt 4.4 Pre-Release 12 kB/s | 389 kB 00:33 Latest oVirt 4.4 Release 437 kB/s | 2.6 MB 00:06 Extra Packages for Enterprise Linux 8 - x86_64 788 kB/s | 11 MB 00:14 CentOS-8 - Gluster 8 75 kB/s | 77 kB 00:01 virtio-win builds roughly matching what will be shipped in upcoming RHEL 25 kB/s | 66 kB 00:02 Copr repo for EL8_collection owned by sbonazzo 104 kB/s | 244 kB 00:02 Copr repo for gluster-ansible owned by sac 236 B/s | 7.3 kB 00:31 Advanced Virtualization CentOS Stream packages for x86_64 102 kB/s | 207 kB 00:02 CentOS-8 Stream - oVirt 4.4 612 kB/s | 1.1 MB 00:01 CentOS-8 - OpsTools - collectd 128 kB/s | 149 kB 00:01 CentOS-8 - NFV OpenvSwitch 81 kB/s | 96 kB 00:01 OpenStack Victoria Repository 120 kB/s | 3.7 MB 00:31 Metadata cache created. 6. # grep "subscription-manager" /etc/dnf/plugins/versionlock.list subscription-manager-rhsm-certificates-1.28.21-3.el8.x86_64 python3-subscription-manager-rhsm-1.28.21-3.el8.x86_64 7. # dnf versionlock subscription-manager-1.28.21-2.el8 Last metadata expiration check: 0:03:12 ago on Fri 31 Dec 2021 12:38:09 PM CST. Adding versionlock on: subscription-manager-0:1.28.21-2.el8.* 8. # grep "subscription-manager" /etc/dnf/plugins/versionlock.list subscription-manager-rhsm-certificates-1.28.21-3.el8.x86_64 python3-subscription-manager-rhsm-1.28.21-3.el8.x86_64 subscription-manager-0:1.28.21-2.el8.* 9. # dnf install -y subscription-manager Last metadata expiration check: 0:03:49 ago on Fri 31 Dec 2021 12:38:09 PM CST. Error: Problem: package subscription-manager-1.28.21-2.el8.x86_64 requires usermode, but none of the providers can be installed - conflicting requests - package usermode-1.113-1.el8.x86_64 is filtered out by exclude filtering - package usermode-1.113-2.el8.x86_64 is filtered out by exclude filtering (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.
(In reply to Wei Wang from comment #6) > Test Result: > Package "subscription-manager" still cannot be installed from onn-baseos > repository. Move it to "ASSIGNED" > > Test Version: > ovirt-node-ng-installer-4.4.10-2021122723.el8.iso > > Test steps: > 1. Install ovirt-node-ng-installer-4.4.10-2021122723.el8.iso > 2. Check package subscription-manager with host, no this package. > 3. # vi /etc/yum.repos.d/node-optional.repo > # imgbased: set-enabled > [onn-baseos] > name = oVirt Node Optional packages from CentOS Stream $releasever - BaseOS > mirrorlist = > http://mirrorlist.centos.org/ > ?release=$stream&arch=$basearch&repo=BaseOS&infra=$infra > gpgcheck = 1 > enabled = 1 > gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial > includepkgs = fcoe-utils subscription-manager > > 4. # dnf makecache > Ceph packages for x86_64 > 20 kB/s | 329 kB 00:16 > oVirt Node Optional packages from CentOS Stream 8 - BaseOS > 8.9 MB/s | 16 MB 00:01 > oVirt 4.4 Pre-Release > 12 kB/s | 389 kB 00:33 > Latest oVirt 4.4 Release > 437 kB/s | 2.6 MB 00:06 > Extra Packages for Enterprise Linux 8 - x86_64 > 788 kB/s | 11 MB 00:14 > CentOS-8 - Gluster 8 > 75 kB/s | 77 kB 00:01 > virtio-win builds roughly matching what will be shipped in upcoming RHEL > 25 kB/s | 66 kB 00:02 > Copr repo for EL8_collection owned by sbonazzo > 104 kB/s | 244 kB 00:02 > Copr repo for gluster-ansible owned by sac > 236 B/s | 7.3 kB 00:31 > Advanced Virtualization CentOS Stream packages for x86_64 > 102 kB/s | 207 kB 00:02 > CentOS-8 Stream - oVirt 4.4 > 612 kB/s | 1.1 MB 00:01 > CentOS-8 - OpsTools - collectd > 128 kB/s | 149 kB 00:01 > CentOS-8 - NFV OpenvSwitch > 81 kB/s | 96 kB 00:01 > OpenStack Victoria Repository > 120 kB/s | 3.7 MB 00:31 > Metadata cache created. > > 6. # grep "subscription-manager" /etc/dnf/plugins/versionlock.list > subscription-manager-rhsm-certificates-1.28.21-3.el8.x86_64 > python3-subscription-manager-rhsm-1.28.21-3.el8.x86_64 > > 7. # dnf versionlock subscription-manager-1.28.21-2.el8 > Last metadata expiration check: 0:03:12 ago on Fri 31 Dec 2021 12:38:09 PM > CST. > Adding versionlock on: subscription-manager-0:1.28.21-2.el8.* > > 8. # grep "subscription-manager" /etc/dnf/plugins/versionlock.list > subscription-manager-rhsm-certificates-1.28.21-3.el8.x86_64 > python3-subscription-manager-rhsm-1.28.21-3.el8.x86_64 > subscription-manager-0:1.28.21-2.el8.* > > 9. # dnf install -y subscription-manager > Last metadata expiration check: 0:03:49 ago on Fri 31 Dec 2021 12:38:09 PM > CST. > Error: > Problem: package subscription-manager-1.28.21-2.el8.x86_64 requires > usermode, but none of the providers can be installed > - conflicting requests > - package usermode-1.113-1.el8.x86_64 is filtered out by exclude filtering > - package usermode-1.113-2.el8.x86_64 is filtered out by exclude filtering > (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to > use not only best candidate packages) The issue seems to be that the node-optional.repo is currently only being installed for the final (GA) releases, thus testing ones i.e. RC/nightly etc. won't work. Please open a separate bug for this, and add the current bug as being dependent on that new one.
As a workaround, if pre-GA release is used, one can manually copy the node-optional.repo file from the ovirt-release package to the /etc/yum.repos.d/ directory. I.e. for the 4.4 RC : cp /usr/share/ovirt-release44-pre/node-optional.repo /etc/yum.repos.d/
(In reply to Lev Veyde from comment #8) > (In reply to Wei Wang from comment #6) > > Test Result: > > Package "subscription-manager" still cannot be installed from onn-baseos > > repository. Move it to "ASSIGNED" > > > > Test Version: > > ovirt-node-ng-installer-4.4.10-2021122723.el8.iso > > > > Test steps: > > 1. Install ovirt-node-ng-installer-4.4.10-2021122723.el8.iso > > 2. Check package subscription-manager with host, no this package. > > 3. # vi /etc/yum.repos.d/node-optional.repo > > # imgbased: set-enabled > > [onn-baseos] > > name = oVirt Node Optional packages from CentOS Stream $releasever - BaseOS > > mirrorlist = > > http://mirrorlist.centos.org/ > > ?release=$stream&arch=$basearch&repo=BaseOS&infra=$infra > > gpgcheck = 1 > > enabled = 1 > > gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial > > includepkgs = fcoe-utils subscription-manager > > > > 4. # dnf makecache > > Ceph packages for x86_64 > > 20 kB/s | 329 kB 00:16 > > oVirt Node Optional packages from CentOS Stream 8 - BaseOS > > 8.9 MB/s | 16 MB 00:01 > > oVirt 4.4 Pre-Release > > 12 kB/s | 389 kB 00:33 > > Latest oVirt 4.4 Release > > 437 kB/s | 2.6 MB 00:06 > > Extra Packages for Enterprise Linux 8 - x86_64 > > 788 kB/s | 11 MB 00:14 > > CentOS-8 - Gluster 8 > > 75 kB/s | 77 kB 00:01 > > virtio-win builds roughly matching what will be shipped in upcoming RHEL > > 25 kB/s | 66 kB 00:02 > > Copr repo for EL8_collection owned by sbonazzo > > 104 kB/s | 244 kB 00:02 > > Copr repo for gluster-ansible owned by sac > > 236 B/s | 7.3 kB 00:31 > > Advanced Virtualization CentOS Stream packages for x86_64 > > 102 kB/s | 207 kB 00:02 > > CentOS-8 Stream - oVirt 4.4 > > 612 kB/s | 1.1 MB 00:01 > > CentOS-8 - OpsTools - collectd > > 128 kB/s | 149 kB 00:01 > > CentOS-8 - NFV OpenvSwitch > > 81 kB/s | 96 kB 00:01 > > OpenStack Victoria Repository > > 120 kB/s | 3.7 MB 00:31 > > Metadata cache created. > > > > 6. # grep "subscription-manager" /etc/dnf/plugins/versionlock.list > > subscription-manager-rhsm-certificates-1.28.21-3.el8.x86_64 > > python3-subscription-manager-rhsm-1.28.21-3.el8.x86_64 > > > > 7. # dnf versionlock subscription-manager-1.28.21-2.el8 > > Last metadata expiration check: 0:03:12 ago on Fri 31 Dec 2021 12:38:09 PM > > CST. > > Adding versionlock on: subscription-manager-0:1.28.21-2.el8.* > > > > 8. # grep "subscription-manager" /etc/dnf/plugins/versionlock.list > > subscription-manager-rhsm-certificates-1.28.21-3.el8.x86_64 > > python3-subscription-manager-rhsm-1.28.21-3.el8.x86_64 > > subscription-manager-0:1.28.21-2.el8.* > > > > 9. # dnf install -y subscription-manager > > Last metadata expiration check: 0:03:49 ago on Fri 31 Dec 2021 12:38:09 PM > > CST. > > Error: > > Problem: package subscription-manager-1.28.21-2.el8.x86_64 requires > > usermode, but none of the providers can be installed > > - conflicting requests > > - package usermode-1.113-1.el8.x86_64 is filtered out by exclude filtering > > - package usermode-1.113-2.el8.x86_64 is filtered out by exclude filtering > > (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to > > use not only best candidate packages) > > The issue seems to be that the node-optional.repo is currently only being > installed for the final (GA) releases, thus testing ones i.e. RC/nightly > etc. won't work. > > Please open a separate bug for this, and add the current bug as being > dependent on that new one. Report a new bug https://bugzilla.redhat.com/show_bug.cgi?id=2036795 to trace it.
Test Version ovirt-node-ng-installer-4.4.10-2022011723.el8.iso Test Steps: According to bug 2036795 Result: # dnf install -y subscription-manager Last metadata expiration check: 0:01:18 ago on Wed 19 Jan 2022 09:58:56 AM CST. Error: Problem: package subscription-manager-1.28.21-2.el8.x86_64 requires python3-syspurpose = 1.28.21-2.el8, but none of the providers can be installed - conflicting requests - package python3-syspurpose-1.28.21-2.el8.x86_64 is filtered out by exclude filtering (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages) A similar bug is detected. This bug is not fixed. Change it to status "ASSIGNED"
I re-tested it with the current latest ovirt-node-ng ( https://resources.ovirt.org/pub/ovirt-4.4/iso/ovirt-node-ng-installer/4.4.10-2022020214/el8/ovirt-node-ng-installer-4.4.10-2022020214.el8.iso ) and again it works for me: # yum install subscription-manager Last metadata expiration check: 0:02:41 ago on Tue 08 Feb 2022 03:00:55 PM UTC. Dependencies resolved. ================================================================================================================================================================= Package Architecture Version Repository Size ================================================================================================================================================================= Installing: subscription-manager x86_64 1.28.25-1.el8 onn-baseos 1.2 M Installing dependencies: dnf-plugin-subscription-manager x86_64 1.28.25-1.el8 onn-baseos 309 k python3-librepo x86_64 1.14.2-1.el8 onn-baseos 53 k usermode x86_64 1.113-2.el8 onn-baseos 202 k Transaction Summary ================================================================================================================================================================= Install 4 Packages Total download size: 1.7 M Installed size: 5.4 M Is this ok [y/N]: y Downloading Packages: (1/4): python3-librepo-1.14.2-1.el8.x86_64.rpm 611 kB/s | 53 kB 00:00 (2/4): dnf-plugin-subscription-manager-1.28.25-1.el8.x86_64.rpm 2.3 MB/s | 309 kB 00:00 (3/4): subscription-manager-1.28.25-1.el8.x86_64.rpm 4.1 MB/s | 1.2 MB 00:00 (4/4): usermode-1.113-2.el8.x86_64.rpm 935 kB/s | 202 kB 00:00 ----------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 2.3 MB/s | 1.7 MB 00:00 oVirt Node Optional packages from CentOS Stream 8 - BaseOS 1.0 MB/s | 1.6 kB 00:00 Importing GPG key 0x8483C65D: Userid : "CentOS (CentOS Official Signing Key) <security>" Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D From : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial Is this ok [y/N]: y Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : usermode-1.113-2.el8.x86_64 1/4 Installing : python3-librepo-1.14.2-1.el8.x86_64 2/4 Installing : dnf-plugin-subscription-manager-1.28.25-1.el8.x86_64 3/4 Running scriptlet: subscription-manager-1.28.25-1.el8.x86_64 4/4 Installing : subscription-manager-1.28.25-1.el8.x86_64 4/4 Running scriptlet: subscription-manager-1.28.25-1.el8.x86_64 4/4 Verifying : dnf-plugin-subscription-manager-1.28.25-1.el8.x86_64 1/4 Verifying : python3-librepo-1.14.2-1.el8.x86_64 2/4 Verifying : subscription-manager-1.28.25-1.el8.x86_64 3/4 Verifying : usermode-1.113-2.el8.x86_64 4/4 Persisting: usermode-1.113-2.el8.x86_64.rpm Persisting: python3-librepo-1.14.2-1.el8.x86_64.rpm Persisting: subscription-manager-1.28.25-1.el8.x86_64.rpm Persisting: dnf-plugin-subscription-manager-1.28.25-1.el8.x86_64.rpm Installed: dnf-plugin-subscription-manager-1.28.25-1.el8.x86_64 python3-librepo-1.14.2-1.el8.x86_64 subscription-manager-1.28.25-1.el8.x86_64 usermode-1.113-2.el8.x86_64 Complete!
Also, not sure what is the ISO that you used, since the previous GA one was: https://resources.ovirt.org/pub/ovirt-4.4/iso/ovirt-node-ng-installer/4.4.10-2022011814/el8/ovirt-node-ng-installer-4.4.10-2022011814.el8.iso So where you have taken the ovirt-node-ng-installer-4.4.10-2022011723.el8.iso from?
(In reply to Lev Veyde from comment #14) > Also, not sure what is the ISO that you used, since the previous GA one was: > > https://resources.ovirt.org/pub/ovirt-4.4/iso/ovirt-node-ng-installer/4.4.10- > 2022011814/el8/ovirt-node-ng-installer-4.4.10-2022011814.el8.iso > > So where you have taken the > ovirt-node-ng-installer-4.4.10-2022011723.el8.iso from? I download the iso from https://jenkins.ovirt.org/job/ovirt-node-ng-image_4.4_build-artifacts-el8-x86_64/97/artifact/exported-artifacts/ovirt-node-ng-installer-4.4.10-2022011723.el8.iso But now I cannot find it from https://jenkins.ovirt.org/job/ovirt-node-ng-image_4.4_build-artifacts-el8-x86_64/ I will test it again with the iso ovirt-node-ng-installer-4.4.10-2022011814.el8.iso later after today's new build task.
Test with ovirt-node-ng-installer-4.4.10-2022020214.el8.iso, the subscription-manager can be installed successfully. This bug is fixed, move it to "VERIFIED"