Bug 1492490 - [downstream clone - 4.1.7] [ovirt-ansible-roles] ovirt-vm-infra: memory_guaranteed value in template don't allow user to specify lower value in memory
Summary: [downstream clone - 4.1.7] [ovirt-ansible-roles] ovirt-vm-infra: memory_guara...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-ansible-roles
Version: 4.1.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.1.7
: ---
Assignee: Ondra Machacek
QA Contact: Petr Kubica
URL:
Whiteboard:
Depends On: 1490852
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-17 19:41 UTC by rhev-integ
Modified: 2017-11-07 17:27 UTC (History)
3 users (show)

Fixed In Version: ovirt-ansible-roles-1.0.4-1.el7ev
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of: 1490852
Environment:
Last Closed: 2017-11-07 17:27:31 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github https://github.com/oVirt ovirt-ansible pull 81 0 None None None 2017-09-17 19:41:29 UTC
Red Hat Product Errata RHBA-2017:3137 0 normal SHIPPED_LIVE 4.1.7 - ovirt-ansible-roles bug fix and enhancement update 2017-11-07 22:22:25 UTC

Description rhev-integ 2017-09-17 19:41:15 UTC
+++ 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)

Comment 1 rhev-integ 2017-09-17 19:41:16 UTC
>  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)

Comment 2 rhev-integ 2017-09-17 19:41:18 UTC
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)

Comment 4 rhev-integ 2017-09-17 19:41:23 UTC
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)

Comment 6 Petr Kubica 2017-10-18 06:06:44 UTC
Verified in
ansible-2.3.2.0-2.el7.noarch
ovirt-ansible-roles-1.0.4-1.el7ev.noarch

Comment 8 errata-xmlrpc 2017-11-07 17:27:31 UTC
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


Note You need to log in before you can comment on or make changes to this bug.