Description of problem: ======================= purge-cluster.yml do not show any failures but do not purge cluster if mon and osd group name is different than 'mons' and 'osds' as those names are hardcoded in purge-cluster.yml Version-Release number of selected component (if applicable): ============================================================== ceph-ansible-1.0.5-23.el7scon.noarch ceph-installer-1.0.12-3.el7scon.noarch ceph-common-10.2.2-9.el7cp.x86_64 How reproducible: ================== always Steps to Reproduce: =================== 1. make change in group_vars/all and change group name mon_group_name: monsmy osd_group_name: osdsmy make similar changes in inventory file 2. follow document and create cluster having one mon and 3 OSD node(each node has 3 OSD) 3. purge-cluster using below command [root@magna044 ceph-ansible]# ansible-playbook purge-cluster.yml -vv -i /etc/ansible/hosts Actual results: =============== Are you sure you want to purge the cluster? [no]: yes PLAY [confirm whether user really meant to purge the cluster] ***************** GATHERING FACTS *************************************************************** <localhost> REMOTE_MODULE setup ok: [localhost] TASK: [exit playbook, if user did not mean to purge cluster] ****************** skipping: [localhost] PLAY [stop ceph cluster] ****************************************************** skipping: no hosts matched PLAY RECAP ******************************************************************** localhost : ok=1 changed=0 unreachable=0 failed=0 ----> no failures and cluster is not purged as those group names are hardcoded in purge file Expected results: ================ It should purge cluster 1. either update Document and ask user to update groupname/hosts variable in purge-cluster.yml or 2. change code so purge-cluster.yml pick mon_group_name from group_vars/all file. Additional info:
Expected results: ================ It should purge cluster 1. either update Document and ask user to update groupname/hosts variable in purge-cluster.yml (changes needs to be done If and only if mon/osd group name is different than default) or 2. change code so purge-cluster.yml pick mon_group_name from group_vars/all file.
Andrew and I discussed this today. We think the best fix would be to drop the hard-coded *_group_name vars in ./infrastructure-playbooks/purge-cluster.yml, specifically this bit: - name: gather facts on all hosts vars: mon_group_name: mons osd_group_name: osds mds_group_name: mdss rgw_group_name: rgws rbdmirror_group_name: rbd-mirrors nfs_group_name: nfss client_group_name: clients
PR opened upstream: https://github.com/ceph/ceph-ansible/pull/1349
The cluster deployment failed on changing the mon_group_name and osd_group_name.Filed bug 1509201 for the same