Re: Send notification at the end of a deployment

Robert Markula <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <[email protected]>
Hi Romain,

take a look at the chapter "Saving log files" in the FAI guide [1]. If 
configured, FAI can save all logs to a remote log server via SSH.

That being said, I find it difficult to define when a host install 
process has actually failed. There are often situations where an install 
completes successfully, but the following bootup fails because some 
minor thing broke during install, e.g. because GRUB hasn't been set up 
correctly. And even if the system boots successfully, maybe a critical 
component during install failed which prevents you from logging in remotely.

So I always check at least the FAI error.log on the log server to get a 
quick glimpse if anything went wrong during install. On automated 
systems I have mechanisms in place that essentially perform integrity 
checks on the newly installed system and that are capable of fixing 
select issues like a broken SSH access.

Cheers,


Robert

[1] 
https://fai-project.org/fai-guide/#_a_id_isavelog_a_saving_log_files_task_savelog


Am 24.03.22 um 14:45 schrieb Romain Pelissier:
> Hello everybody,
> Do you know a way to execute a script on the server (FAI) side after a 
> successful or unsuccessful client's deployment?
> In case of an unsuccessful attempt, is there a way to get some logs 
> and attach them to an email for example?
> Thanks for any useful info you can provide about this :)
> Romain
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.