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

Stratis device factory tests failing in gating

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • rhel-10.1
    • rhel-10.0
    • python-blivet
    • python-blivet-3.10.0-22.el10
    • No
    • Low
    • rhel-storage-management
    • 20
    • 22
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Release Note Not Required
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Upstream tests running in gating are failing because the latest stratis version changed metadata sizes:

      ======================================================================
      FAIL: test_device_factory (unit_tests.devicefactory_test.StratisFactoryTestCase.test_device_factory)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/usr/lib64/python3.12/unittest/mock.py", line 1396, in patched
          return func(*newargs, **newkeywargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/var/ARTIFACTS/work-testsvk2c60nw/plans/tests/discover/default-0/source/blivet-3.10.0/tests/unit_tests/devicefactory_test.py", line 988, in test_device_factory
          self._validate_factory_device(device, device_type, **kwargs)
        File "/var/ARTIFACTS/work-testsvk2c60nw/plans/tests/discover/default-0/source/blivet-3.10.0/tests/unit_tests/devicefactory_test.py", line 969, in _validate_factory_device
          self.assertAlmostEqual(device.pool.size,
      AssertionError: Size (3.376953125 GiB) != Size (2.5 GiB) within Size (600 MiB) delta (Size (898 MiB) difference)
      
      ======================================================================
      FAIL: test_normalize_size (unit_tests.devicefactory_test.StratisFactoryTestCase.test_normalize_size)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/usr/lib64/python3.12/unittest/mock.py", line 1396, in patched
          return func(*newargs, **newkeywargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/var/ARTIFACTS/work-testsvk2c60nw/plans/tests/discover/default-0/source/blivet-3.10.0/tests/unit_tests/devicefactory_test.py", line 1032, in test_normalize_size
          super(StratisFactoryTestCase, self).test_normalize_size()
        File "/usr/lib64/python3.12/unittest/mock.py", line 1396, in patched
          return func(*newargs, **newkeywargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/var/ARTIFACTS/work-testsvk2c60nw/plans/tests/discover/default-0/source/blivet-3.10.0/tests/unit_tests/devicefactory_test.py", line 290, in test_normalize_size
          self.assertAlmostEqual(factory.size,
      AssertionError: Size (5.12298297882080078125 GiB) != Size (6 GiB) within Size (550 MiB) delta (Size (898.0654296875 MiB) difference)
      

      This is test-only issue and is already fixed in upstream, see https://github.com/storaged-project/blivet/pull/1280

              vtrefny@redhat.com Vojtěch Trefný
              vtrefny@redhat.com Vojtěch Trefný
              Vojtěch Trefný Vojtěch Trefný
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: