Bug 1339492

Summary: [RFE] purge cluster fails when "osd_auto_discovery" is true
Product: [Red Hat Storage] Red Hat Storage Console Reporter: Tejas <tchandra>
Component: ceph-ansibleAssignee: Christina Meno <gmeno>
Status: CLOSED WONTFIX QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2CC: adeza, aschoen, ceph-eng-bugs, nthomas, sankarshan
Target Milestone: ---   
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: 2017-03-03 16:51:29 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:

Description Tejas 2016-05-25 08:03:35 UTC
Description of problem:
When a cluster is installed using "osd_auto_discovery" set to true,
the purge cluster fails.
If "osd_auto_dscovery" is true , the customer would not know which devices  have osd's
This could be a problem on large clusters.
Can we try for a mor eintelligent way of purging clusters?

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

GATHERING FACTS *************************************************************** 
ok: [localhost]

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

PLAY [stop ceph cluster] ****************************************************** 

GATHERING FACTS *************************************************************** 
ok: [magna058]
ok: [magna046]
ok: [magna052]

TASK: [check for a device list] *********************************************** 
failed: [magna046] => {"failed": true}
msg: OSD automatic discovery was detected, purge cluster does not support this scenario. If you want to purge the cluster, manually provide the list of devices in group_vars/osds using the devices variable.
failed: [magna052] => {"failed": true}
msg: OSD automatic discovery was detected, purge cluster does not support this scenario. If you want to purge the cluster, manually provide the list of devices in group_vars/osds using the devices variable.
failed: [magna058] => {"failed": true}
msg: OSD automatic discovery was detected, purge cluster does not support this scenario. If you want to purge the cluster, manually provide the list of devices in group_vars/osds using the devices variable.

FATAL: all hosts have already failed -- aborting

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

localhost                  : ok=1    changed=0    unreachable=0    failed=0   
magna046                   : ok=1    changed=0    unreachable=0    failed=1   
magna052                   : ok=1    changed=0    unreachable=0    failed=1   
magna058                   : ok=1    changed=0    unreachable=0    failed=1   



How reproducible:
Always

Comment 3 Andrew Schoen 2017-03-03 16:51:29 UTC
I don't think we want ceph-ansible to try to auto discover devices to purge, requiring the user to provide the devices seems the safest way to purge. If this is a priority, please reopen.