Bug 1357984
| Summary: | Wrong error message when using openshift ansible playbook | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Vikas Laad <vlaad> |
| Component: | Installer | Assignee: | Andrew Butcher <abutcher> |
| Status: | CLOSED ERRATA | QA Contact: | Gaoyun Pei <gpei> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.3.0 | CC: | abutcher, aos-bugs, gpei, jialiu, jokerman, mmccomas, tdawson |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Previously, installation would fail with an unrelated error message when openshift_hosted_registry_storage_kind=nfs was specified in the inventory but no nfs hosts were configured via openshift_hosted_registry_storage_host or the nfs host group. Playbooks now output an error message indicating that no storage hosts have been configured.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-27 09:41:05 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
This has been merged and is in openshift-ansible-3.3.5-1.git.0.af6025b.el7 or newer. Verify this bug with openshift-ansible-3.3.6-1.git.0.5c681f6.el7.noarch.rpm
Set openshift_hosted_registry_storage_kind=nfs in the inventory, bu no openshift_hosted_registry_storage_host and [nfs] group host specified. Run the playbook, ansible would fail and prompt no storage host detected.
PLAY [Create persistent volumes] ***********************************************
TASK [setup] *******************************************************************
ok: [openshift-x.com]
TASK [openshift_facts : Detecting Operating System] ****************************
fatal: [openshift-x.com]: FAILED! => {"failed": true, "msg": "The conditional check 'persistent_volumes | length > 0 or persistent_volume_claims | length > 0' failed. The error was: {{ hostvars[groups.oo_first_master.0] | oo_persistent_volumes(groups) }}: |failed no storage host detected"}
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-2016:1933 |
Description of problem: Trying to install Openshift 3.3 cluster anible playbook run is failing with a wrong error message. TASK [openshift_facts : Verify Ansible version is greater than or equal to 2.1.0.0] *** Tuesday 19 July 2016 15:54:44 +0000 (0:00:01.005) 1:11:24.007 ********** fatal: [ec2-54-187-247-212.us-west-2.compute.amazonaws.com]: FAILED! => {"failed": true, "msg": "The conditional check 'persistent_volumes | length > 0 or persistent_volume_claims | length > 0' failed. The error was: u'{{ hostvars[groups.oo_first_master.0] | oo_persistent_volumes(groups) }}: oo_nfs_to_config'"} Version-Release number of selected component (if applicable): Openshift 3.3 How reproducible: When there is no storage host detected. Steps to Reproduce: 1. Create an inventory without any nfs host or nfs host group 2. Playbook fails with above error Actual results: Verify Ansible version is greater than or equal to 2.1.0.0 Expected results: failed no storage host detected Additional info: