Description of problem: If a VM is created using REST api and * max memory is not specified * and memory is specified larger than max memory in the template then vm creation fails. This breaks backward compatibility of engine 4.1 with 4.0. Automatically increase max memory if memory was specified and max memory was omitted in the rest request.
Verified on 4.1.1.5-0.1.el7 1. Created VM via REST API script without max_memory specified - max_memory was updated to 4 x memory 2. Updated every instance type memory value via REST API - max_memory was updated to 4 x memory
(In reply to Vladimir from comment #1) > Verified on 4.1.1.5-0.1.el7 > > 1. Created VM via REST API script without max_memory specified - max_memory > was updated to 4 x memory > 2. Updated every instance type memory value via REST API - max_memory was > updated to 4 x memory Verify base on this check.
(In reply to Vladimir from comment #1) > Verified on 4.1.1.5-0.1.el7 > > 1. Created VM via REST API script without max_memory specified - max_memory > was updated to 4 x memory > 2. Updated every instance type memory value via REST API - max_memory was > updated to 4 x memory Sorry, my mistake it doesn't work for instance types, updating instance types still produces 409 error: Memory size (10240MB) cannot exceed maximum memory size (2048MB)