xendomains produces ugly output on shutdown
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.
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/
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: | added: patch |