Description of problem: "foreman-maintain packages update" fails to update all packages with: ERROR: parameter 'PACKAGES ...': no value provided It should work similar way as "yum update" works. No parameter means all packages. Yet worse, there is explicit all packages for yum as "\*" But for foreman-maintain it needs to be escaped twice "\\*" Not obvious nor documented. Version-Release number of selected component (if applicable): @Satellite 6.6.0 Snap22 rubygem-foreman_maintain-0.4.9-1.el7sat.noarch How reproducible: deterministic Steps to Reproduce: 1. # foreman-maintain packages update ERROR: parameter 'PACKAGES ...': no value provided See: 'foreman-maintain packages update --help' Actual results: "foreman-maintain packages update" dourly expects a parameter Expected results: "foreman-maintain packages update" treats no parameter the same way as "yum update" does Additional info: Undocumented workaround is # foreman-maintain packages update \\*
Created redmine issue https://projects.theforeman.org/issues/28097 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28097 has been resolved.
VERIFIED. @Satellite 6.7.0 Snap14 rubygem-foreman_maintain-0.5.2-1.el7sat.noarch by following manual reproducer: # foreman-maintain packages update Running preparation steps required to run the next scenarios ================================================================================ Check if tooling for package locking is installed: [OK] -------------------------------------------------------------------------------- Running update packages in unlocked session ================================================================================ Confirm update all is intentional: WARNING: No specific packages to update were provided so we are going to update all available packages. It is recommended to update everything only as part of upgrade of the Satellite to the next version. To Upgrade to next version use 'foreman-maintain upgrade'. NOTE: --assumeyes is not applicable for this check Do you want to proceed with update of everything regardless of the recommendations?, [y(yes), q(quit)] y [OK] -------------------------------------------------------------------------------- ... >>> "foreman-maintain packages update" treats no parameter the same way as "yum update" does
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1442