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

[RHEL10] Unexpected difference between PV size and block device size

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • No
    • None
    • rhel-system-roles
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      TASK [Get actual PV size] *****************************************************************************************************************
      task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/verify-pool-member-pvsize.yml:2
      ok: [localhost] => {"changed": false, "cmd": ["pvs", "--noheadings", "--nosuffix", "--units", "b", "-o", "SIZE", "/dev/sda"], "delta": "0:00:00.065564", "end": "2025-08-06 23:38:21.876432", "msg": "", "rc": 0, "start": "2025-08-06 23:38:21.810868", "stderr": "", "stderr_lines": [], "stdout": "  8001561821184", "stdout_lines": ["  8001561821184"]}TASK [Get PE start for the PV] ************************************************************************************************************
      task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/verify-pool-member-pvsize.yml:7
      ok: [localhost] => {"changed": false, "cmd": ["pvs", "--noheadings", "--nosuffix", "--units", "b", "-o", "PESTART", "/dev/sda"], "delta": "0:00:00.030171", "end": "2025-08-06 23:38:22.217768", "msg": "", "rc": 0, "start": "2025-08-06 23:38:22.187597", "stderr": "", "stderr_lines": [], "stdout": "  1048576", "stdout_lines": ["  1048576"]}TASK [Convert blkinfo size to bytes] ******************************************************************************************************
      task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/verify-pool-member-pvsize.yml:12
      ok: [localhost] => {"bytes": 8026434882764, "changed": false, "lvm": "7t", "parted": "7TiB", "size": "7 TiB"}TASK [Verify each PV size] ****************************************************************************************************************
      task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/verify-pool-member-pvsize.yml:18
      fatal: [localhost]: FAILED! => {
          "assertion": "(dev_size.bytes - actual_pv_size.stdout |trim | int) <= (4194304 + pv_pe_start.stdout |trim| int)",
          "changed": false,
          "evaluated_to": false,
          "msg": "Unexpected difference between PV size and block device size: (device size: 8026434882764) (actual PV size:   8001561821184)"
      }TASK [Remove 'foo' pool created above] ****************************************************************************************************
      task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/tests_lvm_pool_pv_grow.yml:80TASK [rhel-system-roles.storage : Set platform/version specific variables] ****************************************************************
      task path: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/main.yml:2
      included: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/set_vars.yml for localhost
       

       

       

      TASK [rhel-system-roles.storage : Show blivet_output] *************************************************************************************
      task path: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/main-blivet.yml:136
      ok: [localhost] => {
          "blivet_output": {
              "actions": [
                  {
                      "action": "destroy format",
                      "device": "/dev/mapper/foo-test1",
                      "fs_type": "xfs"
                  },
                  {
                      "action": "destroy device",
                      "device": "/dev/mapper/foo-test1",
                      "fs_type": null
                  },
                  {
                      "action": "destroy device",
                      "device": "/dev/foo",
                      "fs_type": null
                  },
                  {
                      "action": "destroy format",
                      "device": "/dev/sda",
                      "fs_type": "lvmpv"
                  }
              ],
              "changed": true,
              "crypts": [],
              "failed": false,
              "leaves": [
                  "/dev/sr0",
                  "/dev/sda",
                  "/dev/sdb",
                  "/dev/sdd",
                  "/dev/sdc",
                  "/dev/sde",
                  "/dev/sdg",
                  "/dev/sdf",
                  "/dev/sdh1",
                  "/dev/sdh2",
                  "/dev/mapper/rhel_storageqe--105-swap",
                  "/dev/mapper/rhel_storageqe--105-home",
                  "/dev/mapper/rhel_storageqe--105-root"
              ],
              "mounts": [],
              "packages": [
                  "xfsprogs",
                  "lvm2"
              ],
              "pools": [
                  {
                      "disks": [
                          "sda"
                      ],
                      "encryption": false,
                      "encryption_cipher": null,
                      "encryption_clevis_pin": null,
                      "encryption_key": null,
                      "encryption_key_size": null,
                      "encryption_luks_version": null,
                      "encryption_password": null,
                      "encryption_tang_thumbprint": null,
                      "encryption_tang_url": null,
                      "grow_to_fill": false,
                      "name": "foo",
                      "raid_chunk_size": null,
                      "raid_device_count": null,
                      "raid_level": null,
                      "raid_metadata_version": null,
                      "raid_spare_count": null,
                      "shared": false,
                      "state": "absent",
                      "type": "lvm",
                      "volumes": [
                          {
                              "_device": "/dev/mapper/foo-test1",
                              "_mount_id": "UUID=895d028a-f76b-4fae-8eff-8c675c15a59f",
                              "_raw_device": "/dev/mapper/foo-test1",
                              "cache_devices": [],
                              "cache_mode": null,
                              "cache_size": 0,
                              "cached": false,
                              "compression": null,
                              "deduplication": null,
                              "disks": [
                                  "sda"
                              ],
                              "encryption": false,
                              "encryption_cipher": null,
                              "encryption_key": null,
                              "encryption_key_size": null,
                              "encryption_luks_version": null,
                              "encryption_password": null,
                              "fs_create_options": "",
                              "fs_label": "",
                              "fs_overwrite_existing": true,
                              "fs_type": "xfs",
                              "mount_check": 0,
                              "mount_device_identifier": "uuid",
                              "mount_group": null,
                              "mount_mode": null,
                              "mount_options": "defaults",
                              "mount_passno": 0,
                              "mount_point": null,
                              "mount_user": null,
                              "name": "test1",
                              "raid_chunk_size": null,
                              "raid_device_count": null,
                              "raid_disks": [],
                              "raid_level": null,
                              "raid_metadata_version": null,
                              "raid_spare_count": null,
                              "raid_stripe_size": null,
                              "size": 8001561821184,
                              "state": "present",
                              "thin": false,
                              "thin_pool_name": null,
                              "thin_pool_size": null,
                              "type": "lvm",
                              "vdo_pool_size": null
                          }
                      ]
                  }
              ],
              "volumes": []
          }
      } 

      ansible-playbook -vv -i /home/host tests_lvm_pool_pv_grow_scsi_generated.yml 

       

      [root@storageqe-105 tests]# lsblk -b -o NAME,MAJ:MIN,SIZE,TYPE,MOUNTPOINT
      NAME                         MAJ:MIN          SIZE TYPE MOUNTPOINT
      sda                            8:0   8001563222016 disk 
      sdb                            8:16  8001563222016 disk 
      sdc                            8:32  8001563222016 disk 
      sdd                            8:48  8001563222016 disk 
      sde                            8:64  8001563222016 disk 
      sdf                            8:80  8001563222016 disk 
      sdg                            8:96  8001563222016 disk 
      sdh                            8:112  599550590976 disk 
      ├─sdh1                         8:113       1048576 part 
      ├─sdh2                         8:114    1073741824 part /boot
      └─sdh3                         8:115  598473703424 part 
        ├─rhel_storageqe--105-root 253:0     75161927680 lvm  /
        ├─rhel_storageqe--105-swap 253:1      8187281408 lvm  [SWAP]
        └─rhel_storageqe--105-home 253:2    515123445760 lvm  /home
      sr0                           11:0      1073741312 rom  
      [root@storageqe-105 tests]#  

      the failure only reproduce the test server which include big disk(8T scsi disk)

      storageqe-105.rhts.eng.pek2.redhat.com

      rhel-system-roles-1.108.3-0.1.el10.noarch

      6.12.0-116.el10.x86_64

       

              rmeggins@redhat.com Richard Megginson
              guazhang@redhat.com Guangwu Zhang
              Richard Megginson Richard Megginson
              Guangwu Zhang Guangwu Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: