Acc. to the script, it strips 17 digits for the name.
Also the readln doesn''t work in 3.1 anymore, because my xm list gives
one parameter less than parseln() expects:
[root@s12 sysconfig]# xm list
Name ID Mem VCPUs State
Time(s)
Domain-0 0 1985 8 r-----
9685.9
vs01 8 2000 4 -b----
32.4
[root@s12 sysconfig]#
/etc/init.d/xendomains:
---
parseln()
{
name=`echo "$1" | cut -c0-17`
name=${name%% *}
rest=`echo "$1" | cut -c18- `
# read id mem cpu vcpu state tm < <(echo "$rest")
# -- fixed wsc 20070601
read id mem vcpu state tm < <(echo "$rest")
}
-> cpu not present. So
all_zombies()
{
while read LN; do
parseln "$LN"
if test $id = 0; then continue; fi
if test "$state" != "-b---d" -a "$state"
!= "-----d"; then
return 1;
fi
done < <(xm list | grep -v ''^Name'')
return 0
}
returns "1" always.
And: Shouldn''t it be the other way round: return 1 only if all have
state != ....d?
Otherwise this get''s "break" as soon as one specified $2.
watchdog_xm()
[...]
# go to kill immediately if there''s only zombies left
if all_zombies && test -n "$2"; then echo -n
"B"; break; fi
[...]
So: Shouldn''t it be
# go to kill immediately if there''s only zombies left
if test -n "$2" && ! all_zombies; then echo -n
"B"; break; fi
?
I would suggest attached patch for /etc/init.d/xendomains.
br
Walter
> -----Original Message-----
> From: xen-users-bounces@lists.xensource.com
> [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of
> Michael Watters
> Sent: Tuesday, May 29, 2007 6:59 PM
> To: xen-users@lists.xensource.com
> Subject: [Xen-users] Error stopping xendomains
>
> Is there a limit on how long a domU name can be? When I run
> /etc/init.d/xendomains stop I get a bunch of errors like this:
>
> [root@xentest6 images]# /etc/init.d/xendomains stop [FAILED]
> Shutting down Xen domains: host.applepenguin(save)Error:
> Domain ''.org''
> does not exist.
> !(shut).Error: Domain ''.org'' does not exist.
> /etc/init.d/xendomains: line 306: 3730 Terminated
> watchdog_xm save
> !/etc/init.d/xendomains: line 188: 3740 Terminated
> watchdog_xm shutdown
> host.earwig-facto(save)/etc/init.d/xendomains: line 306: 3740
> Terminated watchdog_xm shutdown
> .Error: Domain ''ry.net'' does not exist.
> !(shut).Error: Domain ''ry.net'' does not exist.
> /etc/init.d/xendomains: line 306: 3757 Terminated
> watchdog_xm save
> !/etc/init.d/xendomains: line 188: 3768 Terminated
> watchdog_xm shutdown
> host.kingrst.com(save)/etc/init.d/xendomains: line 306: 3768
> Terminated watchdog_xm shutdown
> ................/etc/init.d/xendomains: line 188: 3785
> Terminated watchdog_xm save
> host.slave-networ(save)/etc/init.d/xendomains: line 306: 3785
> Terminated watchdog_xm save
> .Error: Domain ''k.org'' does not exist.
> !(shut).Error: Domain ''k.org'' does not exist.
> /etc/init.d/xendomains: line 306: 4170 Terminated
> watchdog_xm save
> !/etc/init.d/xendomains: line 188: 4190 Terminated
> watchdog_xm shutdown
> host4.thegbox.com(save)/etc/init.d/xendomains: line 306: 4190
> Terminated watchdog_xm shutdown
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xensource.com
> http://lists.xensource.com/xen-users
>
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users