Bug 688804

Summary: virsh save guest got Migration unexpectedly failed when trying to save guest to /root
Product: Red Hat Enterprise Linux 6 Reporter: Vivian Bian <vbian>
Component: libvirtAssignee: Osier Yang <jyang>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: ccui, dallan, dyuan, eblake, jyang, mzhan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 688807 (view as bug list) Environment:
Last Closed: 2011-06-08 17:59:31 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:
Bug Depends On: 584077, 670727, 698496    
Bug Blocks: 688807    

Description Vivian Bian 2011-03-18 05:00:22 UTC
Description of problem:


Version-Release number of selected component (if applicable):
libvirt-0.8.1-27.el6_0.5.x86_64
qemu-kvm-0.12.1.2-2.113.el6_0.8.x86_64
kernel-2.6.32-71.20.1.el6.x86_64



How reproducible:
always

Steps to Reproduce:

# virsh list --all
 Id Name                 State
----------------------------------
  9 local                running

# virsh save local local.save
error: Failed to save domain local to local.save
error: operation failed: Migration unexpectedly failed


Actual results:
Failed to save guest

Expected results:
succeed 

Additional info:

Comment 2 Vivian Bian 2011-03-18 05:15:27 UTC
# virsh save local /opt/test.save
Domain local saved to /opt/test.save

# virsh restore /opt/test.save
Domain restored from /opt/test.save

# virsh save local local.save
error: Failed to save domain local to local.save
error: operation failed: Migration unexpectedly failed

# pwd 
/root

Tried some times , found if we save the guest to /root , then will always
failed . Save to other directories , will succeed .

