Description of problem: I create, destroy and recreate virtual machines guests frequently using virt-install and virsh commands in scripts. I watch the virt-manager graphs to gauge the activity of the guests as many of the commands are asynchronous. I have noticed for some time that often the graphs do not display for a recreated guest. It is necessary to stop and start virt-manager to display the graphs. The graphs are almost always displayed for a new guest. Version-Release number of selected component (if applicable): Installed Packages virt-manager.noarch 1.0.1-1.fc20 @local-updates How reproducible: more than 50% of the time Steps to Reproduce: 1. virt-install 2. virsh start 3. virsh stop 4. virsh undefine 5. virt-install Actual results: The new guest is displayed in virt-manager but the graphs are empty. Expected results: The new guest is displayed in virt-manager and the graphs start scrolling. Additional info:
Thanks for the report. Please provide virt-manager --debug output when reproducing
Created attachment 891586 [details] virt-manager --debug &>virt-manager.log &
Hmm, it's still a bit unclear what's causing the issue. Can you reproduce with virt-manager upstream which has some improved debugging? git clone git://git.fedorahosted.org/virt-manager.git cd virt-manager ./virt-manager --debug
Created attachment 892161 [details] ./virt-manager --debug &>../virt-manager.log &
Hmm, this trace is slightly different but looks more expected. The gist of the issue is that when a VM is shutting down or starting up or migrating, the disk polling bits often fail. Once a disk poll fails, virt-manager blacklists that disk device and no longer polls it, even if the VM reboots. We should make this heuristic a little more forgiving, maybe require the poll to fail 3 times in a row before we give up on it, and consider retrying the poll if a VM reboots.
Polling fails, hmmm... Is this related to why sometimes all the graphs stop moving when I request the shutdown of one guest?
(In reply to Dean Hunter from comment #6) > Polling fails, hmmm... > > Is this related to why sometimes all the graphs stop moving when I request > the shutdown of one guest? Very likely
Upstream patch posted: https://www.redhat.com/archives/virt-tools-list/2017-September/msg00058.html
Upstream commit: commit 12117ba148ec47eb2aa15e192c6026a2c3026ed1 Author: Pavel Hrdina <phrdina> Date: Fri Sep 8 09:36:58 2017 +0200 connection: change blacklist from array to dict