Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 832184

Summary: Disable keepalive in libvirt by default
Product: Red Hat Enterprise Linux 6 Reporter: RHEL Program Management <pm-rhel>
Component: libvirtAssignee: Eric Blake <eblake>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.3CC: acathrow, borgan, dallan, dyasny, dyuan, eblake, jdenemar, mzhan, pm-eus, rwu, syeghiay, veillard, ydu
Target Milestone: rcKeywords: Regression, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-0.9.10-21.el6_3.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 836196 (view as bug list) Environment:
Last Closed: 2012-06-20 10:28:50 UTC Type: ---
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: 832081    
Bug Blocks: 836196, 838924    

Description RHEL Program Management 2012-06-14 18:50:18 UTC
This bug has been copied from bug #832081 and has been proposed
to be backported to 6.3 z-stream (EUS).

Comment 7 Daniel Veillard 2012-06-15 03:18:33 UTC
keepalive has been disabled by default in build libvirt-0.9.10-21.el6_3.1

Daniel

Comment 9 dyuan 2012-06-15 09:38:33 UTC
Verified PASS with libvirt-0.9.10-21.el6_3.1, only get the following respons msg in libvirtd.log when there is a client connection.

2012-06-15 09:27:37.459+0000: 21251: debug : virKeepAliveCheckMessage:408 : ka=0x1062eb0, client=0x1063810, msg=0x10a69d0
2012-06-15 09:27:37.459+0000: 21251: debug : virKeepAliveCheckMessage:424 : RPC_KEEPALIVE_RECEIVED: ka=0x1062eb0 client=0x1063810 prog=1801807216 vers=1 proc=1
2012-06-15 09:27:37.459+0000: 21251: debug : virKeepAliveCheckMessage:428 : Got keepalive request from client 0x1063810
2012-06-15 09:27:37.459+0000: 21251: debug : virKeepAliveScheduleResponse:143 : Scheduling keepalive response to client 0x1063810

2012-06-15 09:27:37.459+0000: 21251: debug : virKeepAliveResponseTimer:213 : ka=0x1062eb0, client=0x1063810, response=0x1066960
2012-06-15 09:27:37.459+0000: 21251: debug : virKeepAliveSend:119 : Sending keepalive response to client 0x1063810
2012-06-15 09:27:37.459+0000: 21251: debug : virKeepAliveSend:122 : RPC_KEEPALIVE_SEND: ka=0x1062eb0 client=0x1063810 prog=1801807216 vers=1 proc=2

2012-06-15 09:27:42.439+0000: 21251: debug : virKeepAliveCheckMessage:408 : ka=0x1062eb0, client=0x1063810, msg=0x10a69d0
2012-06-15 09:27:42.439+0000: 21251: debug : virKeepAliveCheckMessage:424 : RPC_KEEPALIVE_RECEIVED: ka=0x1062eb0 client=0x1063810 prog=1801807216 vers=1 proc=1
2012-06-15 09:27:42.439+0000: 21251: debug : virKeepAliveCheckMessage:428 : Got keepalive request from client 0x1063810
2012-06-15 09:27:42.439+0000: 21251: debug : virKeepAliveScheduleResponse:143 : Scheduling keepalive response to client 0x1063810

Also see "Disabled by default." in libvirtd.conf and qemu.conf.


Tested with libvirt-0.9.10-21.el6, can get the following keepalive msg in libvirtd.log.

2012-06-15 09:09:20.832+0000: 19217: debug : virKeepAliveNew:244 : client=0x7f7110, interval=5, count=5
2012-06-15 09:09:20.832+0000: 19217: debug : virEventPollInterruptLocked:702 : Skip interrupt, 1 -564144032
2012-06-15 09:09:20.832+0000: 19217: debug : virEventPollAddTimeout:248 : EVENT_POLL_ADD_TIMEOUT: timer=13 frequency=-1 cb=0x7f1ede738690 opaque=0x7f5a00 ff=0x7f1ede738a60
2012-06-15 09:09:20.832+0000: 19217: debug : virKeepAliveNew:277 : RPC_KEEPALIVE_NEW: ka=0x7f5a00 client=0x7f7110 refs=2

2012-06-15 09:09:20.835+0000: 19220: debug : virKeepAliveStart:353 : RPC_KEEPALIVE_START: ka=0x7f5a00 client=0x7f7110 interval=0 count=0

2012-06-15 09:09:40.883+0000: 19217: debug : virKeepAliveCheckMessage:408 : ka=0x7f5a00, client=0x7f7110, msg=0x7faa30
2012-06-15 09:09:40.883+0000: 19217: debug : virKeepAliveCheckMessage:424 : RPC_KEEPALIVE_RECEIVED: ka=0x7f5a00 client=0x7f7110 prog=1801807216 vers=1 proc=2
2012-06-15 09:09:40.883+0000: 19217: debug : virKeepAliveCheckMessage:433 : Got keepalive response from client 0x7f7110

2012-06-15 09:09:45.889+0000: 19217: debug : virKeepAliveTimer:166 : RPC_KEEPALIVE_TIMEOUT: ka=0x7f5a00 client=0x7f7110 countToDeath=5 idle=5
2012-06-15 09:09:45.889+0000: 19217: debug : virNetMessageNew:48 : msg=0x83aaa0 tracked=0
2012-06-15 09:09:45.889+0000: 19217: debug : virNetMessageEncodePayloadEmpty:441 : Encode length as 28
2012-06-15 09:09:45.889+0000: 19217: debug : virKeepAliveSend:119 : Sending keepalive request to client 0x7f7110
2012-06-15 09:09:45.889+0000: 19217: debug : virKeepAliveSend:122 : RPC_KEEPALIVE_SEND: ka=0x7f5a00 client=0x7f7110 prog=1801807216 vers=1 proc=1

2012-06-15 09:10:00.911+0000: 19217: debug : virKeepAliveCheckMessage:408 : ka=0x7f5a00, client=0x7f7110, msg=0x7faa30
2012-06-15 09:10:00.911+0000: 19217: debug : virKeepAliveCheckMessage:424 : RPC_KEEPALIVE_RECEIVED: ka=0x7f5a00 client=0x7f7110 prog=1801807216 vers=1 proc=2
2012-06-15 09:10:00.911+0000: 19217: debug : virKeepAliveCheckMessage:433 : Got keepalive response from client 0x7f7110

Comment 10 Min Zhan 2012-06-15 10:26:52 UTC
Move to VERIFIED per Comment 9

Comment 12 errata-xmlrpc 2012-06-20 10:28:50 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.

http://rhn.redhat.com/errata/RHBA-2012-1000.html