mirror of
https://github.com/ceph/ceph
synced 2025-01-31 23:44:10 +00:00
ceph-volume: use simple scan
and simple activate --all
in tests
In a couple of the functional tests for simple we should run `simple scan` without any arguments and `simple activate --all` to increase the test coverage. We want to test pointing at a diretory and scanning all running OSDs. Signed-off-by: Andrew Schoen <aschoen@redhat.com>
This commit is contained in:
parent
f7943ef600
commit
87c33f149a
@ -4,31 +4,15 @@
|
||||
become: yes
|
||||
tasks:
|
||||
|
||||
- name: list all OSD directories
|
||||
find:
|
||||
paths: /var/lib/ceph/osd
|
||||
file_type: directory
|
||||
register: osd_paths
|
||||
|
||||
- name: scan all OSD directories
|
||||
command: "ceph-volume --cluster={{ cluster }} simple scan {{ item.path }}"
|
||||
- name: scan all running OSDs
|
||||
command: "ceph-volume --cluster={{ cluster }} simple scan"
|
||||
environment:
|
||||
CEPH_VOLUME_DEBUG: 1
|
||||
with_items:
|
||||
- "{{ osd_paths.files }}"
|
||||
|
||||
- name: list all OSD JSON files
|
||||
find:
|
||||
paths: /etc/ceph/osd
|
||||
file_type: file
|
||||
register: osd_configs
|
||||
|
||||
- name: activate all scanned OSDs
|
||||
command: "ceph-volume --cluster={{ cluster }} simple activate --file {{ item.path }}"
|
||||
command: "ceph-volume --cluster={{ cluster }} simple activate --all"
|
||||
environment:
|
||||
CEPH_VOLUME_DEBUG: 1
|
||||
with_items:
|
||||
- "{{ osd_configs.files }}"
|
||||
|
||||
# zap tests
|
||||
|
||||
|
@ -4,31 +4,15 @@
|
||||
become: yes
|
||||
tasks:
|
||||
|
||||
- name: list all OSD directories
|
||||
find:
|
||||
paths: /var/lib/ceph/osd
|
||||
file_type: directory
|
||||
register: osd_paths
|
||||
|
||||
- name: scan all OSD directories
|
||||
command: "ceph-volume --cluster={{ cluster }} simple scan {{ item.path }}"
|
||||
- name: scan all running OSDs
|
||||
command: "ceph-volume --cluster={{ cluster }} simple scan"
|
||||
environment:
|
||||
CEPH_VOLUME_DEBUG: 1
|
||||
with_items:
|
||||
- "{{ osd_paths.files }}"
|
||||
|
||||
- name: list all OSD JSON files
|
||||
find:
|
||||
paths: /etc/ceph/osd
|
||||
file_type: file
|
||||
register: osd_configs
|
||||
|
||||
- name: activate all scanned OSDs
|
||||
command: "ceph-volume --cluster={{ cluster }} simple activate --file {{ item.path }}"
|
||||
command: "ceph-volume --cluster={{ cluster }} simple activate --all"
|
||||
environment:
|
||||
CEPH_VOLUME_DEBUG: 1
|
||||
with_items:
|
||||
- "{{ osd_configs.files }}"
|
||||
|
||||
# zap tests
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user