Bug 1747307 - The redeploy-certificates.yml failed when ops is enabled.
Summary: The redeploy-certificates.yml failed when ops is enabled.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.11.z
Assignee: Noriko Hosoi
QA Contact: Anping Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-30 05:18 UTC by Anping Li
Modified: 2019-12-16 11:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-16 11:57:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift openshift-ansible pull 11910 0 'None' 'closed' '[release-3.11] Bug 1747307: The redeploy-certificates.yml failed when ops is enabled' 2019-12-09 12:18:35 UTC
Github openshift openshift-ansible pull 12017 0 'None' 'closed' '[release-3.11] Bug 1747307: The redeploy-certificates.yml failed when ops is enabled' 2019-12-09 12:18:35 UTC
Red Hat Product Errata RHBA-2019:4050 0 None None None 2019-12-16 11:57:26 UTC

Description Anping Li 2019-08-30 05:18:26 UTC
Description of problem:
The redeploy-certificates.yml failed when ops is enabled.

Version-Release number of selected component (if applicable):
3.11.141

How reproducible:
always

How reproducible:
always

Steps to Reproduce:
1. Deploy logging with ops enabled
   openshift_logging_use_ops=true
2. redeploy certificates using playbook
ansible-playbook playbooks/openshift-logging/redeploy-certificates.yml


Actual results:

TASK [openshift_logging_kibana : set_fact] *************************************
Friday 30 August 2019  03:14:38 +0000 (0:00:00.155)       0:01:36.663 ********* 
ok: [ec2-54-224-41-112.compute-1.amazonaws.com]

TASK [openshift_logging_kibana : Generating Kibana route template] *************
Friday 30 August 2019  03:14:38 +0000 (0:00:00.122)       0:01:36.786 ********* 
ok: [ec2-54-224-41-112.compute-1.amazonaws.com]

TASK [openshift_logging_kibana : Setting Kibana route] *************************
Friday 30 August 2019  03:14:40 +0000 (0:00:01.177)       0:01:37.963 ********* 
changed: [ec2-54-224-41-112.compute-1.amazonaws.com]

TASK [include_role : openshift_logging_kibana] *********************************
Friday 30 August 2019  03:14:41 +0000 (0:00:01.574)       0:01:39.537 ********* 

TASK [openshift_logging_kibana : set_fact] *************************************
Friday 30 August 2019  03:14:41 +0000 (0:00:00.227)       0:01:39.765 ********* 
ok: [ec2-54-224-41-112.compute-1.amazonaws.com]

TASK [openshift_logging_kibana : set_fact] *************************************
Friday 30 August 2019  03:14:41 +0000 (0:00:00.122)       0:01:39.888 ********* 
fatal: [ec2-54-224-41-112.compute-1.amazonaws.com]: FAILED! => {"msg": "The conditional check 'openshift_logging_kibana_key | trim | length > 0' failed. The error was: error while evaluating conditional (openshift_logging_kibana_key | trim | length > 0): 'openshift_logging_kibana_ops_key' is undefined\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_logging_kibana/tasks/generate_route.yaml': line 7, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# TODO: set up these certs differently?\n- set_fact:\n  ^ here\n"}

PLAY RECAP *********************************************************************
ec2-3-85-242-224.compute-1.amazonaws.com : ok=0    changed=0    unreachable=0    failed=0   
ec2-3-89-32-175.compute-1.amazonaws.com : ok=0    changed=0    unreachable=0    failed=0   
ec2-34-229-54-18.compute-1.amazonaws.com : ok=0    changed=0    unreachable=0    failed=0   
ec2-35-172-116-251.compute-1.amazonaws.com : ok=0    changed=0    unreachable=0    failed=0   
ec2-54-224-41-112.compute-1.amazonaws.com : ok=138  changed=35   unreachable=0    failed=1   
localhost                  : ok=11   changed=0    unreachable=0    failed=0   


INSTALLER STATUS ***************************************************************
Initialization         : Complete (0:00:14)
Logging Cert Redeploy  : In Progress (0:01:25)
    This phase can be restarted by running: playbooks/openshift-logging/redeploy-certificates.yml

Expected Result:
certificates was redeployed.

Comment 2 Anping Li 2019-10-12 06:55:26 UTC
Failed on openshift3/ose-ansible/images/v3.11.153-2

TASK [openshift_logging_kibana : Generating Kibana route template] *************
Saturday 12 October 2019  05:40:20 +0000 (0:00:00.094)       0:01:42.038 ****** 
fatal: [ci-vm-10-0-148-139.hosted.upshift.rdu2.redhat.com]: FAILED! => {"msg": "The field 'vars' has an invalid value, which includes an undefined variable. The error was: 'openshift_logging_kibana_ops_hostname' is undefined\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_logging_kibana/tasks/generate_route.yaml': line 27, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generating Kibana route template\n  ^ here\n"}

PLAY RECAP *********************************************************************
ci-vm-10-0-148-139.hosted.upshift.rdu2.redhat.com : ok=147  changed=38   unreachable=0    failed=1   
ci-vm-10-0-149-248.hosted.upshift.rdu2.redhat.com : ok=0    changed=0    unreachable=0    failed=0   
ci-vm-10-0-150-201.hosted.upshift.rdu2.redhat.com : ok=0    changed=0    unreachable=0    failed=0   
ci-vm-10-0-150-223.hosted.upshift.rdu2.redhat.com : ok=0    changed=0    unreachable=0    failed=0   
ci-vm-10-0-151-110.hosted.upshift.rdu2.redhat.com : ok=0    changed=0    unreachable=0    failed=0   
ci-vm-10-0-151-111.hosted.upshift.rdu2.redhat.com : ok=0    changed=0    unreachable=0    failed=0   
localhost                  : ok=11   changed=0    unreachable=0    failed=0

Comment 5 Anping Li 2019-12-03 02:39:23 UTC
Verified using openshift3-ose-ansible :v3.11.157

Comment 7 errata-xmlrpc 2019-12-16 11:57:10 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-2019:4050


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