Description of problem:
Deploy logging with ansible, failed in running handler "[openshift_logging : restart master]" after task "[openshift_logging : Delete temp directory]" :
RUNNING HANDLER [openshift_logging : restart master] ***************************
Using module file /usr/lib/python2.7/site-packages/ansible/modules/core/system/systemd.py
<$master> ESTABLISH SSH CONNECTION FOR USER: root
<$master> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'IdentityFile="/root/libra.pem"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r $master '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ERROR! The requested handler 'Verify API Server' was not found in either the main handlers list nor in the listening handlers list
And at the same time EFK stacks are actually deployed in logging project:
# oc get po -n xiazhao
NAME READY STATUS RESTARTS AGE
logging-curator-1-m8mfv 1/1 Running 0 1m
logging-es-3okue3pz-1-fbvf9 0/1 CrashLoopBackOff 3 1m
logging-fluentd-0k0pg 1/1 Running 0 2m
logging-fluentd-tgsck 1/1 Running 0 1m
logging-kibana-1-8h9w1 2/2 Running 0 1m
Version-Release number of selected component (if applicable):
# openshift version
Steps to Reproduce:
1.Deploy logging 3.5.0 by executing ansible scripts
The ansible deployment script failed
The ansible deployment script should complete successfully
Full log of ansible attached
Created attachment 1248289 [details]
This issue didn't repro after the 3rd time of logging deployment. Change priority and severity to low.
We have figured out that this issue only repro for the 1st time deploying logging from the ansible control machine. If you try it there for the 2nd or 3rd and next times, issue will gone. Change back the priority to medium.
I was able to recreate this, we are missing a handler as part of the openshift_logging role.
Verify fixed with the latest code from openshift-ansible repo. Deployed logging several times today, none repro. Set to verified.
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.