Allow multiple options for images in vm templates
|Category:||Core & System|
It would be nice to be able to specify multiple possible images on a vm template, and have OpenNebula select one based on which cluster the vm is launched into (by checking which datastore is present in the cluster it launches into).
Use case is we have two ceph datastores, for two clusters, and several base images. We copy each base image into both datastores, for use by each cluster. However, currently we have to have two templates for each one where the only thing different between them is which image they use. If we could specify both images as options for the disk on the vm template, then OpenNebula could pick which one to use based off the cluster that the vm launches into.
This would avoid having to have multiple otherwise-identical templates just to be able to select the corresponding image from a different datastore.