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 1246374 - virt-who can't synchronise guest's info updating instantly when virt-who run at libvirt mode and refresh interval< 10s
Summary: virt-who can't synchronise guest's info updating instantly when virt-who run ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-who
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Radek Novacek
QA Contact: xingge
URL:
Whiteboard:
: 1253246 (view as bug list)
Depends On: 1229211
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-24 06:44 UTC by Liushihui
Modified: 2016-12-01 00:34 UTC (History)
7 users (show)

Fixed In Version: virt-who-0.14-5.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 1229211
Environment:
Last Closed: 2015-11-19 11:57:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2370 0 normal SHIPPED_LIVE virt-who bug fix and enhancement update 2015-11-19 10:39:27 UTC

Comment 1 Liushihui 2015-08-14 06:01:12 UTC
It has the same problem when virt-who run at hyperv mode.

Comment 2 Radek Novacek 2015-08-25 17:09:54 UTC
Fixed in virt-who-0.14-5.el7.

Comment 3 Radek Novacek 2015-08-25 17:11:13 UTC
*** Bug 1253246 has been marked as a duplicate of this bug. ***

Comment 5 Liushihui 2015-09-07 05:57:01 UTC
Verified it on virt-who-0.14-7.el7.noarch since virt-who can monitored the guest's updating instantly when it run at libvirt mode. Therefore, verify it.

Verified version:
virt-who-0.14-7.el7.noarch
subscription-manager-1.15.9-7.el7.x86_64
python-rhsm-1.15.4-4.el7.x86_64

