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 2152221 - virt-who for RHV
Summary: virt-who for RHV
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Virt-who Configure Plugin
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: yanpliu
URL:
Whiteboard:
Depends On:
Blocks: 2165774
TreeView+ depends on / blocked
 
Reported: 2022-12-09 19:57 UTC by Donald Berry
Modified: 2024-06-07 04:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-02-07 18:16:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-15505 0 None None None 2023-01-31 17:14:29 UTC

Description Donald Berry 2022-12-09 19:57:35 UTC
Document URL:

Configuring Virtual Machine Subscriptions in Red Hat Satellite
https://access.redhat.com/documentation/en-us/red_hat_satellite/6.11/html/configuring_virtual_machine_subscriptions_in_red_hat_satellite/index

Section Number and Name: 

Describe the issue: 
The entire procedure for RHV is wrong.
- you do not need to create a user
- you do not need to create a config on the Satellite
- the suggested config (Chapter 4. Creating a virt-who Configuration) doesn't work

Suggestions for improvement: 

- create config on hypervisor with just the header:
# echo [$(hostname)] > /etc/virt-who.d/rhv.conf
- systemctl enable virt-who
- systemctl start virt-who

Additional information: 

Using the suggested config doesn't work:

[root@sat6 ~]# for i in {1..6}; do hammer virt-who-config create --name rdu$i --organization tamlab --interval 1440 --filtering-mode none --hypervisor-id hostname --hypervisor-type libvirt --hypervisor-server dell-r640-0$i.rhvmgmt.tamlab.rdu2.redhat.com --hypervisor-username virt-who --satellite-url sat6.tamlab.rdu2.redhat.com; done
Virt Who configuration [rdu1] created
Virt Who configuration [rdu2] created
Virt Who configuration [rdu3] created
Virt Who configuration [rdu4] created
Virt Who configuration [rdu5] created
Virt Who configuration [rdu6] created

[dberry@t580 ~]$ scp Downloads/deploy_virt_who_config_15.sh root.rdu2.redhat.com:

[root@dell-r640-01 ~]# sh deploy_virt_who_config_15.sh
...
== Finished ==
Finished successfully

[root@dell-r640-01 ~]# cat /etc/virt-who.d/virt-who-config-15.conf 
### This configuration file is managed via the virt-who configure plugin
### manual edits will be deleted.
[virt-who-config-15]
type=libvirt
hypervisor_id=hostname
owner=tamlab

server=dell-r640-01.rhvmgmt.tamlab.rdu2.redhat.com
username=virt-who
encrypted_password=4839cf299139e2dba40695f5843dbff2bd9279623ed4ed68b4eb62cee382d9e6
rhsm_hostname=sat6.tamlab.rdu2.redhat.com
rhsm_username=virt_who_reporter_15
rhsm_encrypted_password=35d4fa8da56129bb05d628bb8041ad07300055e7dc50192d60da9f26958dc5ba
rhsm_prefix=/rhsm

/var/log/rhsm/rhsm.log:
2022-12-08 14:06:53,550 [INFO] @main.py:176 - Using configuration "virt-who-config-15" ("libvirt" mode)
2022-12-08 14:06:53,550 [INFO] @main.py:178 - Using reporter_id='dell-r640-01.tamlab.rdu2.redhat.com-9b5ee8f2693649428dc51b921d720a8b'
2022-12-08 14:06:53,563 [INFO] @libvirtd.py:280 - Using libvirt url: qemu+ssh://virt-who.tamlab.rdu2.redhat.com/system?no_tty=1
2022-12-08 14:06:53,807 [ERROR] @libvirtd.py:288 - Error in libvirt backend
libvirtError: Cannot recv data: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).: Connection reset by peer
2022-12-08 14:06:53,808 [ERROR] @virt.py:416 - Thread 'virt-who-config-15' fails with error: Cannot recv data: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).: Connection reset by peer

There is an article, but it needs to be updated (rhevm is no longer supported, vdsm is removed):

Consolidated Troubleshooting Article for Virt-who and Virtual Datacenter (VDC) Subscriptions Issues
https://access.redhat.com/articles/6463781

That article has links to the four solutions, but only one of them is correct:

How to configure virt-who in VDSM mode to work with RHEL-H or RHV-H?
https://access.redhat.com/solutions/2162051

"Ensure that the virt-who configuration looks as displayed below i.e. no specific type set so that It can use the default type as libvirt"

Also the link to the docs (6.2) in this KCS is broken
https://access.redhat.com/articles/2884051

I don't want to update the article or the four solutions since I am not familiar enough with the various backends (i.e. when were vdsm and rhevm removed).

Comment 10 Brad Buckingham 2024-01-09 20:58:59 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 11 Brad Buckingham 2024-02-07 18:16:21 UTC
Thank you for your interest in Red Hat Satellite. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to contact your Red Hat Account Team. Thank you.

Comment 12 Red Hat Bugzilla 2024-06-07 04:25:08 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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