error.catalogue.not_template
- Text in the console
- Only templates can be catalogue images.
- Meaning for API clients
- Only template VMs can be catalogue images.
- Code
FAILED_PRECONDITION, HTTP 412
Cause. The object that was added to the image catalogue is a virtual machine, not a template. Only templates can be catalogue images.
Remedy.
- Power the virtual machine off, then convert it to a template:
kyvernon vm mark-as-template <id>. In the console, use Convert to template on the virtual machine. - Add the template to the catalogue again:
kyvernon catalogue set <id> --body-file <file>.
See the page Plans and catalogue.