Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1730703

Summary: foreman-maintain on Capsule should not show upgrade option
Product: Red Hat Satellite Reporter: Stephen Wadeley <swadeley>
Component: Satellite MaintainAssignee: Amit Upadhye <aupadhye>
Status: CLOSED WONTFIX QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: high    
Version: UnspecifiedCC: apatel, inecas, jpathan, kgaikwad, mbacovsk, mmccune, vgunasek
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-29 21:42:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen Wadeley 2019-07-17 11:59:28 UTC
Description of problem:

The help output should *not* offer upgrade option when run on Capsule as that is confusing.

~]# foreman-maintain -h
Usage:
    foreman-maintain [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
    SUBCOMMAND                    subcommand
    [ARG] ...                     subcommand arguments

Subcommands:
    health                        Health related commands
    upgrade                       Upgrade related commands   <-- Misleading
<snip>


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

[root@qe-capsule-feature-rhel7 ~]# rpm -q satellite-capsule
satellite-capsule-6.6.0-5.beta.el7sat.noarch
[root@qe-capsule-feature-rhel7 ~]# rpm -q rubygem-foreman_maintain
rubygem-foreman_maintain-0.4.4-1.el7sat.noarch

How reproducible:


Steps to Reproduce:
1. foreman-maintain -h

Subcommands:
    health                        Health related commands
    upgrade                       Upgrade related commands
    service                       Control applicable services
    backup                        Backup server
    restore                       Restore a backup
    packages                      Lock/Unlock installed packages
    advanced                      Advanced tools for server maintenance
    maintenance-mode              Control maintenance-mode for application


Actual results:
Subcommands:
    health                        Health related commands
    upgrade                       Upgrade related commands

Expected results:

Subcommands:
    health                        Health related commands
    <the next line after upgrade>

Additional info:

Comment 4 Kavita 2020-01-08 12:26:43 UTC
Created redmine issue https://projects.theforeman.org/issues/28685 from this bug

Comment 7 Mike McCune 2020-10-29 21:42:18 UTC
With Capsule upgrade support in 6.8 we are offering the upgrade command to get to 6.8, eg:

# satellite-maintain  upgrade list-versions
Checking for new version of satellite-maintain...
Nothing to update, can't find new version of satellite-maintain.
6.8
# rpm -q satellite-capsule
satellite-capsule-6.7.5-1.el7sat.noarch

this is the desired result with the latest version and no plans to hide on older versions.

Comment 8 Red Hat Bugzilla 2023-09-14 05:31:58 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days