-
Notifications
You must be signed in to change notification settings - Fork 18
Description
aii-shellfe has the --remove and --removelist options for cleaning up hosts which are no longer needed. However, these options work only if the host still exists, because they check the hostname against profiles-info.xml, and try to refresh the host profile. So these options cannot be used for cleaning up hosts which have already been deleted.
It would be useful to have an option to automatically clean up hosts which are no longer mentioned in profiles-info.xml, but which still have a profile cached under /var/quattor/cache. This cleanup variant should use the last available cached profile, and it should not try to update it (justification: the profile may not exist anymore, and even if it does exist, the various configuration files under /tftpboot and elsewhere were created using the cached version of the profile, so the cleanup should use the same information).
Actually, it could be argued that even --remove and --removelist should avoid trying to refresh the profiles of the hosts being removed, exactly because the items to clean up should be dictated by the already downloaded profile, and not any newer one.