Bug 1539715 - Make hosts variable optional (for example to be able to add additional storage domains to existing setup)
Summary: Make hosts variable optional (for example to be able to add additional storag...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-ansible-collection
Classification: oVirt
Component: infra
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.2.2
: ---
Assignee: Ondra Machacek
QA Contact: Petr Kubica
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-29 13:53 UTC by Petr Kubica
Modified: 2018-03-29 11:04 UTC (History)
1 user (show)

Fixed In Version: ovirt-ansible-infra-1.1.4
Clone Of:
Environment:
Last Closed: 2018-03-29 11:04:45 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-ansible-infra pull 18 0 None None None 2018-01-29 14:32:49 UTC

Description Petr Kubica 2018-01-29 13:53:16 UTC
Description of problem:
infra role expect variable hosts but in cluster are already added some hosts
or
user can setup only parts in which host isn't required
- create empty clusters, add users...

Version-Release number of selected component (if applicable):
ovirt-ansible-infra-1.1.2-1.el7ev.noarch
ansible-2.4.1.0-1.el7ae.noarch


Expected results:
variable hosts shouldn't be mandatory, if user wants to add a storage domain without a host in data center, it should fail with appropriate error message 

Additional info:
fatal: [localhost]: FAILED! => {
    "failed": true, 
    "msg": "The task includes an option with an undefined variable. The error was: 'hosts' is undefined\n\nThe error appears to have been in '/usr/share/ansible/roles/oVirt.infra/roles/oVirt.hosts/tasks/main.yml': line 2, 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: Get hosts\n  ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: 'hosts' is undefined"
}

Comment 1 Petr Kubica 2018-03-20 14:39:32 UTC
Verified in
ovirt-ansible-infra-1.1.4-1.el7ev.noarch

Comment 2 Sandro Bonazzola 2018-03-29 11:04:45 UTC
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.2 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.


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