Bug 1231065

Summary: [REF]Support reporting state of virtual machines on all known hypervisors
Product: Red Hat Enterprise Linux 6 Reporter: Liushihui <shihliu>
Component: virt-whoAssignee: Radek Novacek <rnovacek>
Status: CLOSED ERRATA QA Contact: gaoshang <sgao>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7CC: gxing, hsun, ovasik, rbalakri, rnovacek, sgao, shihliu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: virt-who-0.16-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1056419 Environment:
Last Closed: 2016-05-10 23:55:40 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: 1056419    
Bug Blocks:    

Comment 2 Radek Novacek 2015-09-29 11:14:20 UTC
This issue has been addressed upstream and will be part of rebased virt-who package.

Comment 3 Radek Novacek 2015-12-17 12:28:52 UTC
Fixed by rebase to virt-who-0.16-1.el6.

Comment 5 Liushihui 2016-02-23 08:01:44 UTC
Verified it on virt-who-0.16-4.el6.noarch since virt-who can report guest's attribute and state on all supported hypervisors. Therefore, verify it.

Verified version:
subscription-manager-1.16.8-2.el6.x86_64
python-rhsm-1.16.6-1.el6.x86_64
virt-who-0.16-3.el6.noarch

Verified process:
1. Register to Satellite
2. Configure virt-who run at libvirt mode.restart virt-who service and track virt-who's log,it can show guest's state on the log.
2016-02-23 02:43:09,587 [virtwho.main INFO] MainProcess(10746):MainThread @subscriptionmanager.py:sendVirtGuests:147 - Sending update in guests lists for config "env/cmdline": 1 guests found
2016-02-23 02:43:09,588 [virtwho.main DEBUG] MainProcess(10746):MainThread @subscriptionmanager.py:sendVirtGuests:148 - Domain info: [
    {
        "guestId": "01ce7fd6-8d99-1ce4-39b6-2ed71ce8cd1a", 
        "state": 5, 
        "attributes": {
            "active": 0, 
            "hypervisorVersion": "0.12.1", 
            "virtWhoType": "libvirt", 
            "hypervisorType": "QEMU"
        }
    }
]
3.Configure virt-who run at esx mode.restart virt-who service and track virt-who's log,it can show guest's state on the log.
2016-02-23 02:57:16,626 [virtwho.main INFO] MainProcess(10061):MainThread @subscriptionmanager.py:hypervisorCheckIn:185 - Sending update in hosts-to-guests mapping for config "test-esx1": 8 hypervisors and 7 guests found
2016-02-23 02:57:16,628 [virtwho.main DEBUG] MainProcess(10061):MainThread @subscriptionmanager.py:hypervisorCheckIn:186 - Host-to-guest mapping: {
    "aee4ff00-8c33-11e2-994a-6c3be51d959a": [ 
        {
            "guestId": "4209a518-e1de-ecf2-6625-faacc5b052c2", 
            "state": 5, 
            "attributes": {
                "active": 0, 
                "hypervisorVersion": "6.0.0", 
                "virtWhoType": "esx", 
                "hypervisorType": "VMware ESXi"
            }
        }
    ], 
4. Configure virt-who run at rhevm mode.restart virt-who service and track virt-who's log,it can show guest's state on the log.
2016-02-22 20:39:18,870 [virtwho.main INFO] MainProcess(11365):MainThread @subscriptionmanager.py:hypervisorCheckIn:185 - Sending update in hosts-to-guests mapping for config "env/cmdline": 2 hypervisors and 1 guests found
2016-02-22 20:39:18,870 [virtwho.main DEBUG] MainProcess(11365):MainThread @subscriptionmanager.py:hypervisorCheckIn:186 - Host-to-guest mapping: {
    "5ee2a067-23e6-460d-ad7b-219af51a2aeb": [
        {
            "guestId": "c8211c02-7b29-4115-8115-72c52a8332a7",
            "state": 5,
            "attributes": {
                "active": 0,
                "hypervisorVersion": "",
                "virtWhoType": "rhevm",
                "hypervisorType": "qemu"
            }
        }
    ]
5. Configure virt-who run at hyperv mode.restart virt-who service and track virt-who's log,it can show guest's state on the log.
2016-02-23 03:00:44,968 [virtwho.main DEBUG] MainProcess(10145):MainThread @subscriptionmanager.py:hypervisorCheckIn:186 - Host-to-guest mapping: {
    "564D80F1-61F0-8510-87BF-57F9EC6122D7": [
        {
            "guestId": "8329390B-8359-F646-9176-27D738580E81", 
            "state": 1, 
            "attributes": {
                "active": 1, 
                "hypervisorVersion": "6.3.9600.16404", 
                "virtWhoType": "hyperv", 
                "hypervisorType": "hyperv"
            }
        }
    ]
}

Result:
virt-who can report guest's state and attribute on all supported hypervisor.

Comment 7 errata-xmlrpc 2016-05-10 23:55:40 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/RHEA-2016-0859.html