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

Bug 2036795

Summary: in ovirt-node node-optional.repo is installed only for GA releases
Product: [oVirt] ovirt-release Reporter: Wei Wang <weiwang>
Component: ovirt-release-host-nodeAssignee: Lev Veyde <lveyde>
Status: CLOSED CURRENTRELEASE QA Contact: Wei Wang <weiwang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.4.10CC: arachman, cshao, lsvaty, lveyde, mavital, peyu, sanja, sbonazzo, weiwang, yaniwang
Target Milestone: ovirt-4.4.10Keywords: ZStream
Target Release: 4.4.10Flags: sbonazzo: ovirt-4.4+
sbonazzo: devel_ack+
cshao: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-24 16:27:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2006682    
Attachments:
Description Flags
issue log files none

Description Wei Wang 2022-01-04 02:09:54 UTC
Created attachment 1848763 [details]
issue log files

Description of problem:
According to https://bugzilla.redhat.com/show_bug.cgi?id=2006682 , installing package subscription-manager from onn-baseos repository, detecte the below dependence issue

# 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)


Version-Release number of selected component (if applicable):
ovirt-node-ng-installer-4.4.10-2021122723.el8.iso

How reproducible:
100%

Steps to Reproduce:
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


Actual results:
Package usermode is conflicted when installing subscription-manager from onn-baseos repository.

Expected results:
Package subscription-manager can be installed successfully from onn-baseos rpeo.


Additional info:

Comment 1 Lev Veyde 2022-01-04 09:56:02 UTC
That happens because currently the node-optional.repo is installed in /etc/yum.repos.d/ only for the GA releases of the oVirt node.

Thus i.e. the fix for BZ#2006682 wasn't visible, since a pre-release version of the oVirt node was used.

In order for this to work on pre-GA versions as well, the ovirt-release logic must be modified.

Comment 2 Wei Wang 2022-01-19 02:13:17 UTC
Test Version
ovirt-node-ng-installer-4.4.10-2022011723.el8.iso


Test Steps:
According to comment 0

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"

Comment 3 RHEL Program Management 2022-01-19 02:35:18 UTC
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.

Comment 4 Sandro Bonazzola 2022-01-19 17:31:56 UTC
(In reply to Wei Wang from comment #2)
> Test Version
> ovirt-node-ng-installer-4.4.10-2022011723.el8.iso
> 
> 
> Test Steps:
> According to comment 0
> 
> 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"

This seems to be irrelevant for this specific bug, and looks like an issue for reopening #2006682.
Here the issue tracked is the missing node-optional.repo in /etc/yum.repos.d/ for pre-release builds.

Comment 5 Wei Wang 2022-01-20 02:26:08 UTC
(In reply to Sandro Bonazzola from comment #4)
> (In reply to Wei Wang from comment #2)
> > Test Version
> > ovirt-node-ng-installer-4.4.10-2022011723.el8.iso
> > 
> > 
> > Test Steps:
> > According to comment 0
> > 
> > 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"
> 
> This seems to be irrelevant for this specific bug, and looks like an issue
> for reopening #2006682.
> Here the issue tracked is the missing node-optional.repo in
> /etc/yum.repos.d/ for pre-release builds.

Make sensce, this bug is fixed, move it to "VERIFIED"