Bug 2090963

Summary: Libvirt compute resource creation failing with error Call to virNodeGetInfo failed: Cannot write data: Broken pipe on Red Hat Satellite
Product: Red Hat Satellite Reporter: Yogendra <yyadav>
Component: Compute Resources - libvirtAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.10.3   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-23 10:23:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yogendra 2022-05-27 06:09:51 UTC
Description of problem:

Creating Libvirt compute resource on Red Hat Satellite is failing with below error.

Oops, we're sorry but something went wrong ERF42-5864 [Foreman::Exception]: Unable to connect to libvirt due to: Call to virNodeGetInfo failed: Cannot write data: Broken pipe. Please make sure your libvirt compute resource is reachable and that you have appropriate access permissions.

Version-Release number of selected component (if applicable):

6.10.3

How reproducible:

Only on Customer Red Hat Satellite.

Steps to Reproduce:
1.Create Libvirt compute resource on Satellite Web UI
2.Test connection working but when submit is clicked getting above mentioned error. 
3. Also on Red Hat Satellite server and KVM server below hung process is present.

Actual results:

1) Compute resource is not created and failing with mentioned error.
2) Below hung process is present on Red Hat Satellite and KVM.

Red Hat Satellite:

 # ps -ef | grep nc
    foreman   1228 25857  0 09:11 ?        00:00:00 ssh -l root -- kvm.server.fqdn sh -c 'if 'nc' -q 2>&1 | grep "requires an argument" >/dev/null 2>&1; then ARG=-q0;else ARG=;fi;'nc' $ARG -U /var/run/libvirt/libvirt-sock'
    foreman   1372 25830  0 09:12 ?        00:00:00 ssh -l root -- kvm.server.fqdn sh -c 'if 'nc' -q 2>&1 | grep "requires an argument" >/dev/null 2>&1; then ARG=-q0;else ARG=;fi;'nc' $ARG -U /var/run/libvirt/libvirt-sock'
    foreman   1569 25857  0 09:13 ?        00:00:00 ssh -l root -- kvm.server.fqdn sh -c 'if 'nc' -q 2>&1 | grep "requires an argument" >/dev/null 2>&1; then ARG=-q0;else ARG=;fi;'nc' $ARG -U /var/run/libvirt/libvirt-sock'

KVM :

# ps -ef | grep nc
    root       13670   13669  0 08:55 ?        00:00:00 sh -c if nc -q 2>&1 | grep "requires an argument" >/dev/null 2>&1; then ARG=-q0;else ARG=;fi;nc $ARG -U /var/run/libvirt/libvirt-sock
    root       13781   13780  0 08:56 ?        00:00:00 sh -c if nc -q 2>&1 | grep "requires an argument" >/dev/null 2>&1; then ARG=-q0;else ARG=;fi;nc $ARG -U /var/run/libvirt/libvirt-sock
    root       13822   13821  0 08:56 ?        00:00:00 sh -c if nc -q 2>&1 | grep "requires an argument" >/dev/null 2>&1; then ARG=-q0;else ARG=;fi;nc $ARG -U /var/run/libvirt/libvirt-sock


Expected results:

Compute resource need to be created successfully.