Bug 1615215
| Summary: | Deploy logging failed at TASK [openshift_logging_elasticsearch : Set claimRef for NFS PV] | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Qiaoling Tang <qitang> |
| Component: | Logging | Assignee: | ewolinet |
| Status: | CLOSED ERRATA | QA Contact: | Anping Li <anli> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.11.0 | CC: | aos-bugs, ewolinet, rmeggins |
| Target Milestone: | --- | ||
| Target Release: | 3.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| 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 07:24:38 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: | |||
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 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 |
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