Project

General

Profile

Bug #34490

Updated by Ryan Verdile about 2 years ago

Red Hat Repositories have a `find_repository` method that finds a repository by filtering all the repositories by prouduct_id, content_id, releasevar, and arch. This is problematic when the arch setting is changed, because in certain cases that repository can no longer be found. This can prevent disabling a repository and cause the ability to create a duplicate repository. 

 The arch setting is filtered out when using certain repos e.g. Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs, because it is not needed as a substitution in the content url (see here: https://projects.theforeman.org/issues/28644). When this happens, repositories from this set are always handled as having a "noarch" arch setting. With this, if you change the arch setting to "x86_64" for a repository from this set, that repository cannot be disabled and is also not detected as an enabled repository (and so you can enable this repository a second time).

Back