Hi, the bug is still present in recent versions - I just tested it with FAI 3.2.15 (full log at the end of the mail attched). You can easily reproduce the problem using a non-existend mirror via FAI_DEBOOTSTRAP in make-fai-nfsroot.conf.
The error handling code improved, I get a "Exit code task_extrbase:
801" during execution. Anyway, the task just continues and seriously
fails and FAI exits with returncode 0.
I'm not sure whether we should better handle the task_error 801 in
task_extrbase() and add default STOP_ON_ERROR handling for it or if
additional code is required and a better approach.
Any opinions?
regards,
-mika-
################################################################################
# fai -v -C ~/test_fai -c TEST,ETCH -u test dirinstall /playground/test_chroot
-------------------------------------------------
Fully Automatic Installation - FAI
FAI 3.2.15, 22 Dec 2008 Copyright (c) 1999-2008
Thomas Lange <[email protected]>
-------------------------------------------------
Hostname set to test
Using configuration files from /root/test_fai
Skiping task_confdir
Calling task_setup
FAI_FLAGS:
Calling task_defclass
List of all classes: TEST ETCH
Calling task_defvar
Calling task_action
FAI_ACTION: dirinstall
Calling task_dirinstall
Installing into directory /playground/test_chroot
Calling task_extrbase
Unpacking Debian base archive
ftar: No matching class found in /root/test_fai/basefiles//
No base.tgz found. Calling debootstrap.
Creating base system using debootstrap version
Calling debootstrap etch --arch i386 --exclude=dhcp-client,info
/playground/test_chroot http://ftpppppppppp.de.debian.org/debian
I: Retrieving Release
E: Failed getting release file
http://ftpppppppppp.de.debian.org/debian/dists/etch/Release
Exit code task_extrbase: 801
touch: cannot touch `/playground/test_chroot/etc/fstab': No such file or
directory
Calling task_mirror
Calling task_debconf
Calling task_prepareapt
/usr/lib/fai/subroutines-linux: line 224: /playground/test_chroot/etc/hostname:
Not a directory
cp: accessing `/playground/test_chroot/etc/apt/': Not a directory
Calling task_updatebase
Updating base
mount: mount point /playground/test_chroot/proc does not exist
mount: mount point /playground/test_chroot/sys does not exist
mount: mount point /playground/test_chroot/dev does not exist
mount: mount point /playground/test_chroot/dev/pts does not exist
/playground/test_chroot/usr/sbin/dpkg-divert not available. Skipping.
/playground/test_chroot/usr/sbin/dpkg-divert not available. Skipping.
cp: cannot create regular file
`/playground/test_chroot/sbin/start-stop-daemon': No such file or directory
/usr/lib/fai/updatebase: line 18: /playground/test_chroot/usr/sbin/policy-rc.d:
No such file or directory
chmod: cannot access `/playground/test_chroot/usr/sbin/policy-rc.d': No such
file or directory
chroot: cannot run command `apt-get': No such file or directory
chroot: cannot run command `apt-get': No such file or directory
chroot: cannot run command `apt-get': No such file or directory
chroot: cannot run command `dpkg': No such file or directory
chroot: cannot run command `dpkg': No such file or directory
chroot: cannot run command `aptitude': No such file or directory
chroot: cannot run command `aptitude': No such file or directory
chroot: cannot run command `aptitude': No such file or directory
chroot: cannot run command `mktemp': No such file or directory
/usr/lib/fai/updatebase: line 45: /playground/test_chroot/: Is a directory
chroot: cannot run command `dpkg': No such file or directory
rm: cannot remove `/playground/test_chroot/': Is a directory
Calling task_instsoft
Installing software may take a while
install_packages: reading config files from directory
/root/test_fai/package_config
Calling task_configure
/usr/bin/fai-do-scripts: line 68: cd: /root/test_fai/scripts: No such file or
directory
Calling task_finish
/playground/test_chroot/usr/sbin/dpkg-divert not available. Skipping.
Fri Jan 9 22:17:22 CET 2009
The dirinstall took 4 seconds.
Calling task_savelog
End of /usr/sbin/fai
umount: /playground/test_chroot/dev: not found
# echo $?
0
################################################################################
signature.asc
Description: Digital signature

