Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-5621

[RFE] Make repository's (compare_providers_)priority yum option configurable in Satellite

XMLWordPrintable

      Description of problem:
      TL;DR: Have centralised setting for yum/dnf repository option compare_providers_priority (yum) / priority (dnf), for each repo.

      User story: a customer wants to prefer installing packages (as dependency ones) from some repositories rather than from others. Say if package abc is available in EPEL and depends on python3-blah library both in EPEL and RHEL, they want the python3-blah package to be installed from RHEL repo due to the priority.

      That is achieved by compare_providers_priority (yum) / priority (dnf) repository option (see "man 5 yum.conf") - but that is on client basis, where one has to manually modify /etc/yum.repos.d/redhat.repo for each repo on each system. Manual, error prone.

      Due to the repetitive+manual change on each host of supposedly same priorities for the same repo, it is requested to configure this centrally from Satellite.

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

      How reproducible:
      100%

      Steps to Reproduce:
      1. No way to centrally define repo variables compare_providers_priority (yum) / priority (dnf) to /etc/yum.repos.d/redhat.repo .

      Actual results:
      No such feature.

      Expected results:

      • a repository object to have configurable option "repo priority", configurable via WebUI or hammer or API, acceptable values are Int from range 1-99.
      • (only!) when the value is set, sub-man refresh (or similar operation that modifies redhat.repo file) on a client will set to this repository compare_providers_priority (rhel7) or priority (rhel8+) to this value
      • the setting of a root repo will be applied to all its clones in any CV
      • unsetting the value for some repo means "sub-man refresh" removes the setting for any (cloned) repo on that client in yum.repos.d/redhat.repo

      Additional info:

            jira-bugzilla-migration RH Bugzilla Integration
            rhn-support-pmoravec Pavel Moravec
            RH Bugzilla Integration RH Bugzilla Integration
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: