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 1665339 - Messy string in hostnamectl "Operating System" value
Summary: Messy string in hostnamectl "Operating System" value
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: openssh
Version: 8.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: 8.0
Assignee: Jakub Jelen
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-11 03:22 UTC by Yuxin Sun
Modified: 2019-01-31 10:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-14 09:14:33 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
hostnamectl output (52.67 KB, image/png)
2019-01-11 03:23 UTC, Yuxin Sun
no flags Details

Description Yuxin Sun 2019-01-11 03:22:22 UTC
Description of problem:
Messy string when running hostnamectl through ssh: 
Operating System: ]8;;https://www.redhat.com/Red Hat Enterprise Linux 8.0 Beta (Ootpa)]8;;

Observed in Azure/Hyper-V platform
Only exists through ssh. Works well in console.
Works well in RHEL-7.6.

Version-Release number of selected component (if applicable):
openssh-7.8p1-4.el8.x86_64

RHEL Version:
RHEL-8.0-20181220.1

How reproducible:
100%

Steps to Reproduce:
Login through ssh. Run "hostnamectl"

Actual Result:
Operating System: ]8;;https://www.redhat.com/Red Hat Enterprise Linux 8.0 Beta (Ootpa)]8;;

Expect Result:
Operating System: Red Hat Enterprise Linux 8.0 Beta (Ootpa)

Additional Info:

Comment 1 Yuxin Sun 2019-01-11 03:23:58 UTC
Created attachment 1519963 [details]
hostnamectl output

Comment 2 Jakub Jelen 2019-01-11 14:09:46 UTC
This sounds like some attempt to make a hyperlink. It is described for example here:

https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda

I can not reproduce it with my virtualization from Terminator (does not support it). If I connect from Gnome Terminal, it works as expected (link is visible).

I assume that in your case, your terminal emulator signalizes support for this, so systemd server these special characters, but your terminal does not know how to interpret the hyperlinks. Please, clarify at least what terminal emulator are you using, what version and on what platform in the client. I do not think this has anything to do with ssh at all.

Comment 3 Yuxin Sun 2019-01-14 08:27:52 UTC
Hi,

I'm using the GNOME Terminal 3.18.1 using VTE version 0.42.1 on Fedora23. What other information do you need? Thanks!

Comment 4 Jakub Jelen 2019-01-14 09:14:33 UTC
That will probably be the problem. Fedora 23 is EOL for over two years now and therefore this is nothing that we could support. The same works fine with Fedora 29 I am running so this is not an issue in RHEL8 end.

Please update to something newer. If you still can reproduce it on some supported platform (RHEL6, RHEL7), please reopen this bug on systemd.

Comment 5 Yaju Cao 2019-01-31 09:52:03 UTC
I can reproduce this issue with RHEL8 on both Hyper-V and ESXi. I use Gnome Terminal 3.22.1, RHEL7.5 for ssh connection.

Comment 6 Jakub Jelen 2019-01-31 10:26:16 UTC
Then, it is a bug of RHEL7.5 gnome terminal (missing support for half-baked feature) or RHEL8 systemd hostnamectl (throwing half-baked features to unsupported terminal emulators), but certainly it has nothing to do with openssh. Feel free to reassign it to either one if you believe it is either fault.


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