Package: xen-tools Version: 4.3.1-1 Severity: normal Tags: upstream Dear Maintainer,
The xenRunning function used by xen-delete-image to detect if the guest to delete is running uses the xm list command. Yet that particular command displays all created guests not only those running. There is a --state option that should be used to check the machines status. Here are sample output from one of our Dom0: # xm list Name ID Mem VCPUs State Time(s) Domain-0 0 1023 8 r----- 208.0 machine0.subdomain.domain.tld 1 1024 1 -b---- 768.7 machine1.subdomain.domain.tld 256 1 0.0 machine2.subdomain.domain.tld 2 512 1 -b---- 38.3 machine3.subdomain.domain.tld 2096 2 0.0 machine4.subdomain.domain.tld 1024 1 3.8 machine5.subdomain.domain.tld 1024 2 113.7 machine6.subdomain.domain.tld 1024 1 5.2 machine7.subdomain.domain.tld 512 1 0.0 machine8.subdomain.domain.tld 4096 3 0.0 # xm list --state running Name ID Mem VCPUs State Time(s) Domain-0 0 1023 8 r----- 208.0 machine0.subdomain.domain.tld 1 1024 1 -b---- 768.7 machine2.subdomain.domain.tld 2 512 1 -b---- 38.3 Note that 'running' may not be the only state to check and that the --state option does not seem to accept mulptiple states (e.g. like in --state running,dying or --state running --state dying); and looks fairly broken, e.g.: # xm list --state blocked Never lists blocked machines... So a proper solution might be to more accurately parse the whole output of the xm list (with no other arguments) command. Regards -- System Information: Debian Release: 7.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org