Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2153660

Summary: [RHEL9] tests_create_thinp_then_remove_scsi_generated.yml failed at "assertion": "(storage_test_expected_size|int - storage_test_actual_size.bytes)|abs / storage_test_expected_size|int < 0.01"
Product: Red Hat Enterprise Linux 9 Reporter: Zhang Yi <yizhan>
Component: rhel-system-rolesAssignee: Rich Megginson <rmeggins>
Status: CLOSED ERRATA QA Contact: Zhang Yi <yizhan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.2CC: rmeggins, spetrosi, vtrefny
Target Milestone: rcKeywords: Triaged
Target Release: 9.2Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:storage
Fixed In Version: rhel-system-roles-1.21.0-0.13.el9 Doc Type: No Doc Update
Doc Text:
test only issue - no doc update required
Story Points: ---
Clone Of:
: 2154143 (view as bug list) Environment:
Last Closed: 2023-05-09 07:38:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2154143    

Description Zhang Yi 2022-12-15 03:53:02 UTC
Description of problem:
[RHEL9] tests_create_thinp_then_remove_scsi_generated.yml failed at "assertion": "(storage_test_expected_size|int - storage_test_actual_size.bytes)|abs / storage_test_expected_size|int < 0.01"

Version-Release number of selected component (if applicable):
rhel-system-roles-1.21.0-0.10.storage.el9.noarch

How reproducible:


Steps to Reproduce:
1. 
[root@storageqe-62 rhel-system-roles.storage]# ansible-playbook -i host tests/tests_create_thinp_then_remove_scsi_generated.yml

[root@storageqe-62 rhel-system-roles.storage]# cat host 
localhost  ansible_connection=local
2.
3.

Actual results:


Expected results:


Additional info:

[root@storageqe-62 rhel-system-roles.storage]# cat tests_create_thinp_then_remove_scsi_generated.yml.log
--snip--
TASK [debug] *******************************************************************
ok: [localhost] => {
    "storage_test_blkinfo": {
        "changed": false,
        "failed": false,
        "info": {
            "/dev/mapper/rhel_storageqe--62-home": {
                "fstype": "xfs",
                "label": "",
                "name": "/dev/mapper/rhel_storageqe--62-home",
                "size": "200G",
                "type": "lvm",
                "uuid": "940fd92e-a574-4ed8-9f47-8dc80dbf36ee"
            },
            "/dev/mapper/rhel_storageqe--62-root": {
                "fstype": "xfs",
                "label": "",
                "name": "/dev/mapper/rhel_storageqe--62-root",
                "size": "70G",
                "type": "lvm",
                "uuid": "0b0515c0-cb3d-4aac-897d-ae3f44d35a35"
            },
            "/dev/mapper/rhel_storageqe--62-swap": {
                "fstype": "swap",
                "label": "",
                "name": "/dev/mapper/rhel_storageqe--62-swap",
                "size": "7.8G",
                "type": "lvm",
                "uuid": "e5ab04b8-3456-43e9-a04e-358105f09f5e"
            },
            "/dev/mapper/vg1-lv1": {
                "fstype": "xfs",
                "label": "",
                "name": "/dev/mapper/vg1-lv1",
                "size": "477G",
                "type": "lvm",
                "uuid": "f3880051-1739-4663-bcec-1338990c5d6b"
            },
            "/dev/mapper/vg1-tpool1": {
                "fstype": "",
                "label": "",
                "name": "/dev/mapper/vg1-tpool1",
                "size": "477G",
                "type": "lvm",
                "uuid": ""
            },
            "/dev/mapper/vg1-tpool1-tpool": {
                "fstype": "",
                "label": "",
                "name": "/dev/mapper/vg1-tpool1-tpool",
                "size": "477G",
                "type": "lvm",
                "uuid": ""
            },
            "/dev/mapper/vg1-tpool1_tdata": {
                "fstype": "",
                "label": "",
                "name": "/dev/mapper/vg1-tpool1_tdata",
                "size": "477G",
                "type": "lvm",
                "uuid": ""
            },
            "/dev/mapper/vg1-tpool1_tmeta": {
                "fstype": "",
                "label": "",
                "name": "/dev/mapper/vg1-tpool1_tmeta",
                "size": "480M",
                "type": "lvm",
                "uuid": ""
            },
            "/dev/nvme0n1": {
                "fstype": "",
                "label": "",
                "name": "/dev/nvme0n1",
                "size": "894.3G",
                "type": "disk",
                "uuid": ""
            },
            "/dev/sda": {
                "fstype": "",
                "label": "",
                "name": "/dev/sda",
                "size": "279.4G",
                "type": "disk",
                "uuid": ""
            },
            "/dev/sda1": {
                "fstype": "LVM2_member",
                "label": "",
                "name": "/dev/sda1",
                "size": "279.4G",
                "type": "partition",
                "uuid": "tW3ctn-M43W-ZlSg-IJs9-a3bA-Xsmu-guN0Ah"
            },
            "/dev/sdb": {
                "fstype": "",
                "label": "",
                "name": "/dev/sdb",
                "size": "186.3G",
                "type": "disk",
                "uuid": ""
            },
            "/dev/sdb1": {
                "fstype": "LVM2_member",
                "label": "",
                "name": "/dev/sdb1",
                "size": "186.3G",
                "type": "partition",
                "uuid": "addmWs-ctDA-35ON-d643-tFoW-qJ1B-6IpUCu"
            },
            "/dev/sdc": {
                "fstype": "",
                "label": "",
                "name": "/dev/sdc",
                "size": "279.4G",
                "type": "disk",
                "uuid": ""
            },
            "/dev/sdc1": {
                "fstype": "vfat",
                "label": "",
                "name": "/dev/sdc1",
                "size": "600M",
                "type": "partition",
                "uuid": "1C8C-9412"
            },
            "/dev/sdc2": {
                "fstype": "xfs",
                "label": "",
                "name": "/dev/sdc2",
                "size": "1G",
                "type": "partition",
                "uuid": "e06e9511-f390-47ec-91d5-cb25b859cef9"
            },
            "/dev/sdc3": {
                "fstype": "LVM2_member",
                "label": "",
                "name": "/dev/sdc3",
                "size": "277.8G",
                "type": "partition",
                "uuid": "glTcsX-ujEr-WX74-iPZ8-ffS9-UzFm-xB2QVK"
            },
            "/dev/sdd": {
                "fstype": "",
                "label": "",
                "name": "/dev/sdd",
                "size": "111.8G",
                "type": "disk",
                "uuid": ""
            },
            "/dev/sdd1": {
                "fstype": "LVM2_member",
                "label": "",
                "name": "/dev/sdd1",
                "size": "111.8G",
                "type": "partition",
                "uuid": "KKKnq8-r46P-5N3L-gc7o-eAVA-vUao-kcMxGM"
            },
            "/dev/sde": {
                "fstype": "",
                "label": "",
                "name": "/dev/sde",
                "size": "931.5G",
                "type": "disk",
                "uuid": ""
            },
            "/dev/sdf": {
                "fstype": "",
                "label": "",
                "name": "/dev/sdf",
                "size": "931.5G",
                "type": "disk",
                "uuid": ""
            },
            "/dev/sdg": {
                "fstype": "",
                "label": "",
                "name": "/dev/sdg",
                "size": "931.5G",
                "type": "disk",
                "uuid": ""
            },
            "/dev/sdh": {
                "fstype": "",
                "label": "",
                "name": "/dev/sdh",
                "size": "931.5G",
                "type": "disk",
                "uuid": ""
            },
            "/dev/sdi": {
                "fstype": "",
                "label": "",
                "name": "/dev/sdi",
                "size": "279.4G",
                "type": "disk",
                "uuid": ""
            },
            "/dev/sdj": {
                "fstype": "",
                "label": "",
                "name": "/dev/sdj",
                "size": "931.5G",
                "type": "disk",
                "uuid": ""
            },
            "/dev/sdk": {
                "fstype": "",
                "label": "",
                "name": "/dev/sdk",
                "size": "279.4G",
                "type": "disk",
                "uuid": ""
            },
            "/dev/sdl": {
                "fstype": "",
                "label": "",
                "name": "/dev/sdl",
                "size": "111.8G",
                "type": "disk",
                "uuid": ""
            }
        }
    }
}

