Bug 1878133
| Summary: | Display deprecation warning when syspurpose tool is used | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Rehana <redakkan> |
| Component: | subscription-manager | Assignee: | William Poteat <wpoteat> |
| Status: | CLOSED DUPLICATE | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | --- | CC: | jsefler, wpoteat |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.5 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| 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.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-10-12 16:48:43 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: | |||
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.
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 *** |
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