Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1833316

Summary: unset-addons argument is missing in the bash completion of syspurpose
Product: Red Hat Enterprise Linux 8 Reporter: Shwetha Kallesh <skallesh>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: medium    
Version: 8.3CC: jsefler, redakkan, wpoteat
Target Milestone: rcKeywords: EasyFix
Target Release: 8.4Flags: pm-rhel: mirror+
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: 2021-05-18 13:32:41 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 Shwetha Kallesh 2020-05-08 12:14:33 UTC
Description of problem:
unset-addons argument is missing in the bash completion of syspurpose

Version-Release number of selected component (if applicable):
[root@ibm-x3650m4-01-vm-16 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.1.10-1
subscription management rules: 5.39
subscription-manager: 1.24.36


How reproducible:


Steps to Reproduce:
[root@ibm-x3650m4-01-vm-16 ~]# syspurpose <tab><tab>
add            add-addons     -h             --help         remove         remove-addons  set            set-role       set-sla        set-usage      show           unset          unset-role     unset-sla      unset-usage


Actual results:
unset-addons is missing

Expected results:
unset-addons should be present in the bash-completion list

Additional info:

Comment 2 Rehana 2020-10-19 10:46:36 UTC
Early verification : 

# syspurpose 
add            -h             remove         set            set-sla        show           unset-addons   unset-sla      
add-addons     --help         remove-addons  set-role       set-usage      unset          unset-role     unset-usage 
   
[root@kvm-02-guest03 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.0-1
subscription management rules: 5.41
subscription-manager: 1.28.4-1.git.4.9e791e4.el8

Unset addons are now listed as an option in bash completion

Comment 3 John Sefler 2021-01-30 02:58:15 UTC
Deferring this bug from RHEL7 to RHEL8 where a fix has already been merged to subscription-manager-1.28.5-1

[root@rhel84 ~]# rpm -q python3-syspurpose --changelog | grep "1.28.5-1" -A8
* Thu Oct 22 2020 Christopher Snyder <csnyder> 1.28.5-1
- removing yarn (jmolet)
- Revert "1847910: DNF plugins are part of sub-man RPM, libdnf RPM; ENT-2536"
  (csnyder)
- 1886745: Fix __init__ of CPProvider; ENT-3147 (jhnidek)
- 1833316: unset-addons argument is missing in the bash completion of    <==== LOOK
  syspurpose (wpoteat)                                        <==== HERE
- 1875595: Service-Level set issues (wpoteat)


[root@rhel84 ~]# syspurpose <TAB><TAB>
add            remove         set-sla        unset-addons                <==== LOOK HERE
add-addons     remove-addons  set-usage      unset-role     
-h             set            show           unset-sla      
--help         set-role       unset          unset-usage

Comment 9 Rehana 2021-02-04 09:21:58 UTC
Final verification:
===================
# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.11-1
subscription management rules: 5.41
subscription-manager: 1.28.10-1.el8

# rpm -q python3-syspurpose --changelog | grep 1833316
- 1833316: unset-addons argument is missing in the bash completion of

# syspurpose 
add            -h             remove         set            set-sla        show           unset-addons   unset-sla      
add-addons     --help         remove-addons  set-role       set-usage      unset          unset-role     unset-usage   

^^unset-addons is now listed in the tab completion.

Comment 11 errata-xmlrpc 2021-05-18 13:32:41 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 (subscription-manager bug fix and enhancement update), 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-2021:1575