As you know, when template is imported as "all zones" template, it has an ID that is same on all zones. If you delete a cross zone template on 1 zone, it will be removed from all.

The moment you break away from this model and load templates as unique entities in each zone, the ID will change from zone to zone.

You can also try clonning the template in the UI to a different zone, i'm not certain if ID is preserved - but you can give it a try.

If you abstract cloudstack with your own frontend. You can fetch the template ID by using name and zone id.

Regards,
ilya
On 1/26/15 1:48 PM, Logan Barfield wrote:
I'm setting up a test zone for a multi-site deployment, and I've thus
far been unable to deploy a VM from our existing templates.

We're using S3 for secondary storage, and we have set up an NFS
staging server in the remote zone.  The management server is able to
mount the NFS store over the site-to-site VPN.

When we attempt to deploy a VM in the new zone, we get "Template <id>
is not available."

It appears that this is because our templates are not set up as "Cross
Zone Templates."

We originally created these templates from existing volumes (e.g.,
installed via ISO, configured, shut down VM, created template from
volume).  I did not see any option in the UI or API to specify it as a
cross zone template, nor do I see a way to update it after the fact
(other than manually editing the database).  This functionality only
seems to be available when Registering a template via a URL, which
isn't any help here.

Is there a reason for this weirdness?


Thank You,

Logan Barfield
Tranquil Hosting

Reply via email to