Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-26762 Package profile is not updated when overriding reposet to enabled
  3. SAT-28052

[DEV] Package profile is not updated when overriding reposet to enabled

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Hosts
    • Sprint 137, Sprint 138, Sprint 139

      Description of problem:

      When you register a host to the Satellite with the activation key that has some repository assigned to it which has Status set to disabled and then you try to override the reposet to enabled it seems that the Package profile on Satellite is not being updated because I am not able to install packages on the host via new All host page feature "Manage packages".

      The Install package job fails with the error:

      Failed to initialize: RuntimeError - Failed rendering template: error during rendering: No available packages found for search term 'name ^ (panda)'. Check the host's content view environments and already-installed packages.

       

      It can be fixed by either selecting `Refresh applicability` option in the host details kebab menu or just running `dnf list` command on the host so the problem is not in the search term as stated in the error message.

      How reproducible:

      Every time

      Is this issue a regression from an earlier version:

      No

      Steps to Reproduce:

      1. Register host to Sat with AK that has some repo assigned to it with Status `Disabled`

      2. In the Satellite UI try to override that reposet to enabled on that host

      3. Try to install some package via "Manage packages" option via the new All host page (Setting needs to be enabled for the new All host page to show)

      Actual behavior:
      Installing packages on host from the newly enabled reposet is not working.

      Expected behavior:
      Installing packages on host from the newly enabled reposet should work. The satellite should refresh Package profile while overriding reposet to enabled.

      Additional info:

      Tested on snap 67.

      satellite-6.16.0-0.5.stream.el9sat.noarch

      foreman-3.12.0-0.1.develop.20240712061714gite78bd15.el9sat.noarch

      katello-4.13.0-0.1.master.el9sat.noarch

      DEV Tracker for https://issues.redhat.com/browse/SAT-26762

              iballou@redhat.com Ian Ballou
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Jeremy Lenz Jeremy Lenz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: