Bug 796092
Summary: | [virt-manager] Disk I/O graphic doesn't update after shutting down and starting a guest again | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Geyang Kong <gkong> | ||||||||
Component: | virt-manager | Assignee: | Cole Robinson <crobinso> | ||||||||
Status: | CLOSED UPSTREAM | QA Contact: | |||||||||
Severity: | low | Docs Contact: | |||||||||
Priority: | low | ||||||||||
Version: | unspecified | CC: | acathrow, berrange, crobinso, cwei, dallan, jwu, mjenner, mzhan, syeghiay, zpeng | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2014-02-01 13:16:36 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: | |||||||||||
Attachments: |
|
Description
Geyang Kong
2012-02-22 09:49:31 UTC
Created attachment 564897 [details]
Virt-manager's log
Created attachment 564898 [details]
Screenshot
[Wed, 22 Feb 2012 16:13:19 virt-manager 3403] DEBUG (engine:1021) Starting vm 'T1'. [Wed, 22 Feb 2012 16:13:52 virt-manager 3403] DEBUG (engine:991) Destroying vm 'T1'. [Wed, 22 Feb 2012 16:13:53 virt-manager 3403] ERROR (domain:1528) Error reading disk stats for 'T1' dev 'vda': Requested operation is not valid: domain is not running [Wed, 22 Feb 2012 16:13:53 virt-manager 3403] DEBUG (domain:1529) Adding vda to skip list. [Wed, 22 Feb 2012 16:13:59 virt-manager 3403] DEBUG (engine:1021) Starting vm 'T1'. [Wed, 22 Feb 2012 16:14:24 virt-manager 3403] DEBUG (engine:550) Exiting app normally. Here's the root cause, we try polling the VM while it is shutting down, the poll returns an error, we blacklist the device thinking its broken. Fixed upstream: http://git.fedorahosted.org/git?p=virt-manager.git;a=commit;h=0782a10b2980945aaadf0e3e020f8ded66308ae0 Fixed in virt-manager-0.9.0-11.el6 This bug is not fixed with: virt-manager-0.9.0-11.el6.x86_64 libvirt-0.9.10-9.el6.x86_64 python-virtinst-0.600.0-8.el6.noarch qemu-kvm-0.12.1.2-2.269.el6.x86_64 Steps: 1. Prepared rhel6.3 guest. 2. Start virt-manager. #virt-manager --debug 3. Click "Edit->Preferences->Stats" and check the Disk I/O checkbox. 4. Click "View->Graph->Disk I/O". 5. Start the guest and make sure you can see polygonal line in Disk I/O graphic. 6. Shutdown the guest and wait until you can see the end of the polygonal line. 7. Wait about 5 seconds after step 5 and start the guest again. 8. Check the Disk I/O graphic 9. There is nothing in Disk I/O graphic. Related debug info as follows: 2012-04-05 14:39:27,920 (engine:1021): Starting vm 'rhel6.3'. 2012-04-05 14:39:46,193 (engine:426): Tick is slow, not running at requested rate. 2012-04-05 14:40:07,136 (engine:991): Destroying vm 'rhel6.3'. 2012-04-05 14:40:07,983 (domain:1531): Error reading disk stats for 'rhel6.3' dev 'vda': Unable to read from monitor: Connection reset by peer 2012-04-05 14:40:07,985 (domain:1533): Adding vda to skip list 2012-04-05 14:40:07,988 (domain:1531): Error reading disk stats for 'rhel6.3' dev 'hdc': Requested operation is not valid: domain is not running 2012-04-05 14:40:07,989 (domain:1536): Aren't running, don't add to skiplist 2012-04-05 14:40:09,029 (domain:1531): Error reading disk stats for 'rhel6.3' dev 'hdc': Requested operation is not valid: domain is not running 2012-04-05 14:40:09,029 (domain:1533): Adding hdc to skip list 2012-04-05 14:40:18,618 (engine:1021): Starting vm 'rhel6.3'. Changed the status to ASSIGNED Created attachment 575300 [details]
xml file of guest
Hmm, unfortunately this stuff is all just racey. My patch makes things a bit better but it needs a better solution. Which will have to wait till 6.4 unfortunately Fixed upstream now: commit 17c0ae3a3c3c4f760e85703b063b53d2979f4020 Author: Cole Robinson <crobinso> Date: Sat Feb 1 08:15:24 2014 -0500 domain: Reset net/disk skip lists when VM is inactive (bz 796092) Racey shutdown can mean we try to poll disk stats at a time when it won't work. Resetting the lists give things a chance to work correctly when the VM is rebooted. |