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:
Created redmine issue https://projects.theforeman.org/issues/36499 from this bug
https://github.com/theforeman/foreman_virt_who_configure/pull/166
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
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36499 has been resolved.
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.