Comment 3 Vivian Bian 2011-03-18 05:21:14 UTC
[root@dhcp-93-106 ~]# LIBVIRT_DEBUG=1 LIBVIRT_LOG_FILTERS="1:util 1:libvirt 1:qemu 1:remote" virsh save local local.save
21:30:28.847: debug : virInitialize:341 : register drivers
21:30:28.853: debug : virRegisterDriver:929 : registering Test as driver 0
21:30:28.853: debug : virRegisterNetworkDriver:735 : registering Test as network driver 0
21:30:28.853: debug : virRegisterInterfaceDriver:766 : registering Test as interface driver 0
21:30:28.853: debug : virRegisterStorageDriver:797 : registering Test as storage driver 0
21:30:28.853: debug : virRegisterDeviceMonitor:828 : registering Test as device driver 0
21:30:28.853: debug : virRegisterSecretDriver:859 : registering Test as secret driver 0
21:30:28.853: debug : virRegisterNWFilterDriver:890 : registering Test as network filter driver 0
21:30:28.853: debug : virRegisterDriver:929 : registering ESX as driver 1
21:30:28.853: debug : virRegisterInterfaceDriver:766 : registering ESX as interface driver 1
21:30:28.853: debug : virRegisterNetworkDriver:735 : registering ESX as network driver 1
21:30:28.853: debug : virRegisterStorageDriver:797 : registering ESX as storage driver 1
21:30:28.853: debug : virRegisterDeviceMonitor:828 : registering ESX as device driver 1
21:30:28.853: debug : virRegisterSecretDriver:859 : registering ESX as secret driver 1
21:30:28.853: debug : virRegisterNWFilterDriver:890 : registering ESX as network filter driver 1
21:30:28.853: debug : virRegisterDriver:929 : registering remote as driver 2
21:30:28.853: debug : virRegisterNetworkDriver:735 : registering remote as network driver 2
21:30:28.853: debug : virRegisterInterfaceDriver:766 : registering remote as interface driver 2
21:30:28.853: debug : virRegisterStorageDriver:797 : registering remote as storage driver 2
21:30:28.853: debug : virRegisterDeviceMonitor:828 : registering remote as device driver 2
21:30:28.853: debug : virRegisterSecretDriver:859 : registering remote as secret driver 2
21:30:28.853: debug : virRegisterNWFilterDriver:890 : registering remote as network filter driver 2
21:30:28.853: debug : virConnectOpenAuth:1471 : name=(null), auth=0x3c6512aca0, flags=0
21:30:28.854: debug : do_open:1208 : no name, allowing driver auto-select
21:30:28.854: debug : do_open:1216 : trying driver 0 (Test) ...
21:30:28.854: debug : do_open:1222 : driver 0 Test returned DECLINED
21:30:28.854: debug : do_open:1216 : trying driver 1 (ESX) ...
21:30:28.854: debug : do_open:1222 : driver 1 ESX returned DECLINED
21:30:28.854: debug : do_open:1216 : trying driver 2 (remote) ...
21:30:28.854: debug : remoteOpen:1093 : Auto-probe remote URI
21:30:28.854: debug : doRemoteOpen:570 : proceeding with name = 
21:30:28.857: debug : remoteIO:9756 : Do proc=66 serial=0 length=28 wait=(nil)
21:30:28.857: debug : remoteIO:9831 : We have the buck 66 0x7fb99a8b4010 0x7fb99a8b4010
21:30:28.858: debug : remoteIODecodeMessageLength:9187 : Got length, now need 64 total (60 more)
21:30:28.858: debug : remoteIOEventLoop:9682 : Giving up the buck 66 0x7fb99a8b4010 (nil)
21:30:28.858: debug : remoteIO:9862 : All done with our call 66 (nil) 0x7fb99a8b4010
21:30:28.858: debug : remoteIO:9756 : Do proc=1 serial=1 length=40 wait=(nil)
21:30:28.859: debug : remoteIO:9831 : We have the buck 1 0x117edc0 0x117edc0
21:30:28.867: debug : remoteIODecodeMessageLength:9187 : Got length, now need 56 total (52 more)
21:30:28.867: debug : remoteIOEventLoop:9682 : Giving up the buck 1 0x117edc0 (nil)
21:30:28.867: debug : remoteIO:9862 : All done with our call 1 (nil) 0x117edc0
21:30:28.867: debug : remoteIO:9756 : Do proc=110 serial=2 length=28 wait=(nil)
21:30:28.867: debug : remoteIO:9831 : We have the buck 110 0x117edc0 0x117edc0
21:30:28.869: debug : remoteIODecodeMessageLength:9187 : Got length, now need 76 total (72 more)
21:30:28.869: debug : remoteIOEventLoop:9682 : Giving up the buck 110 0x117edc0 (nil)
21:30:28.869: debug : remoteIO:9862 : All done with our call 110 (nil) 0x117edc0
21:30:28.869: debug : doRemoteOpen:895 : Auto-probed URI is qemu:///system
21:30:28.869: debug : doRemoteOpen:914 : Adding Handler for remote events
21:30:28.869: debug : doRemoteOpen:921 : virEventAddHandle failed: No addHandleImpl defined. continuing without events.
21:30:28.869: debug : do_open:1222 : driver 2 remote returned SUCCESS
21:30:28.869: debug : do_open:1242 : network driver 0 Test returned DECLINED
21:30:28.869: debug : do_open:1242 : network driver 1 ESX returned DECLINED
21:30:28.869: debug : do_open:1242 : network driver 2 remote returned SUCCESS
21:30:28.869: debug : do_open:1261 : interface driver 0 Test returned DECLINED
21:30:28.869: debug : do_open:1261 : interface driver 1 ESX returned DECLINED
21:30:28.869: debug : do_open:1261 : interface driver 2 remote returned SUCCESS
21:30:28.869: debug : do_open:1281 : storage driver 0 Test returned DECLINED
21:30:28.869: debug : do_open:1281 : storage driver 1 ESX returned DECLINED
21:30:28.869: debug : do_open:1281 : storage driver 2 remote returned SUCCESS
21:30:28.869: debug : do_open:1301 : node driver 0 Test returned DECLINED
21:30:28.869: debug : do_open:1301 : node driver 1 ESX returned DECLINED
21:30:28.869: debug : do_open:1301 : node driver 2 remote returned SUCCESS
21:30:28.869: debug : do_open:1328 : secret driver 0 Test returned DECLINED
21:30:28.869: debug : do_open:1328 : secret driver 1 ESX returned DECLINED
21:30:28.869: debug : do_open:1328 : secret driver 2 remote returned SUCCESS
21:30:28.869: debug : do_open:1348 : nwfilter driver 0 Test returned DECLINED
21:30:28.869: debug : do_open:1348 : nwfilter driver 1 ESX returned DECLINED
21:30:28.869: debug : do_open:1348 : nwfilter driver 2 remote returned SUCCESS
21:30:28.869: debug : virDomainLookupByName:2130 : conn=0x117b8a0, name=local
21:30:28.869: debug : remoteIO:9756 : Do proc=23 serial=3 length=40 wait=(nil)
21:30:28.869: debug : remoteIO:9831 : We have the buck 23 0x117eea0 0x117eea0
21:30:28.870: debug : remoteIODecodeMessageLength:9187 : Got length, now need 88 total (84 more)
21:30:28.870: debug : remoteIOEventLoop:9682 : Giving up the buck 23 0x117eea0 (nil)
21:30:28.870: debug : remoteIO:9862 : All done with our call 23 (nil) 0x117eea0
21:30:28.870: debug : virGetDomain:382 : New hash entry 0x117b610
21:30:28.870: debug : virDomainSave:2376 : domain=0x117b610, to=local.save
21:30:28.870: debug : remoteIO:9756 : Do proc=55 serial=4 length=80 wait=(nil)
21:30:28.870: debug : remoteIO:9831 : We have the buck 55 0x117f130 0x117f130
21:30:29.018: debug : remoteIODecodeMessageLength:9187 : Got length, now need 184 total (180 more)
21:30:29.018: debug : remoteIOEventLoop:9682 : Giving up the buck 55 0x117f130 (nil)
21:30:29.018: debug : remoteIO:9862 : All done with our call 55 (nil) 0x117f130
error: Failed to save domain local to local.save
21:30:29.018: debug : virDomainFree:2218 : domain=0x117b610
21:30:29.018: debug : virUnrefDomain:463 : unref domain 0x117b610 local 1
21:30:29.018: debug : virReleaseDomain:416 : release domain 0x117b610 local 637257d6-4654-3a3d-28ea-9ebbf9279e22
21:30:29.018: debug : virReleaseDomain:433 : unref connection 0x117b8a0 2
error: operation failed: Migration unexpectedly failed

