ae453229a8
"system prune -a -f" deletes unused container images, as well as containers which are stopped. This removes useful HA containers *_init_bundle and *_restart_bundle, which makes debugging more complex. This also removes tags whose image id are used by pacemaker HA container. Reduce the effect of cleanup by keeping stopped containers, which in effect ensures that we also keep the tags used by HA containers. Note: keep the aggressive cleanup for upgrade_tasks, because they are always followed by deployed tasks, which recreate the missing containers. Note2: This doesn't apply for podman containers, whose cleanup looks similar but is not as aggressive. Change-Id: I936fb965687b961602e677bcca72f403121cbb0d Closes-Bug: #1846368