This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes

Bug 182321

Summary: "xm list" crashes after a domain has been shutdown with reboot -f
Product: [Fedora] Fedora Reporter: Stephen Tweedie <sct>
Component: xenAssignee: Rik van Riel <riel>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: bstein, katzj
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-22 15:30:54 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Stephen Tweedie 2006-02-21 15:35:59 EST
Description of problem:
After a guest domain has been created and then shut down from inside with
  /sbin/reboot -f
the domain does not shutdown cleanly; and furthermore, xend seems to corrupt its
internal state, as subsequent "xm list" commands fail with Xen protocol errors.

Version-Release number of selected component (if applicable):

How reproducible:
100% (on x86_64, have not tried i386 yet.)

Steps to Reproduce:
1. xm create -c $guest 
2. Inside guest, run (as root) /sbin/reboot -f
3. Inside dom0, "xm list"
Actual results:
xm list crashes

Expected results:
xm list should not crash.

Additional info: 
Doing a "service xend restart" restores normal service.

The "xm list" traceback is:

[root@dhcp83-39 ~]# xm list
Unexpected error: xen.xend.XendProtocol.XendError

Please report to
Traceback (most recent call last):
  File "/usr/sbin/xm", line 10, in ?
  File "/usr/lib64/python2.4/site-packages/xen/xm/", line 906, in main
    rc = cmd(args)
  File "/usr/lib64/python2.4/site-packages/xen/xm/", line 356, in xm_list
   doms = getDomains(params)
  File "/usr/lib64/python2.4/site-packages/xen/xm/", line 332, in getDomains
    return server.xend_list_domains()
  File "/usr/lib64/python2.4/site-packages/xen/xend/", line 200, in
    return self.xendGet(self.domainurl(), {'detail': '1'})
  File "/usr/lib64/python2.4/site-packages/xen/xend/", line 150, in
    return self.client.xendGet(url, args)
  File "/usr/lib64/python2.4/site-packages/xen/xend/", line 92,
in xendGet
    return self.xendRequest(url, "GET", args)
  File "/usr/lib64/python2.4/site-packages/xen/xend/", line 182,
in xendRequest
  File "/usr/lib64/python2.4/site-packages/xen/xend/", line 112,
in handleStatus
    return self.handleException(XendError(message))
  File "/usr/lib64/python2.4/site-packages/xen/xend/", line 138,
in handleException
    raise err
xen.xend.XendProtocol.XendError: Internal server error
Comment 1 Stephen Tweedie 2006-02-21 15:39:05 EST
Running "/sbin/poweroff -f" within the guest domain quits it without any
problems, btw.
Comment 2 Jeremy Katz 2006-02-22 15:30:54 EST

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