Skip to content

Implement auto-cleanup of deleted hosts #303

@gombasg

Description

@gombasg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions