RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1708939 - dnf log is full of errors from deprecated variables in /etc/yum.repos.d/redhat.repo
Summary: dnf log is full of errors from deprecated variables in /etc/yum.repos.d/redha...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.0
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: rc
: 8.0
Assignee: Marek Blaha
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On: 1681084 1696428 1709872
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-11 19:31 UTC by Tom Gugel
Modified: 2025-01-24 21:00 UTC (History)
8 users (show)

Fixed In Version: subscription-manager-1.25.13-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:38:37 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4460 0 None None None 2020-11-04 01:38:57 UTC

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


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