Skip to content

Commit 0aeee74

Browse files
committed
tests: Test LV resize in the PV grow test as well
We should check that LVs can be resized to 100 % of the (newly) available space in the VG after automatically growing the PVs. Related: RHEL-73244
1 parent dba7d2b commit 0aeee74

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

tests/tests_lvm_pool_pv_grow.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
become: true
55
vars:
66
storage_safe_mode: false
7-
mount_location1: '/opt/test1'
8-
mount_location2: '/opt/test2'
97
pv_size: '8g'
10-
volume1_size: '2g'
11-
volume2_size: '3g'
128
tags:
139
- tests::lvm
1410

@@ -57,11 +53,7 @@
5753
state: present
5854
volumes:
5955
- name: test1
60-
size: "{{ volume1_size }}"
61-
mount_point: "{{ mount_location1 }}"
62-
- name: test2
63-
size: "{{ volume2_size }}"
64-
mount_point: "{{ mount_location2 }}"
56+
size: 100%
6557

6658
- name: Verify role results
6759
include_tasks: verify-role-results.yml
@@ -77,11 +69,7 @@
7769
state: present
7870
volumes:
7971
- name: test1
80-
size: "{{ volume1_size }}"
81-
mount_point: "{{ mount_location1 }}"
82-
- name: test2
83-
size: "{{ volume2_size }}"
84-
mount_point: "{{ mount_location2 }}"
72+
size: 100%
8573

8674
- name: Verify role results
8775
include_tasks: verify-role-results.yml
@@ -96,7 +84,6 @@
9684
state: "absent"
9785
volumes:
9886
- name: test1
99-
- name: test2
10087

10188
- name: Verify role results
10289
include_tasks: verify-role-results.yml

0 commit comments

Comments
 (0)