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.
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
Verified using openshift3-ose-ansible :v3.11.157
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