Skip to content

Commit

Permalink
tests: Test LV resize in the PV grow test as well
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vojtechtrefny committed Jan 16, 2025
1 parent dba7d2b commit 0aeee74
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions tests/tests_lvm_pool_pv_grow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
become: true
vars:
storage_safe_mode: false
mount_location1: '/opt/test1'
mount_location2: '/opt/test2'
pv_size: '8g'
volume1_size: '2g'
volume2_size: '3g'
tags:
- tests::lvm

Expand Down Expand Up @@ -57,11 +53,7 @@
state: present
volumes:
- name: test1
size: "{{ volume1_size }}"
mount_point: "{{ mount_location1 }}"
- name: test2
size: "{{ volume2_size }}"
mount_point: "{{ mount_location2 }}"
size: 100%

- name: Verify role results
include_tasks: verify-role-results.yml
Expand All @@ -77,11 +69,7 @@
state: present
volumes:
- name: test1
size: "{{ volume1_size }}"
mount_point: "{{ mount_location1 }}"
- name: test2
size: "{{ volume2_size }}"
mount_point: "{{ mount_location2 }}"
size: 100%

- name: Verify role results
include_tasks: verify-role-results.yml
Expand All @@ -96,7 +84,6 @@
state: "absent"
volumes:
- name: test1
- name: test2

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

0 comments on commit 0aeee74

Please sign in to comment.