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 1857491 - Need some whitespace between two sentences of a container warning message.
Summary: Need some whitespace between two sentences of a container warning message.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.4
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-16 01:45 UTC by John Sefler
Modified: 2021-11-10 07:50 UTC (History)
3 users (show)

Fixed In Version: subscription-manager-1.28.15-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 19:37:33 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 2482 0 None open 1857491: add a newline to split a message into 2 lines 2021-03-10 12:52:03 UTC
Red Hat Product Errata RHBA-2021:4390 0 None None None 2021-11-09 19:37:46 UTC

Description John Sefler 2020-07-16 01:45:20 UTC
Description of problem:
When attempting to run syspurpose within a running container, the following WARNING message is printed.  Notice the grammar.  White space is needed between the sentences.  A newline character would be best.

WARNING: Setting syspurpose in containers has no effect.Please run syspurpose on the host.


Version-Release number of selected component (if applicable):
[root@kvm-04-guest02 ~]# rpm -q python3-syspurpose
python3-syspurpose-1.27.9-1.el8.x86_64


How reproducible:


Steps to Reproduce:
[root@d686d25831f3 /]# syspurpose set-role "Red Hat Enterprise Linux Server"
WARNING: Setting syspurpose in containers has no effect.Please run syspurpose on the host.

role set to "Red Hat Enterprise Linux Server".
[root@d686d25831f3 /]#


Actual results:
WARNING: Setting syspurpose in containers has no effect.Please run syspurpose on the host.


Expected results:
WARNING: Setting syspurpose in containers has no effect.
Please run syspurpose on the host.


Additional info:

The offending string is located here...
[root@kvm-04-guest02 ~]# grep WARNING /usr/lib/python3.6/site-packages/syspurpose/cli.py -A2
        print(_("WARNING: Setting syspurpose in containers has no effect."
              "Please run syspurpose on the host.\n"))

Comment 4 Archana Pandey 2021-04-29 10:49:09 UTC
pre-verifying on development compose with subscription-manager: 1.28.16-1.el8:

 Beaker Test information:
                         HOSTNAME=kvm-05-guest24.hv2.lab.eng.bos.redhat.com
                            JOBID=5322348
                         RECIPEID=9915728
                    RESULT_SERVER=
                           DISTRO=RHEL-8.5.0-20210428.d.3
                     ARCHITECTURE=x86_64


[root@kvm-05-guest24 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.16-1
subscription management rules: 5.41
subscription-manager: 1.28.16-1.el8

[root@kvm-05-guest24 ~]# rpm -qa --changelog subscription-manager | grep 1857491
- 1857491: Add newline character to split a message into 2 lines
- 1857491: Add newline character to split a message into 2 lines
[root@kvm-05-guest24 ~]# 

verifying change in code base:
https://github.com/candlepin/subscription-manager/pull/2482/files#diff-17878a7c310205347735ba9f4d5ec2318c6a49edffa3e050af1218effd2e1766L348-R348

behavior will be validated once rhel8 container with fix is available

based on above observation moving to Verified:Tested

Comment 5 Archana Pandey 2021-04-30 11:36:09 UTC
Extending Comment 4 to provide more information on verification of fix inside container

Manually installing/upgrading subscription-manager package inside container and verifying

[root@80d77840a4d8 ~]# rpm -qa subscription-manager
subscription-manager-1.28.16-1.el8.x86_64
[root@80d77840a4d8 ~]# 
[root@80d77840a4d8 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.5 Beta (Ootpa)
[root@80d77840a4d8 ~]# 
[root@80d77840a4d8 ~]# syspurpose set-role "Red Hat Enterprise Linux Server"
WARNING: Setting syspurpose in containers has no effect.
Please run syspurpose on the host.  <<<<  notice the added newline character here

The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.                                                     
role set to "Red Hat Enterprise Linux Server".
[root@80d77840a4d8 ~]# 

Verified : As required newline character has been added in warning message

Comment 9 Rehana 2021-05-17 11:24:34 UTC
Reproducer : 

# syspurpose set-role "Red Hat Enterprise Linux Server"
WARNING: Setting syspurpose in containers has no effect.Please run syspurpose on the host.

role set to "Red Hat Enterprise Linux Server".

# rpm -qa subscription-manager
subscription-manager-1.28.13-2.el8.x86_64

Verifying on : 

manually updated the package version to : 
subscription-manager-1.28.16-1

# rpm -q --changelog subscription-manager | grep 1857491
- 1857491: Add newline character to split a message into 2 lines
- 1857491: Add newline character to split a message into 2 lines


# syspurpose set-role "Red Hat Enterprise Linux Server"
WARNING: Setting syspurpose in containers has no effect.
Please run syspurpose on the host.

The 'syspurpose' command is deprecated and will be removed in a future major release. Please use the 'subscription-manager syspurpose' command going forward.
role set to "Red Hat Enterprise Linux Server".

^^ As requested a newline has been added. 
moving the bug to Verified!!

Comment 12 errata-xmlrpc 2021-11-09 19:37:33 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:4390


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