Bug 1961083 - Invalid configuration value: failovermethod=priority in repo config files
Summary: Invalid configuration value: failovermethod=priority in repo config files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Marek Blaha
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-17 08:00 UTC by Jan Vlug
Modified: 2021-09-24 20:32 UTC (History)
9 users (show)

Fixed In Version: dnf-4.9.0-1.fc36 dnf-4.9.0-1.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-23 11:52:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Vlug 2021-05-17 08:00:39 UTC
Description of problem:
Since my last dnf update, I get these warnings when running dnf commands:

Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/fedora.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/fedora.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/fedora.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/fedora-updates-modular.repo; Configuration: OptionBinding with id "failovermethod" does not exist

Version: dnf.noarch 4.7.0-1.fc34

Comment 1 Marek Blaha 2021-05-18 06:29:00 UTC
Hi, the `failovermethod` option is not supported by dnf. The option was already removed from the distribution versions of repository config files (package fedora-repos) quite long ago. Please remove the `failovermethod=priority` lines from your `/etc/yum.repos.d/fedora*.repo` files.

But the error message really is misleading and I'll try to improve / hide it. Thanks for reporting this.

Comment 2 Jan Vlug 2021-05-18 06:42:26 UTC
Thanks for you reply Marek, I have been upgrading Fedora since long, so it is very likely a leftover from past Fedora releases.

Comment 3 Marek Blaha 2021-06-17 08:40:14 UTC
This PR removes the misleading error message from the console: https://github.com/rpm-software-management/libdnf/pull/1276

Comment 4 Fedora Update System 2021-09-23 11:52:39 UTC
FEDORA-2021-e14e416a38 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2021-09-23 13:04:56 UTC
FEDORA-2021-a3a73697b8 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a3a73697b8

Comment 6 Fedora Update System 2021-09-23 19:41:53 UTC
FEDORA-2021-a3a73697b8 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a3a73697b8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a3a73697b8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-09-24 20:32:33 UTC
FEDORA-2021-a3a73697b8 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


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