+++ This bug is a downstream clone. The original bug is: +++ +++ bug 1490852 +++ ====================================================================== Description of problem: In Webadmin when user are creating VM from template, he can change memory value to whatever he wants. So for example: when template has 4 GiB of guaranteed memory in resource allocation, user can specify memory value to 2 GiB and VM can be created - memory_guaranteed value was automatically changed to lower value In role when user will use lower value in variable memory, it will fail with fact that the memory value is lower than memory_guaranteed but user can't specify memory_guaranteed value so I see issue in: - user can't specify memory_guaranteed value to override this - if memory value was specified and memory_guaranteed not, role should recalculate memory_guaranteed value as webadmin (same behavior) Version-Release number of selected component (if applicable): ovirt-ansible-roles-1.0.3-1.el7ev.noarch ansible-2.3.2.0-2.el7.noarch (Originally by Petr Kubica)
> user can't specify memory_guaranteed value to override this I agree with this. We need to add it. - if memory value was specified and memory_guaranteed not, role should recalculate memory_guaranteed value as webadmin (same behavior) Martin, do we want this behavior? (Originally by Ondra Machacek)
I've added a documentation that memory param shouldn't be less then memory_guaranteed param, user need to pass those parameter correctly otherwise we fail. (Originally by Ondra Machacek)
Verified in ansible-2.3.2.0-2.el7.noarch ovirt-ansible-roles-1.0.4-1.el7ev.noarch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:3137