Bug 1241507 - failovermethod=priority does not work
Summary: failovermethod=priority does not work
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 25
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Štěpán Smetana
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-09 11:02 UTC by Miroslav Suchý
Modified: 2016-11-29 10:00 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-29 10:00:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2015-07-09 11:02:18 UTC
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!

Comment 1 Honza Silhan 2015-07-29 13:52:55 UTC
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.

Comment 2 Miroslav Suchý 2015-07-29 14:02:08 UTC
Unfortunately I could not pass option to dnf. I can just create repo file, and then the installation happen via Ansible modules.

Comment 3 Miroslav Suchý 2016-05-27 06:47:10 UTC
Even with --setopt=fastestmirror=0 dnf produces the same error. And the problem is still persisten in dnf-1.1.9-1.fc23.noarch

Comment 4 Fedora Admin XMLRPC Client 2016-07-08 09:33:45 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora End Of Life 2016-07-19 20:11:16 UTC
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.

Comment 6 Jan Kurik 2016-07-26 05:05:08 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 7 W Agtail 2016-11-28 13:26:28 UTC
I also have the same problem. Using F25.

Comment 8 W Agtail 2016-11-29 09:13:46 UTC
(In reply to W Agtail from comment #7)
> I also have the same problem. Using F25.

Actually, I no longer require this option.

Comment 9 Igor Gnatenko 2016-11-29 10:00:45 UTC
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.


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