21:30:29.018: debug : virConnectClose:1497 : conn=0x117b8a0
21:30:29.018: debug : virUnrefConnect:294 : unref connection 0x117b8a0 1
21:30:29.018: debug : remoteIO:9756 : Do proc=2 serial=5 length=28 wait=(nil)
21:30:29.018: debug : remoteIO:9831 : We have the buck 2 0x117eea0 0x117eea0
21:30:29.019: debug : remoteIODecodeMessageLength:9187 : Got length, now need 56 total (52 more)
21:30:29.019: debug : remoteIOEventLoop:9682 : Giving up the buck 2 0x117eea0 (nil)
21:30:29.019: debug : remoteIO:9862 : All done with our call 2 (nil) 0x117eea0
21:30:29.019: debug : virReleaseConnect:249 : release connection 0x117b8a0

Comment 4 Osier Yang 2011-03-18 07:25:46 UTC
I considered to duplicate this to https://bugzilla.redhat.com/show_bug.cgi?id=619846, but as this BZ is to 6.0.Z, so perhaps we need to keep it, and
backport the fix when 619846 is fixed.

Comment 5 RHEL Program Management 2011-04-04 01:59:23 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 6 Dave Allan 2011-06-08 17:59:31 UTC
(In reply to comment #4)
> I considered to duplicate this to
> https://bugzilla.redhat.com/show_bug.cgi?id=619846, but as this BZ is to 6.0.Z,
> so perhaps we need to keep it, and
> backport the fix when 619846 is fixed.

I agree that this BZ is a dup of 619846, and I'm closing as such.

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