Bug 1615215 - Deploy logging failed at TASK [openshift_logging_elasticsearch : Set claimRef for NFS PV]
Summary: Deploy logging failed at TASK [openshift_logging_elasticsearch : Set claimRef...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.11.0
Assignee: ewolinet
QA Contact: Anping Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-13 02:47 UTC by Qiaoling Tang
Modified: 2018-10-11 07:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: A new check when setting claimRefs for NFS didn't have a default in the case where the variable "openshift_logging_storage_kind" wasn't set. Consequence: The playbook would fail Fix: A default value was added for that "when" condition Result: The playbook is able to run to completion, even if "openshift_logging_storage_kind" is not set.
Clone Of:
Environment:
Last Closed: 2018-10-11 07:24:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2652 0 None None None 2018-10-11 07:25:04 UTC

Description Qiaoling Tang 2018-08-13 02:47:51 UTC
Description of problem:
Deploy logging failed when openshift_logging_storage_kind not set in inventory

Ansible logs:
TASK [openshift_logging_elasticsearch : Set claimRef for NFS PV] ***************
Monday 13 August 2018  02:13:16 +0000 (0:00:00.088)       0:02:01.031 ********* 
fatal: [host-8-251-32.host.centralci.eng.rdu2.redhat.com]: FAILED! => {"msg": "The conditional check 'openshift_logging_storage_kind == \"nfs\"' failed. The error was: error while evaluating conditional (openshift_logging_storage_kind == \"nfs\"): 'openshift_logging_storage_kind' is undefined\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_logging_elasticsearch/tasks/main.yaml': line 403, 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: Set claimRef for NFS PV\n    ^ here\n"}


Version-Release number of selected component (if applicable):
openshift-ansible-3.11.0-0.14.0.git.0.7bd4429None.noarch

How reproducible:
Always

Steps to Reproduce:
1.Deploy logging using ansible 
2.
3.

Actual results:
Deploy logging failed 

Expected results:


Additional info:
-e parameters:
openshift_logging_install_logging=true
openshift_logging_elasticsearch_memory_limit=2Gi
openshift_logging_elasticsearch_cpu_limit=1000m
openshift_logging_es_nodeselector={"role": "node"}
openshift_logging_es_cluster_size=1
openshift_logging_es_pvc_dynamic=true

Comment 3 Qiaoling Tang 2018-08-23 06:34:19 UTC
Verified on 

openshift-ansible-docs-3.11.0-0.19.0.git.0.ebd1bf9None.noarch
openshift-ansible-roles-3.11.0-0.19.0.git.0.ebd1bf9None.noarch
openshift-ansible-3.11.0-0.19.0.git.0.ebd1bf9None.noarch
openshift-ansible-playbooks-3.11.0-0.19.0.git.0.ebd1bf9None.noarch

Comment 5 errata-xmlrpc 2018-10-11 07:24:38 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-2018:2652


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