<div dir="ltr">While trying to add an instance type, I fail with the error:<div>Operation Failed&quot;. Fault detail is &quot;[Cannot add Template. Memory size (1024MB) cannot exceed maximum memory size (0MB).]<br></div><div><br></div><div>The code is taken from the example in the SDK, so I&#39;m not sure what I&#39;m doing wrong here.</div><div>Code:</div><div><div>        instance_types_service.add(</div><div>            types.InstanceType(</div><div>                name=&#39;myinstancetype&#39;,</div><div>                description=&#39;My instance type&#39;,</div><div>                memory=1 * 2**30,</div><div>                high_availability=types.HighAvailability(</div><div>                    enabled=True,</div><div>                ),</div><div>                cpu=types.Cpu(</div><div>                    topology=types.CpuTopology(</div><div>                        cores=2,</div><div>                        sockets=2,</div><div>                    ),</div><div>                ),</div><div>            ),</div><div>        )</div></div><div><br></div><div><br></div><div>engine.log:</div><div><div>2017-12-25 10:58:19,825-05 INFO  [org.ovirt.engine.core.bll.AddVmTemplateCommand] (default task-13) [265ff704-d89f-471b-8207-fc0e1b8816fd] Lock Acquired to object &#39;EngineLock:{exclusiveLocks=&#39;[myinstancetype=TEMPLATE_NAME, 703e1265-e160-4a76-82e6-06974156b7b9=TEMPLATE]&#39;, sharedLocks=&#39;[]&#39;}&#39;</div><div>2017-12-25 10:58:19,831-05 WARN  [org.ovirt.engine.core.bll.AddVmTemplateCommand] (default task-13) [265ff704-d89f-471b-8207-fc0e1b8816fd] Validation of action &#39;AddVmTemplate&#39; failed for user admin@internal-authz. Reasons: VAR__ACTION__ADD,VAR__TYPE__VM_TEMPLATE,ACTION_TYPE_FAILED_MAX_MEMORY_CANNOT_BE_SMALLER_THAN_MEMORY_SIZE,$maxMemory 0,$memory 1024</div><div>2017-12-25 10:58:19,832-05 INFO  [org.ovirt.engine.core.bll.AddVmTemplateCommand] (default task-13) [265ff704-d89f-471b-8207-fc0e1b8816fd] Lock freed to object &#39;EngineLock:{exclusiveLocks=&#39;[myinstancetype=TEMPLATE_NAME, 703e1265-e160-4a76-82e6-06974156b7b9=TEMPLATE]&#39;, sharedLocks=&#39;[]&#39;}&#39;</div><div>2017-12-25 10:58:19,839-05 DEBUG [org.ovirt.engine.core.common.di.interceptor.DebugLoggingInterceptor] (default task-13) [265ff704-d89f-471b-8207-fc0e1b8816fd] method: runAction, params: [AddVmTemplate, AddVmTemplateParameters:{commandId=&#39;179df9ed-209c-4882-a19a-b76a4fe1adb8&#39;, user=&#39;null&#39;, commandType=&#39;Unknown&#39;}], timeElapsed: 33ms</div><div>2017-12-25 10:58:19,846-05 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-13) [] Operation Failed: [Cannot add Template. Memory size (1024MB) cannot exceed maximum memory size (0MB).]</div></div><div><br></div><div><br></div><div>TIA,</div><div>Y.</div><div><br></div></div>