Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1615215 - Deploy logging failed at TASK [openshift_logging_elasticsearch : Set claimRef for NFS PV]
Deploy logging failed at TASK [openshift_logging_elasticsearch : Set claimRef...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging (Show other bugs)
3.11.0
Unspecified Unspecified
unspecified Severity high
: ---
: 3.11.0
Assigned To: ewolinet
Anping Li
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-12 22:47 EDT by Qiaoling Tang
Modified: 2018-10-11 03:25 EDT (History)
3 users (show)

See Also:
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.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-10-11 03:24:38 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-2018:2652 None None None 2018-10-11 03:25 EDT

  None (edit)
Description Qiaoling Tang 2018-08-12 22:47:51 EDT
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 02:34:19 EDT
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 03:24:38 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-2018:2652

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