Bug 1708939

Summary: dnf log is full of errors from deprecated variables in /etc/yum.repos.d/redhat.repo
Product: Red Hat Enterprise Linux 8 Reporter: Tom Gugel <accts>
Component: subscription-managerAssignee: Marek Blaha <mblaha>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: medium    
Version: 8.0CC: accts, arpandey, dmach, james.antill, jsefler, lmiksik, mblaha, wpoteat
Target Milestone: rcKeywords: Triaged
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: subscription-manager-1.25.13-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 01:38:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1681084, 1696428, 1709872    
Bug Blocks:    

Description Tom Gugel 2019-05-11 19:31:05 UTC
Description of problem:
dnf.log is full of the 2 error messages 

Unknown configuration option: ui_repoid_vars = basearch in /etc/yum.repos.d/redhat.repo

Unknown configuration option: enable_metadata = 0 in /etc/yum.repos.d/redhat.repo

At least ui_repoid_vars is deprecated according to RHEL 8 release notes.
Could not find anything on enable_metadata.

It is annoying to have the log full and scattered with these messages


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


How reproducible:
On every action you take with dnf because this is in redhat.repo for all the different repos stored there.


Actual results: error messages


Expected results: if both are deprecated this should be removed from redhat.repo or the error messages discarded. Is it safe to discard them on own action from redhat.repo?


Additional info:

Comment 1 Daniel Mach 2019-05-20 11:16:21 UTC
It is safe to remove ui_repoid_vars from the config file, but it will probably be rewritten by subscription manager as this config is generated.
We're working with the subscription management team on removing it from the files.

The enable_metadata option is used by PackageKit and we're going to fix the issue on our end.

Comment 2 Tom Gugel 2019-05-24 06:41:54 UTC
Ok, thanks for the response. If this will all be fixed on your side/the subscription management team there is no need to do this manually now.
Especially if there is the danger of being rewritten all the time.

Comment 8 Daniel Mach 2019-07-30 10:21:34 UTC
The fix is part of subscription-manager-1.25.13-1.el8

Comment 13 Archana Pandey 2020-07-17 11:05:43 UTC
Reproduced on subscription-manager-1.23.8-35.el8.x86_64

Version-Release number of selected component (if applicable):
[root@hpe-dl380pgen8-02-vm-3 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.1.16-1
subscription management rules: 5.40
subscription-manager: 1.23.8-35.el8

steps to reproduce: 

[root@hpe-dl380pgen8-02-vm-3 ~]# yum -v install abcd
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, uploadprofile
Updating Subscription Management repositories.
DNF version: 4.0.9
cachedir: /var/cache/dnf
Unknown configuration option: enable_metadata = 0 in /etc/yum.repos.d/redhat.repo
Unknown configuration option: enable_metadata = 0 in /etc/yum.repos.d/redhat.repo
Unknown configuration option: ui_repoid_vars = releasever in /etc/yum.repos.d/redhat.repo                 <<<<<<<<<<<<<<< Unknown configuration option logs
Unknown configuration option: enable_metadata = 0 in /etc/yum.repos.d/redhat.repo                                  
Unknown configuration option: ui_repoid_vars = releasever in /etc/yum.repos.d/redhat.repo
Unknown configuration option: enable_metadata = 0 in /etc/yum.repos.d/redhat.repo
Unknown configuration option: ui_repoid_vars = releasever in /etc/yum.repos.d/redhat.repo
Unknown configuration option: enable_metadata = 0 in /etc/yum.repos.d/redhat.repo
Unknown configuration option: enable_metadata = 0 in /etc/yum.repos.d/redhat.repo
repo: using cache for: rhel-8-for-x86_64-appstream-rpms
not found other for: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
not found deltainfo for: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-appstream-rpms: using metadata from Fri 17 Jul 2020 04:18:52 AM EDT.
repo: using cache for: rhel-8-for-x86_64-baseos-rpms
not found other for: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
not found modules for: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
not found deltainfo for: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
rhel-8-for-x86_64-baseos-rpms: using metadata from Thu 16 Jul 2020 05:24:37 PM EDT.
Last metadata expiration check: 0:07:57 ago on Fri 17 Jul 2020 06:00:03 AM EDT.
Completion plugin: Generating completion cache...
No match for argument: abcd
Error: Unable to find a match

=====================================================================================================================

verifying against latest sub-man subscription-manager-1.27.9-1.el8.x86_64

Version-Release number of selected component (if applicable):
[root@ibm-x3650m4-01-vm-08 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.1.16-1
subscription management rules: 5.40
subscription-manager: 1.27.9-1.el8

steps to verification:
[root@ibm-x3650m4-01-vm-08 ~]# rpm -q --changelog subscription-manager | grep 'ui_repoid_vars'
- Generate 'ui_repoid_vars' only when running with YUM. (dmach)

[root@ibm-x3650m4-01-vm-08 ~]# cat /etc/yum.repos.d/redhat.repo | grep ui_repoid_vars
[root@ibm-x3650m4-01-vm-08 ~]# 

[root@ibm-x3650m4-01-vm-08 ~]# yum -v install package
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, uploadprofile
Updating Subscription Management repositories.
YUM version: 4.2.23
cachedir: /var/cache/dnf
User-Agent: constructed: 'libdnf (Red Hat Enterprise Linux 8.3; generic; Linux.x86_64)'
repo: using cache for: rhel-8-for-x86_64-appstream-beta-rpms
rhel-8-for-x86_64-appstream-beta-rpms: using metadata from Tue 07 Jul 2020 03:56:15 PM EDT.
repo: using cache for: rhel-8-for-x86_64-baseos-beta-rpms
rhel-8-for-x86_64-baseos-beta-rpms: using metadata from Tue 07 Jul 2020 03:57:06 PM EDT.
Last metadata expiration check: 0:20:19 ago on Fri 17 Jul 2020 06:25:24 AM EDT.
Completion plugin: Generating completion cache...
No match for argument: package
Error: Unable to find a match: package
[root@ibm-x3650m4-01-vm-08 ~]# 

[root@ibm-x3650m4-01-vm-08 ~]# dnf -v install package
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, uploadprofile
Updating Subscription Management repositories.
DNF version: 4.2.23
cachedir: /var/cache/dnf
User-Agent: constructed: 'libdnf (Red Hat Enterprise Linux 8.3; generic; Linux.x86_64)'
repo: using cache for: rhel-8-for-x86_64-appstream-beta-rpms
rhel-8-for-x86_64-appstream-beta-rpms: using metadata from Tue 07 Jul 2020 03:56:15 PM EDT.
repo: using cache for: rhel-8-for-x86_64-baseos-beta-rpms
rhel-8-for-x86_64-baseos-beta-rpms: using metadata from Tue 07 Jul 2020 03:57:06 PM EDT.
Last metadata expiration check: 0:22:01 ago on Fri 17 Jul 2020 06:25:24 AM EDT.
Completion plugin: Generating completion cache...
No match for argument: package
Error: Unable to find a match: package

[root@ibm-x3650m4-01-vm-08 ~]# cat /var/log/dnf.log | grep ui_repoid_vars
[root@ibm-x3650m4-01-vm-08 ~]# cat /var/log/dnf.log | grep enable_metadata


Verified that Unknown configuration option logs not present in latest sub-man build.

Comment 16 errata-xmlrpc 2020-11-04 01:38:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (subscription-manager bug fix and enhancement update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2020:4460