WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-bugs

[Xen-bugs] [Bug 1001] New: Xen auto feature does not save and restore co

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 1001] New: Xen auto feature does not save and restore correctly.
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Wed, 20 Jun 2007 08:18:18 -0700
Delivery-date: Wed, 20 Jun 2007 08:19:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1001

           Summary: Xen auto feature does not save and restore correctly.
           Product: Xen
           Version: 3.0.3
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Guest-OS
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: JohnWmAustin@xxxxxxxxx


I have two guest systems that I have been using for about a week with no
problems.

When I created links to them in /etc/xen/auto, they started up correctly the
first time I restarted the system. 

On subsequent system restarts, these DomU guests were not restarted. On
examination of the logs it appears that the system is failing to save the
images.

I note that the XendCheckpoint.py module reports this error as:

[2007-06-19 23:32:47 xend 3129] ERROR (XendCheckpoint:106) Save failed on
domain CC_test (4).
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/xen/xend/XendCheckpoint.py", line
100, in save
    forkHelper(cmd, fd, saveInputHandler, False)
  File "/usr/lib64/python2.4/site-packages/xen/xend/XendCheckpoint.py", line
227, in forkHelper
    raise XendError("%s failed" % string.join(cmd))
XendError: /usr/lib64/xen/bin/xc_save 21 4 0 0 0 failed

If you take the time to examine the Python code, you may notice that the error
code is not reported. There is one message for a specific error condition and a
generic message that omits the cause for any other conditions. This is a minor
error that probably contributes to the couple of dozen similar reports you have
about this problem.

    status = child.wait()
    if status >> 8 == 127:
        raise XendError("%s failed: popen failed" % string.join(cmd))
    elif status != 0:
        raise XendError("%s failed" % string.join(cmd))

I have been able to circumvent the problem by deleting the save files after a
successful system restart. This allows Xen to save the guests to new image
files that it can use to restore them after the reboot. If these files are not
deleted, subsequent save operations (initiated by a normal shutdown) will fail.

Two things need to be done:

1) delete the save files after they have been used to restart the associated
DomUs (or delete before saving).

2) think about writing better error messages in the Python code.

Thank you.


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 1001] New: Xen auto feature does not save and restore correctly., bugzilla-daemon <=