Descriptionkrishnaram 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:
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: