Bug 1980230 - hosted-engine --console fails on socat "Option "user" only with bind option" error
Summary: hosted-engine --console fails on socat "Option "user" only with bind option" ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 4.4.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-4.4.9
: 4.4.9
Assignee: Asaf Rachmani
QA Contact: Nikolai Sednev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-08 07:22 UTC by Sandro Bonazzola
Modified: 2021-11-16 15:12 UTC (History)
2 users (show)

Fixed In Version: ovirt-hosted-engine-setup-2.5.2
Doc Type: Bug Fix
Doc Text:
In Red Hat Enterprise Linux 8.5, the socat package has been updated introducing a change in the command line syntax. In the current release, the hosted-engine command has been updated to adapt to this change.
Clone Of:
Environment:
Last Closed: 2021-11-16 15:12:47 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4704 0 None None None 2021-11-16 15:12:59 UTC

Description Sandro Bonazzola 2021-07-08 07:22:09 UTC
This bug was initially created as a copy of Bug #1978365

I am copying this bug because: it will affect 4.4.9 based on RHEL 8.5



# rpm -qv ovirt-hosted-engine-setup
ovirt-hosted-engine-setup-2.5.0-1.el8.noarch

# rpm -qv ovirt-release-host-node
ovirt-release-host-node-4.4.6.3-1.el8.noarch

# rpm -qv socat
socat-1.7.4.1-1.el8.x86_64

# hosted-engine --console
The engine VM is running on this host
Escape character is ^]
2021/07/01 16:12:32 socat[11653] E Option "user" only with bind option

The socat command underlying is:

```
  /usr/bin/socat \
    UNIX-CONNECT:/var/run/ovirt-vmconsole-console/${vmid}.sock,user=ovirt-vmconsole \
    STDIO,raw,echo=0,escape=29
```

Removing the `,user=ovirt-vmconsole` part make it working.

Looking at http://www.dest-unreach.org/socat/doc/CHANGES it sames a change introduced with version 1.7.4.0.

This affects CentOS Stream as 1.7.4.1 is targeting RHEL 8.5.

Comment 1 Sandro Bonazzola 2021-07-13 06:15:30 UTC
QE: this is already solved in upstream 4.4.7 on CentOS Stream. For RHV, this needs to be verified on RHEL 8.5.

Comment 2 Sandro Bonazzola 2021-09-15 12:44:33 UTC
The fix was already shipped in 4.4.8, needs to be verified on RHEL 8.5.

Comment 5 Nikolai Sednev 2021-10-19 12:07:57 UTC
Works fine on these components:
ovirt-hosted-engine-setup-2.5.4-2.el8ev.noarch
ovirt-hosted-engine-ha-2.4.9-1.el8ev.noarch
ovirt-engine-4.4.9.2-0.6.el8ev.noarch

serval14 ~]# hosted-engine --console
The engine VM is running on this host
Escape character is ^]

Red Hat Enterprise Linux 8.5 (Ootpa)
Kernel 4.18.0-348.el8.x86_64 on an x86_64

Web console: https://FQDNoftheengine:9090/ or https://IPoftheengine:9090/

nsednev-he-4 login: root
Password: 
Last login: Tue Oct 19 12:56:02 from ****yourIPhere*****
[root@nsednev-he-4 ~]# 

Escape character also works perfectly (right ctrl+shift+]).

Comment 9 errata-xmlrpc 2021-11-16 15:12:47 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 (RHV RHEL Host (ovirt-host) [ovirt-4.4.9]), 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:4704


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