Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1357984 - Wrong error message when using openshift ansible playbook
Wrong error message when using openshift ansible playbook
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
3.3.0
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Andrew Butcher
Gaoyun Pei
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-19 14:11 EDT by Vikas Laad
Modified: 2017-12-18 22:22 EST (History)
7 users (show)

See Also:
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 05:41:05 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1933 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.3 Release Advisory 2016-09-27 09:24:36 EDT

  None (edit)
Description Vikas Laad 2016-07-19 14:11:06 EDT
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:
Comment 2 Troy Dawson 2016-08-01 18:26:26 EDT
This has been merged and is in openshift-ansible-3.3.5-1.git.0.af6025b.el7  or newer.
Comment 3 Gaoyun Pei 2016-08-04 04:55:15 EDT
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"}
Comment 5 errata-xmlrpc 2016-09-27 05:41:05 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/RHBA-2016:1933

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