Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnfpayload: do not try to contact disabled repo (#1470552) #1145

Merged
merged 1 commit into from Aug 14, 2017
Merged

dnfpayload: do not try to contact disabled repo (#1470552) #1145

merged 1 commit into from Aug 14, 2017

Conversation

dedekind
Copy link
Contributor

@dedekind dedekind commented Aug 11, 2017

This patch fixes a regression introduced by:

79e66d2 Fix Anaconda forces payload restart when network (not)change (#1373449)

When anaconda tries to build the repositories MD5 cache, it mistakenly
iterates over all the repositories it is aware about, ever the disabled ones.

The end result is that it tries to reach the default disabled repositories from
"/etc/anaconda.repos.d/", for example
"https://codecs.fedoraproject.org/openh264/$releasever/$basearch/".

If the user is in a private intranet and the internet is not reachable, this
may lead to very long delays related to long dnf timeouts.

The fix is to only build the MD5 cache for the enabled repositories and leave
the disabled ones alone.

Resolves Fedora bug #1470552 in the RedHat bugzilla.

Signed-off-by: Artem Bityutskiy artem.bityutskiy@linux.intel.com

This patch fixes a regression introduced by:

79e66d2 Fix Anaconda forces payload restart when network (not)change (#1373449)

When anaconda tries to build the repositories MD5 cache, it mistakenly
iterates over all the repositories it is aware about, ever the disabled ones.

The end result is that it tries to reach the default disabled repositories from
"/etc/anaconda.repos.d/", for example
"https://codecs.fedoraproject.org/openh264/$releasever/$basearch/".

If the user is in a private intranet and the internet is not reachable, this
may lead to very long delays related to long dnf timeouts.

The fix is to only build the MD5 cache for the enabled repositories and leave
the disabled ones alone.

Resolves: rhbz#1470552

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
@dedekind dedekind changed the title dnfpayload: do not try to contact disabled repo dnfpayload: do not try to contact disabled repo (#1470552) Aug 11, 2017
Copy link
Contributor

@poncovka poncovka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for the fix :-)

Copy link
Contributor

@M4rtinK M4rtinK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also looks good to me and thanks a well! :)

@M4rtinK M4rtinK merged commit 939708f into rhinstaller:master Aug 14, 2017
@jkonecny12
Copy link
Member

Thank you much for this patch 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants