Bug 1158803

Summary: Can't display the running mode in the virt-who log
Product: Red Hat Enterprise Linux 7 Reporter: Liushihui <shihliu>
Component: virt-whoAssignee: Radek Novacek <rnovacek>
Status: CLOSED ERRATA QA Contact: Li Bin Liu <liliu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.1CC: gxing, liliu, ovasik, rbalakri, rnovacek, sgao
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: virt-who-0.11-3.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1135408 Environment:
Last Closed: 2015-03-05 10:23:29 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: 1135408    
Bug Blocks:    

Comment 1 Liushihui 2014-10-30 09:35:28 UTC
On the rhel7.1, the version of component should be as the following:

subscription-manager-1.13.5-1.el7.x86_64
python-rhsm-1.13.5-1.el7.x86_64
virt-who-0.11-2.el7.noarch
katello-headpin-1.4.3.28-1.el6sam_splice.noarch
candlepin-0.9.6.5-1.el6sam.noarch

Comment 3 Radek Novacek 2014-10-30 12:14:55 UTC
It's a little bit more complicated now, virt-who can now has more than one backend enabled.

I would suggest following info output for each config:

Using configuration "<name>" ("<mode>" mode).

For example:
Using configuration "esx test" ("esx" mode).
Using configuration "hyperv test" ("hyperv" mode).
Using commandline or sysconfig configuration ("libvirt" mode).

Is this agreeable? Suggestions of better format welcomed :)

Comment 4 Liushihui 2014-10-31 07:06:07 UTC
I agree with your idea, I think it's clear. Thanks.

Comment 5 Radek Novacek 2014-11-05 11:56:12 UTC
Fixed in virt-who-0.11-3.el7.

Comment 7 Liushihui 2014-11-12 09:19:47 UTC
Verified it on virt-who-0.11-3.el7.noarch

Verified process
1. Register system to SAM server
2. Configure virt-who run at libvirt mode
3. Check virt-who 's log , it will show virt-who run at (libvirt mode):
2014-11-12 16:45:23,914 [INFO]  @virtwho.py:453 - No configurations found, using libvirt as backend
2014-11-12 16:45:23,914 [INFO]  @virtwho.py:460 - Using configuration "virt-who" ("libvirt" mode)
2014-11-12 16:45:23,914 [DEBUG]  @virtwho.py:170 - Starting infinite loop with 5 seconds interval
2014-11-12 16:45:23,950 [DEBUG]  @libvirtd.py:95 - Starting libvirt monitoring event loop
2014-11-12 16:45:23,951 [INFO]  @libvirtd.py:187 - Using libvirt url: ""
2014-11-12 16:45:24,066 [INFO]  @subscriptionmanager.py:109 - Sending list of uuids: []
4.Configure virt-who run at esx mode.
5.Check the virt-who's log, it will show virt-who run at (esx mode):
2014-11-12 16:46:54,386 [INFO]  @virtwho.py:458 - Using commandline or sysconfig configuration ("esx" mode)
2014-11-12 16:46:54,387 [DEBUG]  @virtwho.py:170 - Starting infinite loop with 5 seconds interval

As virt-who can show the run mode in the log, verify it in this version.

Comment 9 errata-xmlrpc 2015-03-05 10:23:29 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://rhn.redhat.com/errata/RHSA-2015-0430.html