Bug 692681

Summary: [libvirt] libvirt returns 'VIR_ERR_OPERATION_INVALID' after migration along with 'VIR_ERR_NO_DOMAIN'
Product: Red Hat Enterprise Linux 6 Reporter: Haim <hateya>
Component: libvirtAssignee: Michal Privoznik <mprivozn>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: abaron, dallan, danken, dnaori, eblake, mgoldboi, yeylon, yoyzhang
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-22 08:11:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 618986, 682015    

Description Haim 2011-03-31 20:21:59 UTC
Description of problem

on migration scenario, libvirt sends the following events to vdsm in case vdsm tries to query blockstats on not running vm: 

'VIR_ERR_NO_DOMAIN = 42' and 'VIR_ERR_OPERATION_INVALID = 55'. 

This state confuses VDSM and as a result its prints a traceback to logs whenever migration occurs (successfully of course).

we added some logging in vdsm log during migration scenario and got the following: 

Thread-52::ERROR::2011-03-31 11:01:45,844::libvirtconnection::73::vds::(wrapper) ### Requested operation is not valid: domain is not running
Thread-52::ERROR::2011-03-31 11:01:45,845::libvirtconnection::74::vds::(wrapper) ### 55
Thread-66::ERROR::2011-03-31 11:01:45,849::libvirtconnection::73::vds::(wrapper) ### Domain not found: no domain with matching uuid 'd9cab512-5438-48ff-8f55-d600cc883be7'
Thread-66::ERROR::2011-03-31 11:01:45,850::libvirtconnection::74::vds::(wrapper) ### 42
Thread-66::ERROR::2011-03-31 11:01:45,859::libvirtconnection::73::vds::(wrapper) ### Domain not found: no domain with matching uuid 'd9cab512-5438-48ff-8f55-d600cc883be7'
Thread-66::ERROR::2011-03-31 11:01:45,859::libvirtconnection::74::vds::(wrapper) ### 42
Thread-76::ERROR::2011-03-31 11:01:51,903::libvirtconnection::73::vds::(wrapper) ### Domain not found: no domain with matching uuid 'd9cab512-5438-48ff-8f55-d600cc883be7'
Thread-76::ERROR::2011-03-31 11:01:51,903::libvirtconnection::74::vds::(wrapper) ### 42

attached libvirt logs.

Comment 1 RHEL Program Management 2011-04-04 02:05:22 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 2 Michal Privoznik 2011-04-29 15:04:59 UTC
Haim,

could you please attach those logs?

Comment 3 Dave Allan 2011-05-06 14:29:43 UTC
Hi Haim, it looks like you thought you attached the logs, but they are not attached.  Can you provide them?  Thanks, Dave