Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1860804 - Inconsistent input format for foreman-maintain packages install/update command.
Summary: Inconsistent input format for foreman-maintain packages install/update command.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Maintain
Version: 6.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.8.0
Assignee: Kavita
QA Contact: Jameer Pathan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-27 07:26 UTC by Jameer Pathan
Modified: 2021-12-01 08:10 UTC (History)
4 users (show)

Fixed In Version: rubygem-foreman_maintain-0.6.10
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 12:38:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 30589 0 Normal Closed Inconsistent input format for foreman-maintain packages install/update command. 2020-09-14 05:31:49 UTC
Red Hat Product Errata RHBA-2020:4365 0 None None None 2020-10-27 12:38:38 UTC

Description Jameer Pathan 2020-07-27 07:26:18 UTC
Description of problem:
Inconsistent input format for foreman-maintain packages install/update command.

Version-Release number of selected component (if applicable):
- Satellite 6.8.0 snap 9
- rubygem-foreman_maintain-0.6.8-1.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
# foreman-maintain packages install rubygem-foreman_maintain,zsh
Running install packages in unlocked session
================================================================================
Install packages: Loaded plugins: foreman-protector, product-id, search-disabled-repos, subscription-manager
Sat6-CI_Red_Hat_Satellite_6_7_Composes_Satellite_6_7_RHEL7                                                                             | 2.5 kB  00:00:00     
Sat6-CI_Red_Hat_Satellite_6_7_Composes_Satellite_Tools_6_7_RHEL7                                                                       | 2.1 kB  00:00:00     
Sat6-CI_Red_Hat_Satellite_6_8_Composes_Satellite_6_8_RHEL7                                                                             | 2.5 kB  00:00:00     
Sat6-CI_Red_Hat_Satellite_6_8_Composes_Satellite_Tools_6_8_RHEL7                                                                       | 2.1 kB  00:00:00     

WARNING: Excluding 12664 packages due to foreman-protector. 
Use foreman-maintain packages install/update <package> 
to safely install packages without restrictions.
Use foreman-maintain upgrade run for full upgrade.

No package rubygem-foreman_maintain,zsh available.
Error: Nothing to do
                                                    [WARNING]
Failed executing yum install rubygem-foreman_maintain,zsh, exit status 1
--------------------------------------------------------------------------------
Scenario [install packages in unlocked session] failed.

The following steps ended up in warning state:

  [packages-install]

The steps in warning state itself might not mean there is an error,
but it should be reviewed to ensure the behavior is expected


[root@dhcp-3-115 foreman_maintain]# foreman-maintain packages update rubygem-foreman_maintain,zsh
ERROR: install or update 'rubygem-foreman_maintain' package individually.
[root@dhcp-3-115 foreman_maintain]# foreman-maintain packages update rubygem-foreman_maintain zsh
ERROR: too many arguments

See: 'foreman-maintain packages update --help'
[root@dhcp-3-115 foreman_maintain]# foreman-maintain packages install rubygem-foreman_maintain zsh
ERROR: install or update 'rubygem-foreman_maintain' package individually.

# foreman-maintain packages update rubygem-foreman_maintain, zsh
ERROR: too many arguments

See: 'foreman-maintain packages update --help'

# foreman-maintain packages install rubygem-foreman_maintain, zsh
ERROR: install or update 'rubygem-foreman_maintain' package individually.

Actual results:
foreman-maintain packages install and update command treats same package list input differently. 

Expected results:
Consistent/same package input format for foreman-maintain packages install/update command.

Additional info:

Comment 1 Kavita 2020-08-07 13:56:59 UTC
Created redmine issue https://projects.theforeman.org/issues/30589 from this bug

Comment 2 Bryan Kearney 2020-08-07 16:02:46 UTC
Upstream bug assigned to kgaikwad

Comment 3 Bryan Kearney 2020-08-07 16:02:48 UTC
Upstream bug assigned to kgaikwad

Comment 4 Bryan Kearney 2020-08-28 12:03:05 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30589 has been resolved.

Comment 5 Patrick Creech 2020-09-01 20:22:55 UTC
Hello,

Can we get a 0.6.z upstream release of foreman_maintain with this fix in it?

Thanks,
Patrick

Comment 6 Jameer Pathan 2020-09-16 08:32:52 UTC
Verified

Verified with:
- Satellite 6.8.0 snap 15
- rubygem-foreman_maintain-0.6.10-1.el7sat.noarch

Observation:
- foreman-maintain packages install/update command use space separated packages list.
    foreman-maintain packages update/install [OPTIONS] pkg1 pkg2 pkg3

- all other command options need to be provided before packages list. In following format:
    foreman-maintain packages update/install [OPTIONS] [PACKAGES] ...

Comment 9 errata-xmlrpc 2020-10-27 12:38:24 UTC
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 (Satellite 6.8 Satellite Maintenance Release), 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:4365


Note You need to log in before you can comment on or make changes to this bug.