ManageIQ / manageiq-appliance-build

Scripts to build ManageIQ appliances
Apache License 2.0
10 stars 55 forks source link

Add a script that can be run by cron to clean up factory build vms #543

Closed bdunne closed 1 year ago

bdunne commented 1 year ago

If something goes wrong in the VM build process, ImageFactory will give up after 7200 seconds. It doesn't clean up that VM, it just takes a screenshot. If too mnay running VMs are left around it causes problems for new builds since the host can run out of memory.

CPU time is not perfect, but it should be good enough.

miq-bot commented 1 year ago

Checked commit https://github.com/bdunne/manageiq-appliance-build/commit/c45720f84b783fa1cd371e84df8a18105351a501 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint 0 files checked, 0 offenses detected Everything looks fine. :cake: