ceph-volume tests.functional.simple add zap by osd id to centos7

Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
Alfredo Deza 2018-12-06 15:17:55 -05:00
parent 40a4144647
commit 8955ec1456
6 changed files with 234 additions and 0 deletions

View File

@ -29,3 +29,42 @@
CEPH_VOLUME_DEBUG: 1
with_items:
- "{{ osd_configs.files }}"
# zap tests
- hosts: osds
become: yes
tasks:
- name: stop ceph-osd daemons
service:
name: "ceph-osd@{{ item }}"
state: stopped
with_items:
- "0"
- "1"
- hosts: mons
become: yes
tasks:
- name: purge osds
command: "ceph --cluster {{ cluster }} osd purge osd.{{ item }} --yes-i-really-mean-it"
with_items:
- "0"
- "1"
- hosts: osds
become: yes
tasks:
- name: zap devices used for OSDs
command: "ceph-volume --cluster {{ cluster }} lvm zap --osd-id {{ item }} --destroy"
with_items:
- "0"
- "1"
environment:
CEPH_VOLUME_DEBUG: 1

View File

@ -29,3 +29,42 @@
CEPH_VOLUME_DEBUG: 1
with_items:
- "{{ osd_configs.files }}"
# zap tests
- hosts: osds
become: yes
tasks:
- name: stop ceph-osd daemons
service:
name: "ceph-osd@{{ item }}"
state: stopped
with_items:
- "0"
- "1"
- hosts: mons
become: yes
tasks:
- name: purge osds
command: "ceph --cluster {{ cluster }} osd purge osd.{{ item }} --yes-i-really-mean-it"
with_items:
- "0"
- "1"
- hosts: osds
become: yes
tasks:
- name: zap devices used for OSDs
command: "ceph-volume --cluster {{ cluster }} lvm zap --osd-id {{ item }} --destroy"
with_items:
- "0"
- "1"
environment:
CEPH_VOLUME_DEBUG: 1

View File

@ -29,3 +29,42 @@
CEPH_VOLUME_DEBUG: 1
with_items:
- "{{ osd_configs.files }}"
# zap tests
- hosts: osds
become: yes
tasks:
- name: stop ceph-osd daemons
service:
name: "ceph-osd@{{ item }}"
state: stopped
with_items:
- "0"
- "1"
- hosts: mons
become: yes
tasks:
- name: purge osds
command: "ceph --cluster {{ cluster }} osd purge osd.{{ item }} --yes-i-really-mean-it"
with_items:
- "0"
- "1"
- hosts: osds
become: yes
tasks:
- name: zap devices used for OSDs
command: "ceph-volume --cluster {{ cluster }} lvm zap --osd-id {{ item }} --destroy"
with_items:
- "0"
- "1"
environment:
CEPH_VOLUME_DEBUG: 1

View File

@ -29,3 +29,42 @@
CEPH_VOLUME_DEBUG: 1
with_items:
- "{{ osd_configs.files }}"
# zap tests
- hosts: osds
become: yes
tasks:
- name: stop ceph-osd daemons
service:
name: "ceph-osd@{{ item }}"
state: stopped
with_items:
- "0"
- "1"
- hosts: mons
become: yes
tasks:
- name: purge osds
command: "ceph --cluster {{ cluster }} osd purge osd.{{ item }} --yes-i-really-mean-it"
with_items:
- "0"
- "1"
- hosts: osds
become: yes
tasks:
- name: zap devices used for OSDs
command: "ceph-volume --cluster {{ cluster }} lvm zap --osd-id {{ item }} --destroy"
with_items:
- "0"
- "1"
environment:
CEPH_VOLUME_DEBUG: 1

View File

@ -29,3 +29,42 @@
CEPH_VOLUME_DEBUG: 1
with_items:
- "{{ osd_configs.files }}"
# zap tests
- hosts: osds
become: yes
tasks:
- name: stop ceph-osd daemons
service:
name: "ceph-osd@{{ item }}"
state: stopped
with_items:
- "0"
- "1"
- hosts: mons
become: yes
tasks:
- name: purge osds
command: "ceph --cluster {{ cluster }} osd purge osd.{{ item }} --yes-i-really-mean-it"
with_items:
- "0"
- "1"
- hosts: osds
become: yes
tasks:
- name: zap devices used for OSDs
command: "ceph-volume --cluster {{ cluster }} lvm zap --osd-id {{ item }} --destroy"
with_items:
- "0"
- "1"
environment:
CEPH_VOLUME_DEBUG: 1

View File

@ -29,3 +29,42 @@
CEPH_VOLUME_DEBUG: 1
with_items:
- "{{ osd_configs.files }}"
# zap tests
- hosts: osds
become: yes
tasks:
- name: stop ceph-osd daemons
service:
name: "ceph-osd@{{ item }}"
state: stopped
with_items:
- "0"
- "1"
- hosts: mons
become: yes
tasks:
- name: purge osds
command: "ceph --cluster {{ cluster }} osd purge osd.{{ item }} --yes-i-really-mean-it"
with_items:
- "0"
- "1"
- hosts: osds
become: yes
tasks:
- name: zap devices used for OSDs
command: "ceph-volume --cluster {{ cluster }} lvm zap --osd-id {{ item }} --destroy"
with_items:
- "0"
- "1"
environment:
CEPH_VOLUME_DEBUG: 1