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

Katello install package jobs finish false positive with disabled reposet

XMLWordPrintable

    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • rubygem-smart_proxy_remote_execution_ssh-0.11.4
    • 0
    • Endeavour

      Description of problem:

      With the Satellite 6.16 when

      • I have a host registered (it does NOT matter if it is RHEL8 or RHEL9) to Satellite, and
      • the host has some repository set assigned to it, and
      • while the repository set has a status set to disabled

      I am able to run these REX jobs (Katello/Install Package - Katello Script Default and Katello/Install packages by search query - Katello Script Default) with false positive success.

       

      When running these jobs with some value (package name I want to install),

      these jobs succeed even though they do not install the desired package (which is not even wanted as the repository set is not enabled), but when inspecting the output of the job it is clearly a false positive.

      On 6.16.0 these jobs succeed (they should not) with the following output:

       1: Updating Subscription Management repositories.
       2:Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d".
        3: Package action failed, exiting...
        4:Exit status: 0

      On 6.15.4 these jobs fail (as they should) with the following output:

         1:Updating Subscription Management repositories.
         2:Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d".
         3:Package action failed, exiting...
         4:Exit status: 1
         5:StandardError: Job execution failed

      The main difference in these outputs is the exit status.

       

      How reproducible:

      100 % of the time

      Is this issue a regression from an earlier version:

      Yes.

      This behavior is not happening on the Satellite 6.15.4

      Steps to Reproduce:

      1. Have a REX enabled host registered to a Satellite with some repository set assigned to it

      2. Keep the repository set disabled

      3. Try to install some package that should be in that repository set (it should not be able to install it) via these REX jobs (Katello/Install Package - Katello Script Default and Katello/Install packages by search query - Katello Script Default)

      4. Observe false positive REX job result

      Actual behavior:
      The package install job is marked as successful

      Expected behavior:
      The package install job should not be marked as successful

      Additional info:

      Tested on the Satellite 6.16.0 snap 7

      satellite-6.16.0-2.el9sat.noarch
      foreman-3.12.0-1.el9sat.noarch
      katello-4.14.0-0.1.rc2.el9sat.noarch
      Red Hat Enterprise Linux release 9.4 (Plow)

            aruzicka@redhat.com Adam Ruzicka
            rhn-engineering-lvasina Ladislav Vasina
            Peter Ondrejka Peter Ondrejka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: