Bug 2221661

Summary: [RFE] dnf plugin subscription-manager should mention rhc, when it is available
Product: Red Hat Enterprise Linux 9 Reporter: Jiri Hnidek <jhnidek>
Component: subscription-managerAssignee: CSI Client Tools Bugs <csi-client-tools-bugs>
Status: NEW --- QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.3Keywords: EasyFix, FutureFeature, Triaged
Target Milestone: rc   
Target Release: ---   
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: 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 Jiri Hnidek 2023-07-10 14:47:02 UTC
Description of problem:
When system is not registered, then DNF plugin subscription-manager print warning with suggestion to use subscription-manager for registration. When "rhc" is installed, then this tool should be also suggested as optional CLI tool for registration.

Version-Release number of selected component (if applicable):
[root@rhel9 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 4.2.15-1
subscription management rules: 5.43
subscription-manager: 1.29.33.1-1.el9_2

How reproducible:
100%

Steps to Reproduce:
1. Try to run dnf command on not registered system, where "rhc" is also installed:

[root@rhel9 ~]# dnf install zsh

Actual results:
...
This system is not registered with an entitlement server. You can use subscription-manager to register.
...


Expected results:

...
This system is not registered with an entitlement server. You can use "rhc" or "subscription-manager" to register.
...


Additional info:
When "rhc" is not install, then message should be still the same.