Bug 1339492 - [RFE] purge cluster fails when "osd_auto_discovery" is true
Summary: [RFE] purge cluster fails when "osd_auto_discovery" is true
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Storage Console
Classification: Red Hat Storage
Component: ceph-ansible
Version: 2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3
Assignee: Christina Meno
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-25 08:03 UTC by Tejas
Modified: 2017-03-03 16:51 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-03 16:51:29 UTC
Embargoed:


Attachments (Terms of Use)

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.


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