Bug 2165774 - Virt-who configuration shows errors which are related to SSH Connection [NEEDINFO]
Summary: Virt-who configuration shows errors which are related to SSH Connection
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Virt-who Configure Plugin
Version: 6.10.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.14.0
Assignee: Lucy Fu
QA Contact: yanpliu
URL:
Whiteboard:
Depends On: 2152221
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-31 00:34 UTC by Paulo Bernal
Modified: 2023-08-17 08:28 UTC (History)
7 users (show)

Fixed In Version: rubygem-foreman_virt_who_configure-0.5.15-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:
rlavi: needinfo? (yanpliu)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36499 0 Normal New Virt-who configuration shows errors which are related to SSH Connection 2023-06-09 15:51:59 UTC
Red Hat Issue Tracker SAT-17421 0 None None None 2023-05-01 13:17:21 UTC

Description Paulo Bernal 2023-01-31 00:34:08 UTC
Description of problem:
virt-who configuration which is provided by Red Hat Satellite, contains some lines that make errors related to SSH Connection in RHV-H

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


How reproducible:


Steps to Reproduce:
1. Install RHV-H
2. Register RHV-H to Red Hat Satellite
3. Create virt-who configuration for libvirt
4. Deploy virt-who configuration into RHV-H

Actual results:
[virtwho.main ERROR] MainProcess(1900771):Thread-2 @libvirtd.py:_connect:288 - Error in libvirt backend
    Traceback (most recent call last):
      File "/usr/lib/python3.6/site-packages/virtwho/virt/libvirtd/libvirtd.py", line 284, in _connect
        v = libvirt.openAuth(url, auth, libvirt.VIR_CONNECT_RO)
      File "/usr/lib64/python3.6/site-packages/libvirt.py", line 148, in openAuth
        raise libvirtError('virConnectOpenAuth() failed')
    libvirt.libvirtError: Cannot recv data: Host key verification failed.: Connection reset by peer

Expected results:


Additional info:

Comment 3 Lucy Fu 2023-06-09 15:51:58 UTC
Created redmine issue https://projects.theforeman.org/issues/36499 from this bug

Comment 5 Lucy Fu 2023-06-12 18:03:33 UTC
Sample libvirt configuration.

[root@bootp-73-131-194 virt-who.d]# more virt-who-config-13.conf 
### This configuration file is managed via the virt-who configure plugin
### manual edits will be deleted.
[virt-who-config-13]
type=libvirt
hypervisor_id=hostname
owner=Default_Organization

server=qemu:///system

rhsm_hostname=devel.redhat.com
rhsm_username=virt_who_reporter_13
rhsm_encrypted_password=929146baad322d7762ea95ecc78dd54e63db1f3e72ec2c7b75294046c7127889
rhsm_prefix=/rhsm

Comment 6 Bryan Kearney 2023-06-12 20:02:40 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36499 has been resolved.

Comment 11 Lucy Fu 2023-07-05 18:26:56 UTC
Create Config - select libvirt as the Hypervisor type. Set other options accordingly. 
Deploy the config as normal. 

The created config file for libvirt looks like in comment #5. 
No manual manipulation is required.


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