Bug 1509596

Summary: Failed to run virt-who for Remote Libvirt mode with libvirtError - "Connection refused"
Product: Red Hat Enterprise Linux 7 Reporter: yuefliu <yuefliu>
Component: virt-whoAssignee: Chris Snyder <csnyder>
Status: CLOSED ERRATA QA Contact: Eko <hsun>
Severity: urgent Docs Contact:
Priority: high    
Version: 7.5CC: csnyder, hsun, jhnidek, lmiksik, yuefliu
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: virt-who-0.21.1-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 16:21: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:

Comment 2 Liushihui 2017-11-09 03:19:26 UTC
Run virt-who at remote_libvirt mode, register system to satellite6.2.12, it also can't send mapping info to satellite, but the error info is different from it against stage candlepin. please see as the following:

2017-11-09 01:12:49,362 [virtwho.env_cmdline DEBUG] MainProcess(1628):Thread-2 @virt.py:run:374 - Thread 'env/cmdline' started
2017-11-09 01:12:49,363 [virtwho.destination_-7426371236027194430 DEBUG] MainProcess(1628):Thread-3 @virt.py:run:374 - Thread 'destination_-7426371236027194430' started
2017-11-09 01:12:49,364 [virtwho.env_cmdline INFO] MainProcess(1628):Thread-2 @libvirtd.py:_connect:284 - Using libvirt url: qemu://root.129.77/system?no_tty=1
2017-11-09 01:12:49,365 [virtwho.env_cmdline ERROR] MainProcess(1628):Thread-2 @libvirtd.py:_connect:292 - Error in libvirt backend
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/virtwho/virt/libvirtd/libvirtd.py", line 290, in _connect
    v = libvirt.openReadOnly(url)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 291, in openReadOnly
    if ret is None:raise libvirtError('virConnectOpenReadOnly() failed')
libvirtError: Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory
2017-11-09 01:12:49,367 [virtwho.env_cmdline ERROR] MainProcess(1628):Thread-2 @virt.py:run:383 - Thread 'env/cmdline' fails with error: Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory
2017-11-09 01:12:49,368 [virtwho.env_cmdline INFO] MainProcess(1628):Thread-2 @virt.py:_send_data:922 - Report for config "env/cmdline" gathered, placing in datastore
2017-11-09 01:12:49,372 [virtwho.env_cmdline INFO] MainProcess(1628):Thread-2 @virt.py:run:407 - Waiting 3600 seconds before performing action again 'env/cmdline'
2017-11-09 01:12:50,367 [virtwho.destination_-7426371236027194430 DEBUG] MainProcess(1628):Thread-3 @virt.py:_send_data:599 - ErrorReport received for source: env/cmdline

Comment 9 errata-xmlrpc 2018-04-10 16:21:32 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, 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/RHEA-2018:0895