Bug 994874

Summary: [vdsm] Stopping a vm fails with "RuntimeError: dictionary changed size during iteration"
Product: Red Hat Enterprise Virtualization Manager Reporter: Gadi Ickowicz <gickowic>
Component: vdsmAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED DUPLICATE QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: abaron, bazulay, hateya, iheim, lpeer, nlevinki, yeylon
Target Milestone: ---Keywords: Regression, TestBlocker, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-08 07:40:00 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:
Attachments:
Description Flags
engine + vdsm logs none

Description Gadi Ickowicz 2013-08-08 07:30:48 UTC
Created attachment 784242 [details]
engine + vdsm logs

Description of problem:
Stopping a vm fails with "RuntimeError: dictionary changed size during iteration". 

Version-Release number of selected component (if applicable):
vdsm-4.12.0-37.gitfd6a1b7.el6ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create a vm and install OS with guest agent on it
2. Stop the vm

Actual results:
vdsm fails to stop the vm with the following exception:
Thread-483::ERROR::2013-08-08 05:44:20,705::BindingXMLRPC::993::vds::(wrapper) unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/BindingXMLRPC.py", line 979, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/BindingXMLRPC.py", line 211, in vmDestroy
    return vm.destroy()
  File "/usr/share/vdsm/API.py", line 322, in destroy
    res = v.destroy()
  File "/usr/share/vdsm/vm.py", line 4281, in destroy
    response = self.releaseVm()
  File "/usr/share/vdsm/vm.py", line 4249, in releaseVm
    self.cif.removeVmFromMonitoredDomains(self.id)
  File "/usr/share/vdsm/clientIF.py", line 125, in removeVmFromMonitoredDomains
    for dom in self.domainVmIds:
RuntimeError: dictionary changed size during iteration


Expected results:
VM should stop

Additional info:

Comment 1 Haim 2013-08-08 07:40:00 UTC

*** This bug has been marked as a duplicate of bug 994551 ***