Bug 1381428 - Purging Ceph cluster on containers that was set up by using Ansible fails on Atomic host
Summary: Purging Ceph cluster on containers that was set up by using Ansible fails on ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Ceph-Ansible
Version: 3.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: 3.1
Assignee: Sébastien Han
QA Contact: Vasishta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-04 05:30 UTC by krishnaram Karthick
Modified: 2018-10-22 20:34 UTC (History)
16 users (show)

Fixed In Version: RHEL: ceph-ansible-3.0.0-0.1.rc4.el7cp Ubuntu: ceph-ansible_3.0.0~rc4-2redhat1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-23 16:37:32 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 1727 0 None closed Refact playbook 2020-11-26 22:52:18 UTC

Description krishnaram Karthick 2016-10-04 05:30:31 UTC
Description of problem:

purging of Containerized ceph cluster setup using ansible on atomic host fails with the following error.

# ansible-playbook purge-docker-cluster.yml --skip-tags=with_pkg
Are you sure you want to purge the cluster? [no]: yes
If --skip-tags=with_pkg is not set docker packages and more will be uninstalled from non-atomic hosts. Do you want to continue?
 [no]: yes

PLAY [confirm whether user really meant to purge the cluster] ***************** 

TASK: [exit playbook, if user did not mean to purge cluster] ****************** 
skipping: [localhost]

TASK: [exit playbook, if user did not mean to remove packages] **************** 
skipping: [localhost]

PLAY [purge ceph mds cluster] ************************************************* 
skipping: no hosts matched

PLAY [purge ceph rgw cluster] ************************************************* 
skipping: no hosts matched

PLAY [purge ceph rbd-mirror cluster] ****************************************** 
skipping: no hosts matched

PLAY [purge ceph nfs cluster] ************************************************* 
skipping: no hosts matched

PLAY [purge ceph osd cluster] ************************************************* 

GATHERING FACTS *************************************************************** 
ok: [10.70.37.43]
ok: [10.70.37.89]
ok: [10.70.37.211]

TASK: [include_vars ../roles/ceph-common/defaults/main.yml] ******************* 
failed: [10.70.37.211] => {"failed": true, "file": "/root/roles/ceph-common/defaults/main.yml"}
msg: Source file not found.
failed: [10.70.37.89] => {"failed": true, "file": "/root/roles/ceph-common/defaults/main.yml"}
msg: Source file not found.
failed: [10.70.37.43] => {"failed": true, "file": "/root/roles/ceph-common/defaults/main.yml"}
msg: Source file not found.

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/root/purge-docker-cluster.retry

10.70.37.211               : ok=1    changed=0    unreachable=0    failed=1   
10.70.37.43                : ok=1    changed=0    unreachable=0    failed=1   
10.70.37.89                : ok=1    changed=0    unreachable=0    failed=1   
localhost                  : ok=0    changed=0    unreachable=0    failed=0   


Version-Release number of selected component (if applicable):
ansible --version
ansible 1.9.4
  configured module search path = None

#docker --version
Docker version 1.10.3, build 5206701-unsupported

# cat /etc/redhat-release 
Red Hat Enterprise Linux Atomic Host release 7.2


How reproducible:
Always

Steps to Reproduce:
1. setup a containerized ceph cluster using ansible - https://docs.google.com/document/d/1Ef5a_-Yjozy5Ue3C0M7mMQNn6zWZe0-514bhxKwFHI8/edit#

2. Once the setup is complete, purge the cluster using the command - purge-docker-cluster.yml --skip-tags=with_pkg

Actual results:
Purging fails

Expected results:
Purging should pass

Additional info:

Comment 2 seb 2016-10-04 09:07:00 UTC
Should this path be configurable then? /root/roles/ceph-common/defaults/main.yml?

Where are you files hosted?

Comment 4 Ken Dreyer (Red Hat) 2017-03-03 16:38:43 UTC
We are not testing this upstream in Jenkins yet. That's the first step.

Comment 9 seb 2017-08-23 09:11:35 UTC
FYI, we do not support ansible 1.9.4 anymore.

Comment 10 seb 2017-08-30 19:59:47 UTC
Fixed, in the patch attached. Although if you keep using Ansible 1.9.4 I won't guarantee this will work. We only support Ansible 2.3.1.
Thanks.

Comment 16 Federico Lucifredi 2018-10-22 20:34:51 UTC
Atomic host is not a supported platform for this product format.


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