Verified process:
1. Register to Satellite/SAM, configure virt-who run at libvirt mode
# cat /etc/sysconfig/virt-who  | grep -v ^# | grep -v ^$
VIRTWHO_DEBUG=1
VIRTWHO_INTERVAL=5
2. Start guest, then suspend guest. after 10s, virt-who can report guest's updating.
2015-09-07 13:05:08,654 [DEBUG]  @libvirtd.py:210 - Virtual machine found: rhel7.1: 6be7bb21-221e-43a6-8a08-3d3102338765
2015-09-07 13:05:08,656 [DEBUG]  @libvirtd.py:220 - Libvirt domains found: ['6be7bb21-221e-43a6-8a08-3d3102338765', '1391461f-a9c8-46dd-9f01-a206f9d9bc51', '94b62055-a672-48f9-a02c-97d70ccb06e0', 'cec3cf11-71bc-4081-b794-08218609b89e']
2015-09-07 13:05:08,671 [INFO]  @subscriptionmanager.py:136 - Sending domain info: [
    {
        "guestId": "6be7bb21-221e-43a6-8a08-3d3102338765", 
        "state": 1, 
        "attributes": {
            "active": 1, 
            "virtWhoType": "libvirt", 
            "hypervisorType": "QEMU"
        }
    }
]
2015-09-07 13:05:13,376 [DEBUG]  @libvirtd.py:210 - Virtual machine found: rhel7.1: 6be7bb21-221e-43a6-8a08-3d3102338765
2015-09-07 13:05:13,378 [DEBUG]  @libvirtd.py:220 - Libvirt domains found: ['6be7bb21-221e-43a6-8a08-3d3102338765']
2015-09-07 13:05:13,378 [DEBUG]  @libvirtd.py:210 - Virtual machine found: rhel7.1: 6be7bb21-221e-43a6-8a08-3d3102338765
2015-09-07 13:05:13,379 [DEBUG]  @libvirtd.py:220 - Libvirt domains found: ['6be7bb21-221e-43a6-8a08-3d3102338765']
2015-09-07 13:05:17,417 [INFO]  @virtwho.py:196 - virt-who guest list update successful
2015-09-07 13:05:17,419 [DEBUG]  @subscriptionmanager.py:112 - Authenticating with certificate: /etc/pki/consumer/cert.pem
2015-09-07 13:05:18,667 [DEBUG]  @libvirtd.py:210 - Virtual machine found: rhel7.1: 6be7bb21-221e-43a6-8a08-3d3102338765
2015-09-07 13:05:18,668 [DEBUG]  @libvirtd.py:220 - Libvirt domains found:  ['6be7bb21-221e-43a6-8a08-3d3102338765']
2015-09-07 13:05:19,959 [INFO]  @subscriptionmanager.py:136 - Sending domain info: [
    {
        "guestId": "6be7bb21-221e-43a6-8a08-3d3102338765", 
        "state": 3, 
        "attributes": {
            "active": 1, 
            "virtWhoType": "libvirt", 
            "hypervisorType": "QEMU"
        }
    }
]
3. resume guest, virt-who also can report guest's updating immediately.
2015-09-07 13:05:31,460 [DEBUG]  @libvirtd.py:210 - Virtual machine found: rhel7.1: 6be7bb21-221e-43a6-8a08-3d3102338765
2015-09-07 13:05:31,461 [DEBUG]  @libvirtd.py:220 - Libvirt domains found: ['6be7bb21-221e-43a6-8a08-3d3102338765']
2015-09-07 13:05:36,694 [DEBUG]  @libvirtd.py:210 - Virtual machine found: rhel7.1: 6be7bb21-221e-43a6-8a08-3d3102338765
2015-09-07 13:05:36,696 [DEBUG]  @libvirtd.py:220 - Libvirt domains found:  ['6be7bb21-221e-43a6-8a08-3d3102338765']
2015-09-07 13:05:36,903 [INFO]  @virtwho.py:196 - virt-who guest list update successful
2015-09-07 13:05:36,904 [DEBUG]  @subscriptionmanager.py:112 - Authenticating with certificate: /etc/pki/consumer/cert.pem
2015-09-07 13:05:39,570 [INFO]  @subscriptionmanager.py:136 - Sending domain info: [
    {
        "guestId": "6be7bb21-221e-43a6-8a08-3d3102338765", 
        "state": 1, 
        "attributes": {
            "active": 1, 
            "virtWhoType": "libvirt", 
            "hypervisorType": "QEMU"
        }
    }
]
4.Add a guest, after 10s ,virt-who can send the new guest to server.
2015-09-07 13:06:36,783 [DEBUG]  @libvirtd.py:216 - Virtual machine found: 7.0_Server_x86_64: cec3cf11-71bc-4081-b794-08218609b89e
2015-09-07 13:06:36,784 [DEBUG]  @libvirtd.py:220 - Libvirt domains found: [ 'cec3cf11-71bc-4081-b794-08218609b89e']
======================== Virt-who send one guest to server==================
2015-09-07 13:06:38,818 [INFO]  @subscriptionmanager.py:136 - Sending domain info: [
    {
        "guestId": "cec3cf11-71bc-4081-b794-08218609b89e", 
        "state": 5, 
        "attributes": {
            "active": 0, 
            "virtWhoType": "libvirt", 
            "hypervisorType": "QEMU"
        }
    }
]
=========================Add a new guest RHEL7.1==========================
2015-09-07 13:06:41,791 [DEBUG]  @libvirtd.py:216 - Virtual machine found: 7.0_Server_x86_64: cec3cf11-71bc-4081-b794-08218609b89e
2015-09-07 13:06:41,791 [DEBUG]  @libvirtd.py:220 - Libvirt domains found: ['cec3cf11-71bc-4081-b794-08218609b89e']
2015-09-07 13:06:43,268 [DEBUG]  @libvirtd.py:210 - Virtual machine found: rhel7.1: 067749c3-0194-47d0-857d-d1a71a6a5943
2015-09-07 13:06:43,312 [DEBUG]  @libvirtd.py:216 - Virtual machine found: 7.0_Server_x86_64: cec3cf11-71bc-4081-b794-08218609b89e
2015-09-07 13:06:43,312 [DEBUG]  @libvirtd.py:220 - Libvirt domains found: ['067749c3-0194-47d0-857d-d1a71a6a5943', 'cec3cf11-71bc-4081-b794-08218609b89e']
2015-09-07 13:06:43,313 [DEBUG]  @libvirtd.py:210 - Virtual machine found: rhel7.1: 067749c3-0194-47d0-857d-d1a71a6a5943
2015-09-07 13:06:43,315 [DEBUG]  @libvirtd.py:216 - Virtual machine found: 7.0_Server_x86_64: cec3cf11-71bc-4081-b794-08218609b89e
2015-09-07 13:06:43,315 [DEBUG]  @libvirtd.py:220 - Libvirt domains found: ['067749c3-0194-47d0-857d-d1a71a6a5943', 'cec3cf11-71bc-4081-b794-08218609b89e']
2015-09-07 13:06:43,315 [DEBUG]  @libvirtd.py:210 - Virtual machine found: rhel7.1: 067749c3-0194-47d0-857d-d1a71a6a5943
2015-09-07 13:06:43,316 [DEBUG]  @libvirtd.py:216 - Virtual machine found: 7.0_Server_x86_64: cec3cf11-71bc-4081-b794-08218609b89e
2015-09-07 13:06:43,316 [DEBUG]  @libvirtd.py:220 - Libvirt domains found: ['067749c3-0194-47d0-857d-d1a71a6a5943', 'cec3cf11-71bc-4081-b794-08218609b89e']
2015-09-07 13:06:45,861 [INFO]  @virtwho.py:196 - virt-who guest list update successful
2015-09-07 13:06:45,863 [DEBUG]  @subscriptionmanager.py:112 - Authenticating with certificate: /etc/pki/consumer/cert.pem
=====================After 10s, virt-who send two guests to server===========
2015-09-07 13:06:48,527 [INFO]  @subscriptionmanager.py:136 - Sending domain info: [
    {
        "guestId": "067749c3-0194-47d0-857d-d1a71a6a5943", 
        "state": 1, 
        "attributes": {
            "active": 1, 
            "virtWhoType": "libvirt", 
            "hypervisorType": "QEMU"
        }
    }, 
    {
        "guestId": "cec3cf11-71bc-4081-b794-08218609b89e", 
        "state": 5, 
        "attributes": {
            "active": 0, 
            "virtWhoType": "libvirt", 
            "hypervisorType": "QEMU"
        }
    }
]

Result: virt-who can handle the guest's updating instantly.

Comment 6 errata-xmlrpc 2015-11-19 11:57:10 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/RHBA-2015-2370.html


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