Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2165774 - Virt-who configuration shows errors which are related to SSH Connection
Summary: Virt-who configuration shows errors which are related to SSH Connection
Keywords:
Status: CLOSED NOTABUG
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-24 06:17 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: 2023-08-24 06:17:03 UTC
Target Upstream Version:
Embargoed:


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.