Skip to content

Commit

Permalink
tests: move erasure pool testing in lvm_osds
Browse files Browse the repository at this point in the history
This commit moves the erasure pool creation testing from `all_daemons`
to `lvm_osds` so we can decrease the number of osd nodes we spawn so the
OVH Jenkins slaves aren't less overwhelmed when a `all_daemons` based
scenario is being tested.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 8476beb)
  • Loading branch information
guits committed Aug 20, 2020
1 parent 489efd5 commit 4685b41
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 14 deletions.
2 changes: 1 addition & 1 deletion tests/functional/all_daemons/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ openstack_glance_pool:
name: "images"
pg_num: "{{ osd_pool_default_pg_num }}"
pgp_num: "{{ osd_pool_default_pg_num }}"
type: 3
type: 1
size: 1
pg_autoscale_mode: True
target_size_ratio: 0.2
Expand Down
3 changes: 2 additions & 1 deletion tests/functional/all_daemons/container/group_vars/clients
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ test:
pgp_num: "{{ osd_pool_default_pg_num }}"
rule_name: "HDD"
type: 1
size: 1
test2:
name: "test2"
pg_num: "{{ osd_pool_default_pg_num }}"
pgp_num: "{{ osd_pool_default_pg_num }}"
rule_name: "HDD"
type: 1
size: 1
pools:
- "{{ test }}"
- "{{ test2 }}"
2 changes: 0 additions & 2 deletions tests/functional/all_daemons/container/hosts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ mgr0
osd0 osd_crush_location="{ 'root': 'HDD', 'rack': 'mon-rackkkk', 'pod': 'monpod', 'host': 'osd0' }"
osd1 osd_crush_location="{ 'root': 'default', 'host': 'osd1' }"
osd2 osd_crush_location="{ 'root': 'default', 'host': 'osd2' }"
osd3 osd_crush_location="{ 'root': 'default', 'host': 'osd3' }"
osd4 osd_crush_location="{ 'root': 'default', 'host': 'osd4' }"

[mdss]
mds0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ docker: True

# DEFINE THE NUMBER OF VMS TO RUN
mon_vms: 3
osd_vms: 5
osd_vms: 3
mds_vms: 3
rgw_vms: 1
nfs_vms: 1
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/all_daemons/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ openstack_glance_pool:
name: "images"
pg_num: "{{ osd_pool_default_pg_num }}"
pgp_num: "{{ osd_pool_default_pg_num }}"
type: 3
type: 1
size: 1
application: rbd
pg_autoscale_mode: True
Expand Down
5 changes: 2 additions & 3 deletions tests/functional/all_daemons/group_vars/clients
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ test:
pgp_num: "{{ osd_pool_default_pg_num }}"
rule_name: "HDD"
type: 1
size: "{{ osd_pool_default_size }}"
size: 1
test2:
name: "test2"
pg_num: "{{ osd_pool_default_pg_num }}"
pgp_num: "{{ osd_pool_default_pg_num }}"
rule_name: "HDD"
type: 1
size: "{{ osd_pool_default_size }}"
size: 1
pools:
- "{{ test }}"
- "{{ test2 }}"
2 changes: 0 additions & 2 deletions tests/functional/all_daemons/hosts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ mgr0
osd0 osd_crush_location="{ 'root': 'HDD', 'rack': 'mon-rackkkk', 'pod': 'monpod', 'host': 'osd0' }"
osd1 osd_crush_location="{ 'root': 'default', 'host': 'osd1' }"
osd2 osd_crush_location="{ 'root': 'default', 'host': 'osd2' }"
osd3 osd_crush_location="{ 'root': 'default', 'host': 'osd3' }"
osd4 osd_crush_location="{ 'root': 'default', 'host': 'osd4' }"

[mdss]
mds0
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/all_daemons/vagrant_variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ docker: false

# DEFINE THE NUMBER OF VMS TO RUN
mon_vms: 3
osd_vms: 5
osd_vms: 3
mds_vms: 3
rgw_vms: 1
nfs_vms: 0
Expand Down
22 changes: 21 additions & 1 deletion tests/functional/lvm-osds/container/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,24 @@ ceph_conf_overrides:
osd_pool_default_size: 1
dashboard_enabled: False
handler_health_mon_check_delay: 10
handler_health_osd_check_delay: 10
handler_health_osd_check_delay: 10
openstack_config: True
openstack_glance_pool:
name: "images"
pg_num: "{{ osd_pool_default_pg_num }}"
pgp_num: "{{ osd_pool_default_pg_num }}"
type: 3
size: 1
application: rbd
pg_autoscale_mode: True
target_size_ratio: 0.2
openstack_cinder_pool:
name: "volumes"
pg_num: "{{ osd_pool_default_pg_num }}"
pgp_num: "{{ osd_pool_default_pg_num }}"
type: 1
size: 1
application: rbd
openstack_pools:
- "{{ openstack_glance_pool }}"
- "{{ openstack_cinder_pool }}"
22 changes: 21 additions & 1 deletion tests/functional/lvm-osds/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,24 @@ ceph_conf_overrides:
osd_pool_default_size: 1
dashboard_enabled: False
handler_health_mon_check_delay: 10
handler_health_osd_check_delay: 10
handler_health_osd_check_delay: 10
openstack_config: True
openstack_glance_pool:
name: "images"
pg_num: "{{ osd_pool_default_pg_num }}"
pgp_num: "{{ osd_pool_default_pg_num }}"
type: 3
size: 1
application: rbd
pg_autoscale_mode: True
target_size_ratio: 0.2
openstack_cinder_pool:
name: "volumes"
pg_num: "{{ osd_pool_default_pg_num }}"
pgp_num: "{{ osd_pool_default_pg_num }}"
type: 1
size: 1
application: rbd
openstack_pools:
- "{{ openstack_glance_pool }}"
- "{{ openstack_cinder_pool }}"

0 comments on commit 4685b41

Please sign in to comment.