TASK [debug] *******************************************************************
ok: [localhost] => {
    "storage_test_pool_size": {
        "bytes": 620075165941,
        "changed": false,
        "failed": false,
        "lvm": "577g",
        "parted": "577GiB",
        "size": "577 GiB"
    }
}

TASK [Calculate the expected size based on pool size and percentage value] *****
ok: [localhost]

TASK [Default thin pool reserved space values] *********************************
ok: [localhost]

TASK [Default minimal thin pool reserved space size] ***************************
ok: [localhost]

TASK [Default maximal thin pool reserved space size] ***************************
ok: [localhost]

TASK [Calculate maximum usable space in thin pool] *****************************
ok: [localhost]

TASK [Apply upper size limit to max usable thin pool space] ********************
ok: [localhost]

TASK [Apply lower size limit to max usable thin pool space] ********************
skipping: [localhost]

TASK [Convert maximum usable thin pool space from int to Size] *****************
ok: [localhost]

TASK [debug] *******************************************************************
ok: [localhost] => {
    "_storage_test_max_thin_pool_size": {
        "bytes": 520075165941,
        "changed": false,
        "failed": false,
        "lvm": "484g",
        "parted": "484GiB",
        "size": "484 GiB"
    }
}

TASK [debug] *******************************************************************
ok: [localhost] => {
    "storage_test_volume.thin_pool_size": "100%"
}

TASK [debug] *******************************************************************
ok: [localhost] => {
    "storage_test_volume.size": "100%"
}

TASK [Establish base value for expected thin pool size] ************************
skipping: [localhost]

TASK [Calculate the expected size based on pool size and percentage value] *****
ok: [localhost]

TASK [Establish base value for expected thin pool volume size] *****************
ok: [localhost]

TASK [Calculate the expected thin pool volume size based on percentage value] ***
ok: [localhost]

TASK [Replace expected volume size with calculated value] **********************
ok: [localhost]

TASK [debug] *******************************************************************
ok: [localhost] => {
    "storage_test_actual_size": {
        "bytes": 512174850048,
        "changed": false,
        "failed": false,
        "lvm": "477g",
        "parted": "477GiB",
        "size": "477 GiB"
    }
}

TASK [debug] *******************************************************************
ok: [localhost] => {
    "storage_test_expected_size": "520075165941.0"
}

TASK [assert] ******************************************************************
fatal: [localhost]: FAILED! => {
    "assertion": "(storage_test_expected_size|int - storage_test_actual_size.bytes)|abs / storage_test_expected_size|int < 0.01",
    "changed": false,
    "evaluated_to": false,
    "msg": "Volume lv1 has unexpected size (expected: 520075165941 / actual: 512174850048)"
}

PLAY RECAP *********************************************************************
localhost                  : ok=795  changed=10   unreachable=0    failed=1    skipped=600  rescued=0    ignored=0

Comment 8 errata-xmlrpc 2023-05-09 07:38:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (rhel-system-roles bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:2246