Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-76021

[RHEL9.6][rhel-system-roles.storage] test tests_lvm_percent_size_nvme_generated.yml failed at [Assert expected size is actual size]

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.6
    • rhel-system-roles
    • None
    • No
    • None
    • rhel-sst-system-roles
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      rhel-system-roles-1.94.1-0.2.el9.noarch

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. ansible-playbook -i host tests/tests_lvm_percent_size_nvme_generated.yml

      Expected results

      Actual results

      TASK [Show actual size] ****************************************************************************************************************************************************************
      ok: [localhost] => {
          "storage_test_actual_size": {
              "bytes": 1099511627776,
              "changed": false,
              "failed": false,
              "lvm": "1t",
              "parted": "1TiB",
              "size": "1 TiB"
          }
      }
      
      TASK [Show expected size] **************************************************************************************************************************************************************
      ok: [localhost] => {
          "storage_test_expected_size": "1152225908883.0"
      }
      
      TASK [Assert expected size is actual size] *********************************************************************************************************************************************
      fatal: [localhost]: FAILED! => {
          "assertion": "(storage_test_expected_size | int - storage_test_actual_size.bytes) | abs / storage_test_expected_size | int < 0.04",
          "changed": false,
          "evaluated_to": false,
          "msg": "Volume test1 has unexpected size (expected: 1152225908883 / actual: 1099511627776)"
      }
      
      PLAY RECAP *****************************************************************************************************************************************************************************
      localhost                  : ok=149  changed=2    unreachable=0    failed=1    skipped=147  rescued=2    ignored=0
      

              rmeggins@redhat.com Richard Megginson
              yizhan@redhat.com Yi Zhang
              Richard Megginson Richard Megginson
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: