Bug 1830994

Summary: Warning message printed by subscription-manager yum plugin contains line break and quotation marks
Product: Red Hat Enterprise Linux 7 Reporter: Jiri Hnidek <jhnidek>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.8CC: jsefler, redakkan, skallesh, wpoteat
Target Milestone: rcKeywords: Triaged
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: 2020-09-29 19:23:08 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 Jiri Hnidek 2020-05-04 13:17:02 UTC
Description of problem:
YUM plugin print two warning messages with unintended line break and the warning message also contains unintended quotation marks.

Version-Release number of selected component (if applicable):
master branch of subscription-manager

[jiri@localhost subscription_manager]$ git log -1 | grep commit
commit 2ae9933c919532de0d87f655e4ea61c7ae37f437

How reproducible:
100%

Steps to Reproduce:
1. Register to the candlepin server:

[root@localhost subscription_manager]# subscription-manager register --username admin --password admin --org admin
Registering to: svice:8443/candlepin
The system has been registered with ID: 79c55b96-e5db-4334-983c-b69cdfbb49eb
The registered system name is: localhost.localdomain

2. Run any yum command:

[root@localhost subscription_manager]# yum search awesome

Actual results:
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager

This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager " <===== line break and quotation marks
"to assign subscriptions.

....


Expected results:
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager

This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.

....


Additional info:

Comment 5 Shwetha Kallesh 2020-05-13 08:33:07 UTC
Verification:

[root@kvm-07-guest13 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.9.27-1
subscription management rules: 5.37
subscription-manager: 1.24.36


[root@kvm-07-guest13 ~]# subscription-manager register --serverurl subscription.rhsm.stage.redhat.com:443/subscription
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: stage_auto_syspurpose001
Password: 
The system has been registered with ID: 29a0ace3-1f26-4599-acbd-8c5cbad3a2cd
The registered system name is: kvm-07-guest13.hv2.lab.eng.bos.redhat.com
[root@kvm-07-guest13 ~]# yum repolist --disablerepo=beaker*
Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
                                                                                        ^^ all in the same line
repolist: 0
[root@kvm-07-guest13 ~]# yum search zsh --disablerepo=beaker*
Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
                                                                                         ^^ all in the same line
Warning: No matches found for: zsh
No matches found

Comment 7 errata-xmlrpc 2020-09-29 19:23:08 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 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-2020:3866