Bug 1980230

Summary: hosted-engine --console fails on socat "Option "user" only with bind option" error
Product: Red Hat Enterprise Virtualization Manager Reporter: Sandro Bonazzola <sbonazzo>
Component: ovirt-hosted-engine-setupAssignee: Asaf Rachmani <arachman>
Status: CLOSED ERRATA QA Contact: Nikolai Sednev <nsednev>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4.7CC: ddacosta, lsurette
Target Milestone: ovirt-4.4.9Keywords: TestOnly, Triaged, ZStream
Target Release: 4.4.9   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 15:12:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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