Description of problem: In yum repo, you can have failover=priority which is BTW described here: https://docs.fedoraproject.org/en-US/Fedora_Core/3/html/Software_Management_Guide/sn-writing-repodefs.html This does not work with DNF at all. Version-Release number of selected component (if applicable): dnf-1.0.0-1.fc22.noarch How reproducible: always Steps to Reproduce: 1. # cat /etc/yum.repos.d/copr.repo [Copr] name=Copr failovermethod=priority baseurl=file:///var/lib/copr/public_html/results/msuchy/copr/fedora-$releasever-x86_64/ http://209.132.184.48/results/msuchy/copr/fedora-$releasever-x86_64/ https://copr-be.cloud.fedoraproject.org/results/msuchy/copr/fedora-$releasever-x86_64/ http://172.25.32.4/results/msuchy/copr/fedora-$releasever-x86_64/ enabled=1 gpgcheck=0 skip_if_unavailable=1 2. dnf install fedpkg-copr Actual results: # LC_ALL=C dnf install fedpkg-copr Last metadata expiration check performed 0:19:30 ago on Thu Jul 9 06:40:34 2015. Dependencies resolved. ==================================================================================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================================================================================== Installing: fedpkg-copr noarch 0.2-1.git.0.de92225.fc22 Copr 16 k Transaction Summary ==================================================================================================================================================================================================================== Install 1 Package Total download size: 16 k Installed size: 23 k Is this ok [y/N]: y Downloading Packages: [Errno 2] No such file or directory: u'/var/lib/copr/public_html/results/msuchy/copr/fedora-22-x86_64/fedpkg-copr-0.2-1.git.0.de92225.fc22/fedpkg-copr-0.2-1.git.0.de92225.fc22.noarch.rpm' Expected results: The same as yum-deprecated: LC_ALL=C yum-deprecated install fedpkg-copr Yum command has been deprecated, use dnf instead. See 'man dnf' and 'man yum2dnf' for more information. Resolving Dependencies --> Running transaction check ---> Package fedpkg-copr.noarch 0:0.2-1.git.0.de92225.fc22 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================================================================================== Installing: fedpkg-copr noarch 0.2-1.git.0.de92225.fc22 Copr 16 k Transaction Summary ==================================================================================================================================================================================================================== Install 1 Package Total size: 16 k Installed size: 23 k Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction (shutdown inhibited) Warning: RPMDB altered outside of yum. Installing : fedpkg-copr-0.2-1.git.0.de92225.fc22.noarch 1/1 Verifying : fedpkg-copr-0.2-1.git.0.de92225.fc22.noarch 1/1 Installed: fedpkg-copr.noarch 0:0.2-1.git.0.de92225.fc22 Complete!
Can you try try it with `--setopt=fastestmirror=0`, please. IMO it should already work in DNF by default. We don't randomize the urls.
Unfortunately I could not pass option to dnf. I can just create repo file, and then the installation happen via Ansible modules.
Even with --setopt=fastestmirror=0 dnf produces the same error. And the problem is still persisten in dnf-1.1.9-1.fc23.noarch
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle. Changing version to '25'.
I also have the same problem. Using F25.
(In reply to W Agtail from comment #7) > I also have the same problem. Using F25. Actually, I no longer require this option.
commit c5e24b3a5d90e0f5bf5d0202fc1d5ed981e22e6f Author: Michael Mraka <michael.mraka> Date: Fri Jul 22 12:48:13 2016 +0200 support failovermethod=priority config option It's already for quite some time in Rawhide.