Bug 1066808
Summary: | [virtio-win][balloon]guest-stats still can be seen after disable or uninstall blnsrv service | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Mike Cao <bcao> |
Component: | virtio-win | Assignee: | Gal Hammer <ghammer> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.0 | CC: | bcao, flang, ghammer, hhuang, juzhang, lijin, michen, rbalakri, sluo, virt-maint, vrozenfe |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | virtio-win-prewhql-0.1-88 | Doc Type: | Bug Fix |
Doc Text: |
Cause:
After disabling or uninstalling blnsrv service the guest memory statistics still can be seen.
Consequence:
The balloon driver cannot provide correct memory statistics
without memory balloon service (blnsvr) up and running.
Fix:
Reset memory statistics upon disabling or uninstalling balloon service.
Result:
Now, the balloon driver will not report an obsolete, not updated memory statistics, if balloon service was disabled or uninstalled.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-03-05 05:33:38 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: | |||
Bug Blocks: | 1131838 |
Description
Mike Cao
2014-02-19 07:10:38 UTC
blnsrv -p works fine blnsrv -s or blnsrv -u does not work fine blnsrv -u works fine after guest reboot When I do: { "execute": "qom-get", "arguments": { "path": "/machine/peripheral/balloon0", "property": "guest-stats" } } I get: {"error": {"class": "CommandNotFound", "desc": "The command qom-get has not been found"}} What am I missing? Thanks. I have a patch ready that should fix the problem but I can't verify it. (In reply to Gal Hammer from comment #4) > When I do: > > { "execute": "qom-get", > "arguments": { "path": "/machine/peripheral/balloon0", > "property": "guest-stats" } } > > I get: > > {"error": {"class": "CommandNotFound", "desc": "The command qom-get has not > been found"}} > > What am I missing? Thanks. > > I have a patch ready that should fix the problem but I can't verify it. {"execute":"qmp_capabilities"} { "execute": "qom-list", "arguments": { "path": "/machine/peripheral/balloon0" } } { "execute": "qom-set", "arguments": { "path": "/machine/peripheral/balloon0", "property": "guest-stats-polling-interval", "value": 2 } } Then { "execute": "qom-set", "arguments": { "path": "/machine/peripheral/balloon0", "property": "guest-stats-polling-interval", "value": 2 } } (In reply to Mike Cao from comment #5) > (In reply to Gal Hammer from comment #4) > > When I do: > > > > { "execute": "qom-get", > > "arguments": { "path": "/machine/peripheral/balloon0", > > "property": "guest-stats" } } > > > > I get: > > > > {"error": {"class": "CommandNotFound", "desc": "The command qom-get has not > > been found"}} > > > > What am I missing? Thanks. > > > > I have a patch ready that should fix the problem but I can't verify it. > > > {"execute":"qmp_capabilities"} > { "execute": "qom-list", > "arguments": { "path": "/machine/peripheral/balloon0" } } > > { "execute": "qom-set", > "arguments": { "path": "/machine/peripheral/balloon0", > "property": "guest-stats-polling-interval", > "value": 2 } } > > Then > > { "execute": "qom-set", > "arguments": { "path": "/machine/peripheral/balloon0", > "property": "guest-stats-polling-interval", > "value": 2 } } I still get the CommentNotFound errors: {"execute":"qmp_capabilities"} { "execute": "qom-list", "arguments": { "path": "/machine/peripheral/balloon0" } } {"error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities has not been found"}} { "execute": "qom-set", "arguments": { "path": "/machine/peripheral/balloon0", "property": "guest-stats-polling-interval", "value": 2 } }{"error": {"class": "DeviceNotFound", "desc": "Device '/machine/peripheral/balloon0' not found"}} {"error": {"class": "DeviceNotFound", "desc": "Device '/machine/peripheral/balloon0' not found"}} Is there anything that should be added to the command line? Execute something? (In reply to Gal Hammer from comment #6) > (In reply to Mike Cao from comment #5) > > (In reply to Gal Hammer from comment #4) > > > When I do: > > > > > > { "execute": "qom-get", > > > "arguments": { "path": "/machine/peripheral/balloon0", > > > "property": "guest-stats" } } > > > > > > I get: > > > > > > {"error": {"class": "CommandNotFound", "desc": "The command qom-get has not > > > been found"}} > > > > > > What am I missing? Thanks. > > > > > > I have a patch ready that should fix the problem but I can't verify it. > > > > > > {"execute":"qmp_capabilities"} > > { "execute": "qom-list", > > "arguments": { "path": "/machine/peripheral/balloon0" } } > > > > { "execute": "qom-set", > > "arguments": { "path": "/machine/peripheral/balloon0", > > "property": "guest-stats-polling-interval", > > "value": 2 } } > > > > Then > > > > { "execute": "qom-set", > > "arguments": { "path": "/machine/peripheral/balloon0", > > "property": "guest-stats-polling-interval", > > "value": 2 } } > > I still get the CommentNotFound errors: > > {"execute":"qmp_capabilities"} > { "execute": "qom-list", > "arguments": { "path": "/machine/peripheral/balloon0" } } > {"error": {"class": "CommandNotFound", "desc": "The command qmp_capabilities > has not been found"}} > > { "execute": "qom-set", > "arguments": { "path": "/machine/peripheral/balloon0", > "property": "guest-stats-polling-interval", > "value": 2 } }{"error": {"class": "DeviceNotFound", "desc": "Device > '/machine/peripheral/balloon0' not found"}} > > {"error": {"class": "DeviceNotFound", "desc": "Device > '/machine/peripheral/balloon0' not found"}} > > Is there anything that should be added to the command line? Execute > something? Did you add -device virtio-balloon-pci,id=balloon0 ? I think id=balloon0 is a must .Attach the stracth build I will help to verify it If it still does not work to you , Mike (In reply to Mike Cao from comment #7) > Did you add -device virtio-balloon-pci,id=balloon0 ? > I think id=balloon0 is a must .Attach the stracth build I will help to > verify it If it still does not work to you , Thanks! The problem was with my command line. A patch was posted. Retest this issue on virito-win-prewhql-87 Steps same as comment #0 Actual Results: After uninstall/disable blnsrv service , It still shows {"return": {"stats": {"stat-swap-out": 0, "stat-free-memory": 1681137664, "stat-minor-faults": 3787, "stat-major-faults": 16, "stat-total-memory": 2147074048, "stat-swap-in": 16}, "last-update": 1406013617}} Based on above ,this issue has not been fixed yet ,Re-assign it Mike I think this is a regression caused by the new implementation (commit 0dcf4e6737). A patch was posted. reproduce this issue on virtio-win-1.6.8-4 verify this issue on build 88 and build 89 package info: kernel-3.10.0-133.el7.x86_64 qemu-kvm-rhev-1.5.3-60.el7ev_0.5.x86_64 seabios-1.7.5-4.el7.x86_64 steps same as comment #0 Actual Results: on virtio-win-1.6.8-4, qmp still return the guest-stats after uninstall blnsrv as: {"return": {"stats": {"stat-swap-out": 0, "stat-free-memory": 1720758272, "stat-minor-faults": 12, "stat-major-faults": 0, "stat-total-memory": 2147074048, "stat-swap-in": 0}, "last-update": 1408522879}} on build 88 and build 89,after uninstall blnsrv,qmp doesn't return the guest-stats,messge as following: {"return": {"stats": {"stat-swap-out": -1, "stat-free-memory": -1, "stat-minor-faults": -1, "stat-major-faults": -1, "stat-total-memory": -1, "stat-swap-in": -1}, "last-update": 1408522945}} Based on above ,this issue has been fixed already. Move status to Verified according to comment#12 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-0289.html |