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

hammer job-invocation create --feature katello_errata_install --inputs only installs 1 errata

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 6.13.1
    • Hammer
    • 0
    • False
    • Important
    • None
    • None
    • None
    • None

      Description of problem:
      Unable to install more than 1 errata via command `hammer job-invocation create --inputs` using either key=value pairs or valid json

      Version-Release number of selected component (if applicable):
      satellite-6.13.1

      How reproducible:
      Every time

      Steps to Reproduce:
      1. Register a system to a Satellite with 2 or more errata that are installable
      2. Try to install 2+ errata using the --inputs option
      3.

      Actual results:
      Only installs 1 of the listed errata

      Expected results:
      Should install all errata that are installable

      Additional info:
      Workaround:
      Adding the list of errata to a text file, comma separated, no spaces like:
      RHBA-2023:0001,RHSA-2023:0002,RHEA-2023:0003
      and referencing that file using the option '-input-file' in place of '-inputs' like the following:
      --input-files "errata=/tmp/test.txt"

      Full example:

      1. cat /tmp/test.txt
        RHBA-2023:1989,RHBA-2023:3486
      1. hammer job-invocation create --feature katello_errata_install --search-query "drone79.usersys.redhat.com" --input-files "errata=/tmp/test.txt"

      //From the template rendering we can see that the yum command being passed to the client is as follows:
      --------------
      #!/bin/bash

      1. Helper function that exits with a particular message and code.
        #
      2. Usage:
      3. exit_with_message "Could not do a thing" 2
        #
        exit_with_message () {
        echo "${1}, exiting..."
        exit $2
        }
      1. Action
        yum -y update-minimal --advisory="RHBA-2023:1989 --advisory=RHBA-2023:3486"
        RETVAL=$?
        [ $RETVAL -eq 0 ] || exit_with_message "Package action failed" $RETVAL
        --------------

          There are no Sub-Tasks for this issue.

              ofedoren@redhat.com Oleh Fedorenko
              jira-bugzilla-migration RH Bugzilla Integration
              Peter Ondrejka Peter Ondrejka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: