elastio / elastio-snap

kernel module for taking block-level snapshots and incremental backups of Linux block devices
GNU General Public License v2.0
21 stars 6 forks source link

test_transition_fs_sync_cow_full fails on XFS #232

Closed skypodolsky closed 1 year ago

skypodolsky commented 1 year ago
[elastio@centos7-amd64-test tests]$ sudo -E python3 -m unittest -v test_transition_incremental.TestTransitionToIncremental.test_transition_fs_sync_cow_full
  WARNING: Device for PV 12uxEk-KVwo-NWoG-QdeB-E9kV-50nu-MCyB1w not found or rejected by a filter.
  WARNING: Device for PV r1K9gZ-liKS-eYs4-4k0R-eVzC-wcyc-1d9My5 not found or rejected by a filter.
  WARNING: Device for PV 12uxEk-KVwo-NWoG-QdeB-E9kV-50nu-MCyB1w not found or rejected by a filter.
  WARNING: Device for PV r1K9gZ-liKS-eYs4-4k0R-eVzC-wcyc-1d9My5 not found or rejected by a filter.
  Physical volume "/dev/loop3p1" successfully created.
  Physical volume "/dev/loop4p1" successfully created.
  WARNING: Device for PV 12uxEk-KVwo-NWoG-QdeB-E9kV-50nu-MCyB1w not found or rejected by a filter.
  WARNING: Device for PV r1K9gZ-liKS-eYs4-4k0R-eVzC-wcyc-1d9My5 not found or rejected by a filter.
  WARNING: Device for PV 12uxEk-KVwo-NWoG-QdeB-E9kV-50nu-MCyB1w not found or rejected by a filter.
  WARNING: Device for PV r1K9gZ-liKS-eYs4-4k0R-eVzC-wcyc-1d9My5 not found or rejected by a filter.
  Volume group "vg_mirror12" successfully created
  Rounding up size to full physical extent 232.00 MiB
  Logical volume "lv_mirror12" created.
test_transition_fs_sync_cow_full (test_transition_incremental.TestTransitionToIncremental) ... FAIL
  Logical volume "lv_mirror12" successfully removed
  Volume group "vg_mirror12" successfully removed

======================================================================
FAIL: test_transition_fs_sync_cow_full (test_transition_incremental.TestTransitionToIncremental)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/elastio/elastio-snap/tests/test_transition_incremental.py", line 64, in test_transition_fs_sync_cow_full
    self.assertEqual(snapdev["state"], elastio_snap.State.ACTIVE | elastio_snap.State.SNAPSHOT)
AssertionError: 2 != 3

----------------------------------------------------------------------
Ran 1 test in 2.559s

FAILED (failures=1)

Reproduces on LVM (f.e., centos7)

Relates to the epic #219