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 1878133 - Display deprecation warning when syspurpose tool is used
Summary: Display deprecation warning when syspurpose tool is used
Keywords:
Status: CLOSED DUPLICATE of bug 2000867
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: ---
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: 8.5
Assignee: William Poteat
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-11 12:44 UTC by Rehana
Modified: 2021-10-12 17:11 UTC (History)
2 users (show)

Fixed In Version: subscription-manager-1.28.16-1.el8
Doc Type: Enhancement
Doc Text:
Feature: Syspurpose Reason: A future merge of the capability into subscription-manager requires a deprecation warning in this release. Result: The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
Clone Of:
Environment:
Last Closed: 2021-10-12 16:48:43 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2421 0 None closed 1878133: Deprecation message for syspurpose 2021-03-11 10:54:09 UTC
Github candlepin subscription-manager pull 2568 0 None closed ENT-3758: RHEL 8.5 Cherry pick Requests 2021-04-29 10:01:16 UTC

Comment 4 Shwetha Kallesh 2021-04-28 05:37:49 UTC
Pre-verification comments:
deprecation warning message is displayed for every suspurpose command

[root@kvm-04-guest15 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.16-1
subscription management rules: 5.41
subscription-manager: 1.28.16-1.el8


[root@kvm-04-guest15 ~]# syspurpose show
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ observe the deprecation warning when using syspurpose show command
{
  "addons": [
    "Foobar1"
  ]
}


[root@kvm-04-guest15 ~]# syspurpose set-role foo
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ observe the deprecation warning when using syspurpose set-role command

Warning: Provided value "foo" is not included in the list of valid values for attribute role:
 - Red Hat Enterprise Linux Workstation
 - SP Server
 - Red Hat Enterprise Linux Server
 - Red Hat Enterprise Linux Compute Node
role set to "foo".


[root@kvm-04-guest15 ~]# syspurpose unset-role
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
role unset.
^^ observe the deprecation warning when using syspurpose unset-role command

[root@kvm-04-guest15 ~]# syspurpose add-addons hello
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ observe the deprecation warning when using syspurpose add-addons command

Warning: Provided value "hello" is not included in the list of valid values for attribute addons:
Added hello to addons.
addons updated.
[root@kvm-04-guest15 ~]# syspurpose remove-addons hello
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ observe the deprecation warning when using syspurpose remove-addons command

Removed "hello" from addons.
addons updated.
[root@kvm-04-guest15 ~]# syspurpose unset-addons
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
addons unset.
^^ observe the deprecation warning when using syspurpose unset-addons command

[root@kvm-04-guest15 ~]# syspurpose set-sla standard
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ observe the deprecation warning when using syspurpose set-sla command

Warning: Provided value "standard" is not included in the list of valid values for attribute service_level_agreement:
 - AMC-Enhanced
 - Standard
 - Premium
 - Self-Support
service_level_agreement set to "standard".


[root@kvm-04-guest15 ~]# syspurpose unset-sla
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
service_level_agreement unset.
^^ observe the deprecation warning when using syspurpose unset-sla command

[root@kvm-04-guest15 ~]# syspurpose set-usage foobar
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ observe the deprecation warning when using syspurpose set-usage command
Warning: Provided value "foobar" is not included in the list of valid values for attribute usage:
 - Production
usage set to "foobar".

[root@kvm-04-guest15 ~]# syspurpose unset-usage
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
usage unset.
^^ observe the deprecation warning when using syspurpose unset-usage command

Comment 7 Shwetha Kallesh 2021-05-20 05:17:39 UTC
verification comments:

[root@kvm-02-guest25 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.18-1
subscription management rules: 5.41
subscription-manager: 1.28.16-1.el8


[root@kvm-02-guest25 ~]# syspurpose -h
usage: syspurpose [-h]
                  {set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show}
                  ...

System Syspurpose Management Tool

positional arguments:
  {set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show}
                        sub-command help
    set                 Sets the value for the given property
    unset               Unsets (clears) the value for the given property
    add                 Adds the value(s) to the given property
    remove              Removes the value(s) from the given property
    set-role            Set the system role to the system syspurpose
    unset-role          Clear set role
    add-addons          Add addons to the system syspurpose
    remove-addons       Remove addons from the system syspurpose
    unset-addons        Clear set addons
    set-sla             Set the system sla
    unset-sla           Clear set sla
    set-usage           Set the system usage
    unset-usage         Clear set usage
    show                Show the current system syspurpose

optional arguments:
  -h, --help            show this help message and exit

The 'syspurpose' command is deprecated and will be removed in a future major
release. Please use the 'subscription-manager syspurpose' command going
forward.
^^ deprecation warning message

[root@kvm-02-guest25 ~]# syspurpose show
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
{}
^^ deprecation warning message


[root@kvm-02-guest25 ~]# syspurpose set role foo
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ deprecation warning message

Warning: Provided value "foo" is not included in the list of valid values for attribute role:
 - Red Hat Enterprise Linux Server
role set to "foo".


[root@kvm-02-guest25 ~]# syspurpose unset role
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ deprecation warning message
role unset.


[root@kvm-02-guest25 ~]# syspurpose add addons hello
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ deprecation warning message
Warning: Provided value "hello" is not included in the list of valid values for attribute addons:
Added hello to addons.
addons updated.


[root@kvm-02-guest25 ~]# syspurpose remove addons hello
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ deprecation warning message
Removed "hello" from addons.
addons updated.


[root@kvm-02-guest25 ~]# syspurpose set-role foobar
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ deprecation warning message
Warning: Provided value "foobar" is not included in the list of valid values for attribute role:
 - Red Hat Enterprise Linux Server
role set to "foobar".


[root@kvm-02-guest25 ~]# syspurpose unset-role
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ deprecation warning message
role unset.


[root@kvm-02-guest25 ~]# syspurpose add-addons helloworld
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ deprecation warning message
Warning: Provided value "helloworld" is not included in the list of valid values for attribute addons:
Added helloworld to addons.
addons updated.


[root@kvm-02-guest25 ~]# syspurpose remove-addons helloworld
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ deprecation warning message
Removed "helloworld" from addons.
addons updated.


[root@kvm-02-guest25 ~]# syspurpose unset-addons
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ deprecation warning message
addons unset.


[root@kvm-02-guest25 ~]# syspurpose set-sla standard
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ deprecation warning message
Warning: Provided value "standard" is not included in the list of valid values for attribute service_level_agreement:
 - Basic Plus
 - Premium
 - Standard
 - Self-Support
 - None
service_level_agreement set to "standard".


[root@kvm-02-guest25 ~]# syspurpose unset-sla
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ deprecation warning message
service_level_agreement unset.


[root@kvm-02-guest25 ~]# syspurpose set-usage ffoo
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ deprecation warning message
Warning: Provided value "ffoo" is not included in the list of valid values for attribute usage:
 - Development/Test
 - Production
usage set to "ffoo".


[root@kvm-02-guest25 ~]# syspurpose unset-usage
The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
^^ deprecation warning message
usage unset.

Comment 10 John Sefler 2021-10-12 16:48:43 UTC
Although this bug was VERIFIED, it was actually reverted in build subscription-manager-1.28.18-1 by Bug 1971693 and will be introduced in rhel-8.6 by Bug 2000867.

Moving this to CLOSED dup of Bug 2000867.

*** This bug has been marked as a duplicate of bug 2000867 ***


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