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 1231065 - [REF]Support reporting state of virtual machines on all known hypervisors
Summary: [REF]Support reporting state of virtual machines on all known hypervisors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-who
Version: 6.7
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Radek Novacek
QA Contact: gaoshang
URL:
Whiteboard:
Depends On: 1056419
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-12 06:24 UTC by Liushihui
Modified: 2016-12-01 00:35 UTC (History)
7 users (show)

Fixed In Version: virt-who-0.16-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 1056419
Environment:
Last Closed: 2016-05-10 23:55:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0859 0 normal SHIPPED_LIVE virt-who bug fix and enhancement update 2016-05-10 22:44:47 UTC

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


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