xendomains produces ugly output on shutdown

Bug #928182 reported by Stefan Bader
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xen-common (Ubuntu)
Triaged
Low
Stefan Bader

Bug Description

Release: Precise
Architecture: amd64

Whenever a xen host is shutdown, /etc/init.d/xendomains tries to save guest domains to be migrated or restored on next boot. This currently does produce a lot of "terminated" messages on the console for various reasons. This is not necessarily a problem but at least can be quite confusing when actually looking at the console.

1. when gathering the list of guest domains, the script does not take into account that there can be inactive managed domains (those also get created when using virt-manager/libvirt to manage domains). Those do not have domain id and status fields, but the script then tried to save them using the amount of memory as the domain id.
2. Even for running guest domains the script reads 7 elements, but there are only 6. There is no cpu field (anymore?), so the state variable contains actually the runtime.
3. In the stop section, the script has multiple sections which start a watchdog process, then a command and then kill the watchdog process. This should be unnecessary as the watchdog process will either end itself after killing the watched command or after detecting the watched command has ended. Doing the kill of the watchdog process produces "killed" messages on the console which easily can be confused with having killed the command that has been watched.

I got a version of the script that I think is fixing those issues. I will attach a debdiff to this report as soon as I can add the bug number to the changelog.

Tags: patch
Revision history for this message
Stefan Bader (smb) wrote :
tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.