Bug 1642177

Summary: Ansible failed to find handler: "ERROR! The requested handler 'restart ceph mons' was not found in either the main handlers list nor in the listening handlers list"
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tiffany Nguyen <tunguyen>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED NOTABUG QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2CC: aschoen, ceph-eng-bugs, gabrioux, gmeno, jharriga, john.mora, nthomas, sankarshan
Target Milestone: rcKeywords: Reopened
Target Release: 3.*   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-15 16:25:23 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:
Bug Depends On:    
Bug Blocks: 1641792    
Attachments:
Description Flags
ansible-playbook full log
none
rc1 run log none

Description Tiffany Nguyen 2018-10-23 21:32:14 UTC
Created attachment 1496833 [details]
ansible-playbook full log

Description of problem:
When running ansible-playbook, this error below is seen: 
"ERROR! The requested handler 'restart ceph mons' was not found in either the main handlers list nor in the listening handlers list".
This issue is seen while upgrade from 12.2.5-42.el7cp to 12.2.8-19.el7cp.

Version-Release number of selected component (if applicable):
* Ansible version: 2.6.5-1.el7ae
* Ceph ansible: 3.2.0-0.1.beta3.el7cp
* OS: RH7.5

How reproducible:
Run ansible-playbook to deploy ceph.

Actual results:
Error is seen: "ERROR! The requested handler 'restart ceph mons' was not found in either the main handlers list nor in the listening handlers list"

Expected results:
ansible-playbook should complete successfully without any error.

Comment 3 Sébastien Han 2018-10-23 21:46:26 UTC
Present in v3.2.0beta4, please upgrade.

Comment 4 John Harrigan 2018-11-13 21:40:12 UTC
Reopening this BZ
I just observed it on a cluster which was upgraded to RHCS 3.2 rc build

VERSIONS:
[root@c04-h33-6018r ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)
# uname -a
Linux c04-h33-6018r.rdu.openstack.engineering.redhat.com 3.10.0-862.14.4.el7.x86_64 #1 SMP Fri Sep 21 09:07:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
# ansible --version
ansible 2.6.7
# yum list ceph-ansible
ceph-ansible.noarch         3.2.0-0.1.rc1.el7cp 

REPO SETTINGS:
group_vars/all.yml
ceph_origin: distro
ceph_repository: rhcs
ceph_stable: true
ceph_stable_release: luminous
ceph_stable_rh_storage: true
upgrade_ceph_packages: True
ceph_rhcs_version: 3

RESULT:
# ansible-playbook site.yml 2>&1 | tee -a DeployBS.Nov13b
<..SNIP..>
TASK [ceph-config : generate ceph configuration file: ceph.conf] ***************
Tuesday 13 November 2018  21:34:40 +0000 (0:00:01.640)       0:10:56.636 ****** 
ERROR! The requested handler 'restart ceph mons' was not found in either the main handlers list nor in the listening handlers list

The logfile is attached

Comment 5 John Harrigan 2018-11-13 21:44:52 UTC
Created attachment 1505448 [details]
rc1 run log

Existing cluster was purged and then attempted to redeploy