GLab / ToMaTo

German-Lab ToMaTo
http://www.tomato-lab.org
32 stars 21 forks source link

Template fetching #1451

Closed a-gerhard closed 7 years ago

a-gerhard commented 7 years ago

When fetching a template, the hostmanager marks the template as "ready". In the future, it only checks this status when deciding whether to fetch it or not, and not whether the file actually exists in the file system. This means if it is deleted for any other reason, the template is broken forever, but this is only detected as a command error when trying to prepare a new VM.

Solution: check existence in filesystem (Template.fetch) and download if required.