Bug 1492488

Summary: [downstream clone - 4.1.7] [ovirt-ansible-roles] ovirt-vm-infra: default values of cores and memory should be taken from template
Product: Red Hat Enterprise Virtualization Manager Reporter: rhev-integ
Component: ovirt-ansible-rolesAssignee: Ondra Machacek <omachace>
Status: CLOSED ERRATA QA Contact: Petr Kubica <pkubica>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.5CC: mgoldboi, mperina, pstehlik
Target Milestone: ovirt-4.1.7Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-ansible-roles-1.0.4-1.el7ev Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: 1489893 Environment:
Last Closed: 2017-11-07 17:27:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1489893    
Bug Blocks:    

Description rhev-integ 2017-09-17 19:40:53 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1489893 +++
======================================================================

Description of problem:
default values of cores and memory should be taken from template in role ovirt-vm-infra

TASK [ovirt-vm-infra : Create VMs] ********************************************************************************************************************************************************************************
task path: /usr/share/ansible/roles/ovirt-vm-infra/tasks/main.yml:15
fatal: [*FILTERED*]: FAILED! => {
    "failed": true, 
    "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'dict object' has no attribute 'cores'\n\nThe error appears to have been in '/usr/share/ansible/roles/ovirt-vm-infra/tasks/main.yml': line 15, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - name: Create VMs\n    ^ here\n"
}

second run with defined core wariable:

TASK [ovirt-vm-infra : Create VMs] ********************************************************************************************************************************************************************************
task path: /usr/share/ansible/roles/ovirt-vm-infra/tasks/main.yml:15
fatal: [*FILTERED*]: FAILED! => {
    "failed": true, 
    "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'dict object' has no attribute 'memory'\n\nThe error appears to have been in '/usr/share/ansible/roles/ovirt-vm-infra/tasks/main.yml': line 15, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n  - name: Create VMs\n    ^ here\n"
}


Version-Release number of selected component (if applicable):
ovirt-ansible-roles-1.0.2-1.el7ev.noarch
ansible-2.3.1.0-3.el7.noarch

(Originally by Petr Kubica)

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

Comment 4 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