Bug 1475761
| Summary: | [3.6] Installer failed on logging deployment on the second run | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Gaoyun Pei <gpei> |
| Component: | Installer | Assignee: | ewolinet |
| Status: | CLOSED ERRATA | QA Contact: | Gaoyun Pei <gpei> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.6.0 | CC: | aos-bugs, jokerman, mmccomas, myllynen, plarsen |
| Target Milestone: | --- | ||
| Target Release: | 3.6.z | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: If a pvc already existed the playbook would fail trying to recreate it
Consequence: The playbook would fail
Fix: We no longer create a pvc object if it already exists
Result: The playbook correctly completes without error
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-09-05 17:42:58 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: | |||
|
Comment 1
Scott Dodson
2017-08-14 12:48:11 UTC
This should have been resolved by https://github.com/openshift/openshift-ansible/pull/5005 Verify this bug with openshift-ansible-3.6.173.0.7-2.git.0.340aa2c.el7. No such error when running byo playbook again after installation finished. ansible-playbook -i inventory /usr/share/ansible/openshift-ansible/playbooks/byo/config.yml TASK [openshift_logging_elasticsearch : Set ES configmap] ******************************************************************************************************************* ok: [ec2-52-70-115-23.compute-1.amazonaws.com] TASK [openshift_logging_elasticsearch : Set ES secret] ********************************************************************************************************************** ok: [ec2-52-70-115-23.compute-1.amazonaws.com] TASK [openshift_logging_elasticsearch : Set logging-es-cluster service] ***************************************************************************************************** changed: [ec2-52-70-115-23.compute-1.amazonaws.com] TASK [openshift_logging_elasticsearch : Set logging-es service] ************************************************************************************************************* changed: [ec2-52-70-115-23.compute-1.amazonaws.com] TASK [openshift_logging_elasticsearch : Check to see if PVC already exists] ************************************************************************************************* ok: [ec2-52-70-115-23.compute-1.amazonaws.com] TASK [openshift_logging_elasticsearch : Creating ES storage template - static] ********************************************************************************************** skipping: [ec2-52-70-115-23.compute-1.amazonaws.com] TASK [openshift_logging_elasticsearch : Creating ES storage template - dynamic] ********************************************************************************************* skipping: [ec2-52-70-115-23.compute-1.amazonaws.com] TASK [openshift_logging_elasticsearch : Set ES storage] ********************************************************************************************************************* skipping: [ec2-52-70-115-23.compute-1.amazonaws.com] TASK [openshift_logging_elasticsearch : set_fact] *************************************************************************************************************************** skipping: [ec2-52-70-115-23.compute-1.amazonaws.com] From chat with sdodson I applied this patch and successfully was able to test the run. The error I was getting before the patch:
TASK [openshift_logging_elasticsearch : Creating ES storage template - dynamic] ********************************************************************************************
[WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ openshift_logging_es_pvc_dynamic }}
The package I was running before the update was openshift-ansible-3.6.173.0.5-3.git....
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-2017:2639 |