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

The -y or --assumeyes option of foreman-maintain's packages update command does not work and halts for user input

XMLWordPrintable

    • Important
    • None

      Description of problem: Customer's concern is that they have been using below set of commands for monthly patching of their Satellite servers since many months but all of a sudden they got below error while running first mentioned command:

      1. satellite-maintain packages update -y --whitelist="packages-update-all-confirmation"

      ~~
      ERROR: Unrecognised option '--whitelist' // He never got this error earlier.
      ~~

      1. satellite-maintain upgrade run --target-version 6.9.z -y

      The reason why they were using the above set of commands [i.e, splitting the packages update and upgrade run] because it reduced the downtime as the second command stops all services before updating the packages. With this approach they used to reduce the downtime from ~20 min to ~10 min,

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

      • Red Hat Satellite 6.9

      How reproducible: Everytime

      Steps to Reproduce:

      1. Run the below command on satellite server to update the packages:

      1. satellite-maintain packages update -y --whitelist="packages-update-all-confirmation"

      ~~
      ERROR: Unrecognised option '--whitelist'
      ~~

      As per the code as the switches available, it is throwing the right error but as per customer, it used to work him for earlier versions:

      1. satellite-maintain packages update --help

      Usage:
      satellite-maintain packages update [OPTIONS] [PACKAGES] ...

      Parameters:
      [PACKAGES] ... packages to update

      Options:
      -y, --assumeyes Automatically answer yes for all questions
      -h, --help print help

      Actual results: Customer is getting error that '--whitelist' option is Unrecognised.

      Expected results: Customer should be able to run below command without error:

      1. satellite-maintain packages update -y --whitelist="packages-update-all-confirmation"

            ehelms@redhat.com Eric Helms
            jira-bugzilla-migration RH Bugzilla Integration
            Griffin Sullivan Griffin Sullivan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: