tests: update pools definitions

setting attributes with empty string is a bad user input.
Also, removing `rule_name` attribute when creating a code erasure pool.
(this rule isnt intended for code erasure pool type).

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/5387/head
Guillaume Abrioux 2020-04-30 01:23:20 +02:00
parent af9f6684f2
commit 83faf94351
4 changed files with 0 additions and 18 deletions

View File

@ -22,10 +22,7 @@ openstack_glance_pool:
name: "images" name: "images"
pg_num: "{{ osd_pool_default_pg_num }}" pg_num: "{{ osd_pool_default_pg_num }}"
pgp_num: "{{ osd_pool_default_pg_num }}" pgp_num: "{{ osd_pool_default_pg_num }}"
rule_name: "HDD"
type: 3 type: 3
erasure_profile: ""
expected_num_objects: ""
size: 1 size: 1
pg_autoscale_mode: True pg_autoscale_mode: True
target_size_ratio: 0.2 target_size_ratio: 0.2
@ -35,8 +32,6 @@ openstack_cinder_pool:
pgp_num: "{{ osd_pool_default_pg_num }}" pgp_num: "{{ osd_pool_default_pg_num }}"
rule_name: "HDD" rule_name: "HDD"
type: 1 type: 1
erasure_profile: ""
expected_num_objects: ""
size: 1 size: 1
openstack_pools: openstack_pools:
- "{{ openstack_glance_pool }}" - "{{ openstack_glance_pool }}"

View File

@ -7,16 +7,12 @@ test:
pgp_num: "{{ osd_pool_default_pg_num }}" pgp_num: "{{ osd_pool_default_pg_num }}"
rule_name: "HDD" rule_name: "HDD"
type: 1 type: 1
erasure_profile: ""
expected_num_objects: ""
test2: test2:
name: "test2" name: "test2"
pg_num: "{{ osd_pool_default_pg_num }}" pg_num: "{{ osd_pool_default_pg_num }}"
pgp_num: "{{ osd_pool_default_pg_num }}" pgp_num: "{{ osd_pool_default_pg_num }}"
rule_name: "HDD" rule_name: "HDD"
type: 1 type: 1
erasure_profile: ""
expected_num_objects: ""
pools: pools:
- "{{ test }}" - "{{ test }}"
- "{{ test2 }}" - "{{ test2 }}"

View File

@ -14,10 +14,7 @@ openstack_glance_pool:
name: "images" name: "images"
pg_num: "{{ osd_pool_default_pg_num }}" pg_num: "{{ osd_pool_default_pg_num }}"
pgp_num: "{{ osd_pool_default_pg_num }}" pgp_num: "{{ osd_pool_default_pg_num }}"
rule_name: "HDD"
type: 3 type: 3
erasure_profile: ""
expected_num_objects: ""
size: 1 size: 1
application: rbd application: rbd
pg_autoscale_mode: True pg_autoscale_mode: True
@ -28,8 +25,6 @@ openstack_cinder_pool:
pgp_num: "{{ osd_pool_default_pg_num }}" pgp_num: "{{ osd_pool_default_pg_num }}"
rule_name: "HDD" rule_name: "HDD"
type: 1 type: 1
erasure_profile: ""
expected_num_objects: ""
size: 1 size: 1
application: rbd application: rbd
openstack_pools: openstack_pools:

View File

@ -7,8 +7,6 @@ test:
pgp_num: "{{ osd_pool_default_pg_num }}" pgp_num: "{{ osd_pool_default_pg_num }}"
rule_name: "HDD" rule_name: "HDD"
type: 1 type: 1
erasure_profile: ""
expected_num_objects: ""
size: "{{ osd_pool_default_size }}" size: "{{ osd_pool_default_size }}"
test2: test2:
name: "test2" name: "test2"
@ -16,8 +14,6 @@ test2:
pgp_num: "{{ osd_pool_default_pg_num }}" pgp_num: "{{ osd_pool_default_pg_num }}"
rule_name: "HDD" rule_name: "HDD"
type: 1 type: 1
erasure_profile: ""
expected_num_objects: ""
size: "{{ osd_pool_default_size }}" size: "{{ osd_pool_default_size }}"
pools: pools:
- "{{ test }}" - "{{ test }}"