Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1624836

Summary: Specified miq_vm_disk_storage variable cause undefined disk_storage_domain variable
Product: [oVirt] ovirt-ansible-collection Reporter: Petr Kubica <pkubica>
Component: manageiqAssignee: Ondra Machacek <omachace>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kubica <pkubica>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.1.10CC: lsvaty, mperina
Target Milestone: ovirt-4.2.7Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-ansible-manageiq-1.1.12 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-02 14:35:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Kubica 2018-09-03 12:13:31 UTC
Description of problem:
TASK [ovirt-manageiq : Deploy the qcow image to oVirt engine] *****************************************************************************************************************************************************
fatal: [engine]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'disk_storage_domain' is undefined\n\nThe error appears to have been in '/usr/share/ansible/roles/oVirt.manageiq/tasks/deploy_qcow2.yml': line 63, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n  - name: Deploy the qcow image to oVirt engine\n    ^ here\n"}

Version-Release number of selected component (if applicable):
ovirt-ansible-manageiq-1.1.12-0.1.master.20180823081650.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. define miq_vm_disk_storage for deploying qcow to specific domain

Comment 1 Petr Kubica 2018-09-05 13:12:37 UTC
tested with: ovirt-ansible-manageiq.noarch 0:1.1.12-0.1.master.20180904110406.el7

still failing but later:
ASK [oVirt.manageiq : Add database disk for CFME] *****************************
15:02:14
task path: /usr/share/ansible/roles/oVirt.manageiq/tasks/cfme_add_disk.yml:1
15:02:14
fatal: [engine]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error was: 'disk_storage_domain' is undefined\n\nThe error appears to have been in '/usr/share/ansible/roles/oVirt.manageiq/tasks/cfme_add_disk.yml': line 1, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Add {{ item }} disk for CFME\n  ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes.  Always quote template expression brackets when they\nstart a value. For instance:\n\n    with_items:\n      - {{ foo }}\n\nShould be written as:\n\n    with_items:\n      - \"{{ foo }}\"\n"
}

Comment 2 Petr Kubica 2018-09-17 10:27:03 UTC
Verified in ovirt-ansible-manageiq-1.1.12-0.1.master.20180907093028.el7.noarch

Comment 3 Raz Tamir 2018-09-17 10:30:14 UTC
QE verification bot: the bug was verified upstream

Comment 4 Sandro Bonazzola 2018-11-02 14:35:19 UTC
This bugzilla is included in oVirt 4.2.7 release, published on November 2nd 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.7 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.