2a13f189be
Resolves: RHEL-58465 - package rhel-system-roles.noarch does not provide docs for ansible-doc [rhel-8.10.z] Resolves: RHEL-58494 ad_integration - fix: Sets domain name lower case in realmd.conf section header [rhel-8.10.z] Resolves: RHEL-58917 bootloader - bootloader role tests do not work on ostree [rhel-8.10.z] Resolves: RHEL-45711 bootloader - fix: Set user.cfg path to /boot/grub2/ on EL 9 UEFI [rhel-8] Resolves: RHEL-58515 cockpit - cockpit install all wildcard match does not work in newer el9 [rhel-8.10.z] Resolves: RHEL-58485 logging - RFE - system-roles - logging: Add truncate options for local file inputs [rhel-8.10.z] Resolves: RHEL-58481 logging - redhat.rhel_system_roles.logging role fails to process logging_outputs: of type: "custom" [rhel-8.10.z] Resolves: RHEL-58477 logging - [RFE] Add the umask settings or enable a variable in linux-system-roles.logging [rhel-8.10.z] Resolves: RHEL-37550 logging - Setup imuxsock using rhel-system-roles.logging causing an error EL8 Resolves: RHEL-58519 nbde_client - feat: Allow initrd configuration to be skipped [rhel-8.10.z] Resolves: RHEL-58525 podman - fix: proper cleanup for networks; ensure cleanup of resources [rhel-8.10.z] Resolves: RHEL-58511 podman - fix: grab name of network to remove from quadlet file [rhel-8.10.z] Resolves: RHEL-58507 podman - Create podman secret when skip_existing=True and it does not exist [rhel-8.10.z] Resolves: RHEL-58503 podman - fix: do not use become for changing hostdir ownership, and expose subuid/subgid info [rhel-8.10.z] Resolves: RHEL-58498 podman - fix: use correct user for cancel linger file name [rhel-8.10.z] Resolves: RHEL-58460 podman - redhat.rhel_system_roles.podman fails to configure and run containers with podman rootless using different username and groupname. [rhel-8.10.z] Resolves: RHEL-58473 sshd - second SSHD service broken [rhel-8.10.z] Resolves: RHEL-58469 storage - rhel-system-role.storage is not idempotent [rhel-8.10.z] Resolves: RHEL-58489 timesync - System Roles: No module documentation [rhel-8.10.z] (cherry picked from commit 350d523452546e35bb0805af9ad9cc74712899d7)
75 lines
2.6 KiB
Diff
75 lines
2.6 KiB
Diff
From 8b3cfc1a30da1ab681eb8c250baa2d6395ecc0d2 Mon Sep 17 00:00:00 2001
|
|
From: Vojtech Trefny <vtrefny@redhat.com>
|
|
Date: Wed, 3 Apr 2024 15:12:00 +0200
|
|
Subject: [PATCH 01/10] test: fix sector-based disk size calculation from
|
|
ansible_devices
|
|
|
|
Device sizes specified in sectors are in general in 512 sectors
|
|
regardless of the actual device physical sector size. Example of
|
|
ansible_devices facts for a 4k sector size drive:
|
|
|
|
...
|
|
"sectors": "41943040",
|
|
"sectorsize": "4096",
|
|
"size": "20.00 GB"
|
|
...
|
|
|
|
Resolves: RHEL-30959
|
|
|
|
Signed-off-by: Vojtech Trefny <vtrefny@redhat.com>
|
|
(cherry picked from commit bb1eb23ccd6e9475cd698f0a6f2f497ffefbccd2)
|
|
---
|
|
tests/tests_create_lv_size_equal_to_vg.yml | 3 +--
|
|
tests/tests_misc.yml | 3 +--
|
|
tests/tests_resize.yml | 6 ++----
|
|
3 files changed, 4 insertions(+), 8 deletions(-)
|
|
|
|
diff --git a/tests/tests_create_lv_size_equal_to_vg.yml b/tests/tests_create_lv_size_equal_to_vg.yml
|
|
index cab4f08..535f73b 100644
|
|
--- a/tests/tests_create_lv_size_equal_to_vg.yml
|
|
+++ b/tests/tests_create_lv_size_equal_to_vg.yml
|
|
@@ -8,8 +8,7 @@
|
|
volume_group_size: '10g'
|
|
lv_size: '10g'
|
|
unused_disk_subfact: '{{ ansible_devices[unused_disks[0]] }}'
|
|
- disk_size: '{{ unused_disk_subfact.sectors | int *
|
|
- unused_disk_subfact.sectorsize | int }}'
|
|
+ disk_size: '{{ unused_disk_subfact.sectors | int * 512 }}'
|
|
tags:
|
|
- tests::lvm
|
|
|
|
diff --git a/tests/tests_misc.yml b/tests/tests_misc.yml
|
|
index 6373897..363d843 100644
|
|
--- a/tests/tests_misc.yml
|
|
+++ b/tests/tests_misc.yml
|
|
@@ -8,8 +8,7 @@
|
|
volume_group_size: "5g"
|
|
volume1_size: "4g"
|
|
unused_disk_subfact: "{{ ansible_devices[unused_disks[0]] }}"
|
|
- too_large_size: "{{ (unused_disk_subfact.sectors | int * 1.2) *
|
|
- unused_disk_subfact.sectorsize | int }}"
|
|
+ too_large_size: "{{ (unused_disk_subfact.sectors | int * 1.2) * 512 }}"
|
|
tags:
|
|
- tests::lvm
|
|
tasks:
|
|
diff --git a/tests/tests_resize.yml b/tests/tests_resize.yml
|
|
index 06fb375..1cd2176 100644
|
|
--- a/tests/tests_resize.yml
|
|
+++ b/tests/tests_resize.yml
|
|
@@ -11,10 +11,8 @@
|
|
invalid_size1: xyz GiB
|
|
invalid_size2: none
|
|
unused_disk_subfact: '{{ ansible_devices[unused_disks[0]] }}'
|
|
- too_large_size: '{{ unused_disk_subfact.sectors | int * 1.2 *
|
|
- unused_disk_subfact.sectorsize | int }}'
|
|
- disk_size: '{{ unused_disk_subfact.sectors | int *
|
|
- unused_disk_subfact.sectorsize | int }}'
|
|
+ too_large_size: '{{ unused_disk_subfact.sectors | int * 1.2 * 512 }}'
|
|
+ disk_size: '{{ unused_disk_subfact.sectors | int * 512 }}'
|
|
tags:
|
|
- tests::lvm
|
|
tasks:
|
|
--
|
|
2.46.0
|
|
|