Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1408556

Summary: [RFE] Add where host-to-guests mapping is pointing to in the rhsm.log
Product: Red Hat Enterprise Linux 7 Reporter: Kathryn Dixon <kdixon>
Component: virt-whoAssignee: Chris Snyder <csnyder>
Status: CLOSED ERRATA QA Contact: Eko <hsun>
Severity: medium Docs Contact: Yehuda Zimmerman <yzimmerm>
Priority: high    
Version: 7.2CC: bcourt, bkearney, csnyder, jherrman, jhnidek, khowell, ktordeur, rjerrido, yuefliu
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
*virt-who* logs where the host-guest mapping is sent The *virt-who* utility now uses the `rhsm.log` file to log the owner or account to which the host-guest mapping is sent. This helps proper configuration of *virt-who*.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 16:19:53 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:
Bug Depends On:    
Bug Blocks: 1420851, 1469152    

Description Kathryn Dixon 2016-12-24 21:47:17 UTC
Description of problem:

When viewing the rhsm.log after setting up virt-who, it would be helpful to see where the host-to-guest mapping is reporting to. Even if it just took the output from the owner= in the virt-who config file. Which could be either /etc/virt-who.d/config or /etc/sysconfig/virt-who

This is what we see now..

2016-10-26 15:02:26,930 [INFO]  @subscriptionmanager.py:165 - Sending update in hosts-to-guests mapping: 

If that could show something like this..

2016-10-26 15:02:26,930 [INFO]  @subscriptionmanager.py:165 - Sending update in hosts-to-guests mapping to Default_Organization:

then we could see without the config file where the config is pointed to.

The /etc/virt-who.d/config - Does not come in a sosreport currently.

This would also help us if multiple vcenters are involved ( which is very common). 

Can help to verify quickly that the owner= is incorrect in the config without having to ask for it.

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


How reproducible: 100%


Steps to Reproduce:
1. install and configure virt-who
2. view the rhsm.log for information/troubleshooting why hosts are not showing up in the portal/satellite6 depending on environment

Actual results: does not give us enough information to see where the hosts should be showing up ie portal or satellite

Sending update in hosts-to-guests mapping

Expected results: Sending update in hosts-to-guests mapping to Default_Organization <--- 


Additional info:

Comment 4 Kenny Tordeurs 2016-12-28 16:23:57 UTC
@Kathryn

Just as FYI:

/etc/virt-who.d/config is included in recent sosreport for RHEL7 [0] and concerned errata [1]

[0] https://bugzilla.redhat.com/show_bug.cgi?id=1353552
[1] https://rhn.redhat.com/errata/RHBA-2016-2380.html

Comment 5 Kathryn Dixon 2016-12-28 16:33:21 UTC
(In reply to Kenny Tordeurs from comment #4)
> @Kathryn
> 
> Just as FYI:
> 
> /etc/virt-who.d/config is included in recent sosreport for RHEL7 [0] and
> concerned errata [1]
> 
> [0] https://bugzilla.redhat.com/show_bug.cgi?id=1353552
> [1] https://rhn.redhat.com/errata/RHBA-2016-2380.html

Kenny thanks for the heads up =D

Comment 15 errata-xmlrpc 2018-04-10 16:19:53 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