Displaying 4 results from an estimated 4 matches for "log_action_begin_msg".
2014 Mar 23
1
Bug#742397: xen-utils-common: /etc/init.d/dom0weight is hardcoded to use xm
...nt_msg
done
return 1
}
do_start_restore()
{
[ -n "$XENDOMAINS_SAVE" ] || return
[ -d "$XENDOMAINS_SAVE" ] || return
[ -n "$XENDOMAINS_RESTORE" ] || return
for file in $XENDOMAINS_SAVE/*; do
if [ -f $file ] ; then
name="${file##*/}"
log_action_begin_msg "Restoring Xen domain $name (from $file)"
out=$(xen restore "$file" 2>&1 1>/dev/null)
case "$?" in
0)
rm "$file"
domains[$name]='started'
log_action_end_msg 0
;;
*)...
2012 Jun 24
3
Bug#678719: xen-utils-common: please label all created directories for SE Linux
...5.000000000 +1000
@@ -152,6 +152,7 @@
{
[ -n "$XENDOMAINS_SAVE" ] || return
[ -d "$XENDOMAINS_SAVE" ] || mkdir -m 0700 -p "$XENDOMAINS_SAVE"
+ [ -x /sbin/restorecon ] && /sbin/restorecon "$XENDOMAINS_SAVE"
while read id name rest; do
log_action_begin_msg "Saving Xen domain $name ($id)"
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh...
2012 Dec 03
1
Bug#695041: "service xendomains stop" sleeps XENDOMAINS_STOP_MAXWAIT seconds for every domain
...a
not running domain as running. As a consequence thereof
"/etc/init.d/xendomains stop" needs more than
XENDOMAINS_STOP_MAXWAIT * "number of xen domains known to xend" seconds
to run.
Here is a pseudo call trace:
do_stop_shutdown()
{
...
while read id name rest; do
log_action_begin_msg "Waiting for Xen domain $name ($id) to shut down"
timeout_domain "$name" "$XENDOMAINS_STOP_MAXWAIT"
log_action_end_msg $?
done < <(/usr/lib/xen-common/bin/xen-init-list)
}
so timeout_domain is called with the name of the domain.
timeout_domain()
{...
2012 May 06
1
Bug#671750: Configuration of domain save/restore broken
...then ?
and for rdnames:
if ! contains_something "$XENDOMAINS_AUTO"
then
return
fi
etc.
4.1.2-5 has unconditionally for start restore:
for file in $XENDOMAINS_SAVE/*; do
if [ -f $file ] ; then
?
and for stop_save:
while read id name rest; do
log_action_begin_msg "Saving Xen domain $name ($id)"
mkdir -p "$XENDOMAINS_SAVE"
Both these break with an empty XENDOMAINS_SAVE, even though this is
still documented to work.
Furthermore, the XENDOMAINS_AUTO setting is even more broken: when set
to empty (per the docs), it is again not checked...