Bug 1776736

Summary: [ceph-ansible] purge-docker-cluster.yml failing to remove ceph mon and mgr container
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Sunil Angadi <sangadi>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED WORKSFORME QA Contact: Sunil Angadi <sangadi>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0CC: aschoen, ceph-eng-bugs, dsavinea, gmeno, nthomas, tserlin, ykaul
Target Milestone: rc   
Target Release: 4.1   
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: 2020-01-24 04:16:30 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:
Attachments:
Description Flags
Attached ansible.log and inventory file and all.yml none

Description Sunil Angadi 2019-11-26 09:44:43 UTC
Created attachment 1639746 [details]
Attached ansible.log and inventory file and all.yml

Description of problem:
When tried to purge containerized cluster using purge-docker-cluster.yml it is failing in task TASK [remove ceph mon and mgr container] 

Version-Release number of selected component (if applicable):
ceph-ansible-4.0.5-1.el8cp.noarch
Red Hat Enterprise Linux release 8.1 (Ootpa)

How reproducible:
Always

Steps to Reproduce:
1.Deploy ceph 4.0 with containerized and try to purge using purge-docker-cluster.yml
2.
3.

Actual results:

2019-11-26 04:07:18,371 p=14441 u=admin |  TASK [remove ceph mon and mgr container] ***********************************************************************************************
2019-11-26 04:07:18,371 p=14441 u=admin |  task path: /usr/share/ceph-ansible/purge-docker-cluster.yml:464
2019-11-26 04:07:18,371 p=14441 u=admin |  Tuesday 26 November 2019  04:07:18 +0000 (0:00:02.381)       0:00:52.491 ****** 
2019-11-26 04:07:18,395 p=14441 u=admin |  Using module file /usr/lib/python3.6/site-packages/ansible/modules/cloud/docker/docker_container.py
2019-11-26 04:07:18,395 p=14441 u=admin |  Pipelining is enabled.
2019-11-26 04:07:18,396 p=14441 u=admin |  <magna076> ESTABLISH SSH CONNECTION FOR USER: None
2019-11-26 04:07:18,397 p=14441 u=admin |  <magna076> SSH: EXEC ssh -o ControlMaster=auto -o ControlPersist=600s -o PreferredAuthentications=publickey -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=60 -o ControlPath=/home/admin/.ansible/cp/%h-%r-%p magna076 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-jpuqsrjbphfhqhidulvjndfbjjvicluh ; /usr/libexec/platform-python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Expected results:
Playbook should success

Additional info: