feat(clean-old-vms): remove files of unkown and old `DONE` VMs
When a virtual machine reach the DONE
state, the files under
/var/lib/one/vms/<VMID>
and the log file /var/lib/one/<VMID>.log
are not removed for auditing purpose.
The clean-done-vms
script will cleanup thoses files and directories
in two cases:
- for VM in state
DONE
for longer than a configurable time (30 days by default) - for directories and files not associated with any known VMs in
OpenNebula database (probably already purged during
onedb purge-done
)