Bug 1978365

Summary: hosted-engine --console fails on socat "Option "user" only with bind option" error
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Sandro Bonazzola <sbonazzo>
Component: ToolsAssignee: Asaf Rachmani <arachman>
Status: CLOSED CURRENTRELEASE QA Contact: Sandro Bonazzola <sbonazzo>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.5.0CC: bugs
Target Milestone: ovirt-4.4.7-1Keywords: Regression, VerifiedUpstream
Target Release: 2.5.2Flags: sbonazzo: ovirt-4.4+
pm-rhel: blocker?
sbonazzo: planning_ack?
sbonazzo: devel_ack+
sbonazzo: testing_ack?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-hosted-engine-setup-2.5.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-09 07:46:07 UTC Type: Bug
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-01 16:22:19 UTC
# 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 RHEL Program Management 2021-07-01 16:22:25 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Sandro Bonazzola 2021-07-01 16:23:25 UTC
Need to check on CentOS 8.4 / RHEL 8.4 if dropping `,user=ovirt-vmconsole` is going to break the command on current RHEL.

Comment 3 Sandro Bonazzola 2021-07-09 07:32:03 UTC
Verified upgrading ovirt-hosted-engine-setup to ovirt-hosted-engine-setup-2.5.2 within oVirt Node 4.4.7.

Comment 4 Sandro Bonazzola 2021-07-09 07:46:07 UTC
This bugzilla is included in oVirt 4.4.7 async release, published on July 9th 2021.

Since the problem described in this bug report should be resolved in oVirt 4.4.7 async release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.