Bug 1246374
| Summary: | virt-who can't synchronise guest's info updating instantly when virt-who run at libvirt mode and refresh interval< 10s | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Liushihui <shihliu> |
| Component: | virt-who | Assignee: | Radek Novacek <rnovacek> |
| Status: | CLOSED ERRATA | QA Contact: | xingge <gxing> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.2 | CC: | gxing, hsun, ldai, ovasik, rbalakri, rnovacek, sgao |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | virt-who-0.14-5.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1229211 | Environment: | |
| Last Closed: | 2015-11-19 11:57:10 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: | 1229211 | ||
| Bug Blocks: | |||
|
Comment 1
Liushihui
2015-08-14 06:01:12 UTC
Fixed in virt-who-0.14-5.el7. *** Bug 1253246 has been marked as a duplicate of this bug. *** 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.
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 |