Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1490852 - [ovirt-ansible-roles] ovirt-vm-infra: memory_guaranteed value in template don't allow user to specify lower value in memory
[ovirt-ansible-roles] ovirt-vm-infra: memory_guaranteed value in template don...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-ansible-roles (Show other bugs)
4.1.5
Unspecified Unspecified
unspecified Severity medium
: ovirt-4.2.0
: ---
Assigned To: Ondra Machacek
Petr Kubica
: ZStream
Depends On:
Blocks: 1492490
  Show dependency treegraph
 
Reported: 2017-09-12 07:36 EDT by Petr Kubica
Modified: 2018-05-15 14:01 EDT (History)
3 users (show)

See Also:
Fixed In Version: ovirt-ansible-roles-1.1.1-0.el7ev
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
: 1492490 (view as bug list)
Environment:
Last Closed: 2018-05-15 14:00:33 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Infra
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github https://github.com/oVirt/ovirt-ansible/pull/81 None None None 2017-09-14 06:11 EDT
Red Hat Product Errata RHEA-2018:1534 None None None 2018-05-15 14:01 EDT

  None (edit)
Description Petr Kubica 2017-09-12 07:36:32 EDT
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
Comment 1 Ondra Machacek 2017-09-12 08:53:47 EDT
>  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?
Comment 2 Ondra Machacek 2017-09-14 06:11:06 EDT
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.
Comment 4 Petr Kubica 2018-01-03 07:06:29 EST
ovirt-ansible-vm-infra-1.1.3-1.el7ev.noarch
ansible-2.4.1.0-1.el7ae.noarch
Comment 9 errata-xmlrpc 2018-05-15 14:00:33 EDT
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/RHEA-2018:1534

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