From e5d08539fec9cb3d161756fc36e9fd9ef2b742e6 Mon Sep 17 00:00:00 2001 From: Klention Mali Date: Mon, 14 Jul 2025 20:03:47 +0200 Subject: [PATCH] Decreased loop devices file size --- .../targets/lvm_pv_move_data/tasks/cleanup.yml | 4 ++-- .../targets/lvm_pv_move_data/tasks/creation.yml | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/integration/targets/lvm_pv_move_data/tasks/cleanup.yml b/tests/integration/targets/lvm_pv_move_data/tasks/cleanup.yml index 65b8b0bbe4..7c511f4fa5 100644 --- a/tests/integration/targets/lvm_pv_move_data/tasks/cleanup.yml +++ b/tests/integration/targets/lvm_pv_move_data/tasks/cleanup.yml @@ -3,7 +3,7 @@ # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later -- name: Unmounting LV lv_tmp_test from {{ remote_tmp_dir }}/tmp_mount +- name: Unmounting LV lv_tmp_test ansible.posix.mount: fstab: '{{ remote_tmp_dir }}/fstab' path: '{{ remote_tmp_dir }}/tmp_mount' @@ -12,7 +12,7 @@ - name: Removing xfs filesystem from LV lv_tmp_test community.general.filesystem: dev: /dev/vg_tmp_test/lv_tmp_test - status: absent + state: absent - name: Detaching first loop device ansible.builtin.command: losetup -d {{ loop_device_01.stdout }} diff --git a/tests/integration/targets/lvm_pv_move_data/tasks/creation.yml b/tests/integration/targets/lvm_pv_move_data/tasks/creation.yml index b48b00bcfb..1b09e1a07f 100644 --- a/tests/integration/targets/lvm_pv_move_data/tasks/creation.yml +++ b/tests/integration/targets/lvm_pv_move_data/tasks/creation.yml @@ -3,13 +3,13 @@ # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later -- name: Creating a 3000MB file for the first loop device - ansible.builtin.command: dd if=/dev/zero of={{ remote_tmp_dir }}/test_lvm_pv_01.img bs=1M count=3000 +- name: Creating a 500MB file for the first loop device + ansible.builtin.command: dd if=/dev/zero of={{ remote_tmp_dir }}/test_lvm_pv_01.img bs=1M count=500 args: creates: "{{ remote_tmp_dir }}/test_lvm_pv_01.img" -- name: Creating a 4000MB file for the second loop device - ansible.builtin.command: dd if=/dev/zero of={{ remote_tmp_dir }}/test_lvm_pv_02.img bs=1M count=4000 +- name: Creating a 1000MB file for the second loop device + ansible.builtin.command: dd if=/dev/zero of={{ remote_tmp_dir }}/test_lvm_pv_02.img bs=1M count=1000 args: creates: "{{ remote_tmp_dir }}/test_lvm_pv_02.img" @@ -63,12 +63,13 @@ community.general.filesystem: dev: /dev/vg_tmp_test/lv_tmp_test fstype: xfs + state: present register: fs_creation_result #- name: Mounting LV lv_tmp_test to {{ remote_tmp_dir }}/tmp_mount # ansible.builtin.shell: mount -o rw,noauto /dev/vg_tmp_test/lv_tmp_test {{ remote_tmp_dir }}/tmp_mount -- name: Mounting LV lv_tmp_test to {{ remote_tmp_dir }}/tmp_mount +- name: Mounting LV lv_tmp_test ansible.posix.mount: fstab: '{{ remote_tmp_dir }}/fstab' path: '{{ remote_tmp_dir }}/tmp_mount'