Bug 1236745

Summary: The dnf local plugin complains incessantly if you have createrepo disabled
Product: [Fedora] Fedora Reporter: Chris Siebenmann <cks-rhbugzilla>
Component: dnf-plugins-extrasAssignee: Igor Gnatenko <ignatenko>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: ignatenko, jkadlcik, jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-30 06:56:49 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:

Description Chris Siebenmann 2015-06-29 21:30:54 UTC
Description of problem:

If you edit /etc/dnf/plugins/local.conf to set 'enabled = false' in the
[createrepo] section, dnf will constantly complain:

   Failed to synchronize cache for repo '_local' from 'file:///var/lib/dnf/plugins/local': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried, disabling.

It should be silent about this since this is a valid configuration.
As the comments in local.conf say, this is useful if you just want
to keep a copy of all packages you've updated to and so on (so that,
for example, you can roll back to previous package updates even though
Fedora has removed them from the repos, as Fedora does).

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

python-dnf-plugins-extras-local-0.0.8-1.fc22.noarch
dnf-1.0.1-2.fc22.noarch

How reproducible:

100%

Steps to Reproduce:
1. 'dnf install python-dnf-plugins-extras-local'
2. immediately edit /etc/dnf/plugins/local.conf to set 'enabled = false'
   in the [createrepo] section
3. do any dnf operation, eg 'dnf check-update'. Watch the complaints.

Actual results:

Dnf complains with the error message above.

Expected results:

No complaints.

Comment 1 Radek Holy 2015-06-30 06:56:49 UTC
I believe that this is not specific to the "enabled = false" setting. In that case, it's a duplicate of the bug 1209862 in the plugin.

*** This bug has been marked as a duplicate of bug 1209862 ***