Bug 2031673

Summary: [udisks2] Volume group "udisks_test_snap_vg" has insufficient free space
Product: Red Hat Enterprise Linux 9 Reporter: guazhang <guazhang>
Component: udisks2Assignee: Tomáš Bžatek <tbzatek>
Status: CLOSED ERRATA QA Contact: guazhang <guazhang>
Severity: unspecified Docs Contact:
Priority: low    
Version: 9.0CC: cwei
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: udisks2-2.9.4-8.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-07 08:33:21 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: 2027125    

Description guazhang@redhat.com 2021-12-13 08:17:06 UTC
Description of problem:
udisks2 regression hit the error,  please have a look

Version-Release number of selected component (if applicable):
udisks2-2.9.4-2.el9


======================================================================
ERROR: test_30_snapshot (test_20_LVM.UdisksLVMTest)
Test LVM snapshoting
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/udisks-2.9.4/src/tests/dbus-tests/test_20_LVM.py", line 283, in test_30_snapshot
    snap_path = lv.CreateSnapshot(snapname, vg_freesize, self.no_options,
  File "/usr/lib64/python3.9/site-packages/dbus/proxies.py", line 72, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib64/python3.9/site-packages/dbus/proxies.py", line 141, in __call__
    return self._connection.call_blocking(self._named_service,
  File "/root/rpmbuild/BUILD/udisks-2.9.4/src/tests/dbus-tests/udiskstestcase.py", line 42, in call_long
    return call(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/dbus/connection.py", line 652, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.UDisks2.Error.Failed: Error creating snapshot: Process reported exit code 5:   Volume group "udisks_test_snap_vg" has insufficient free space (248 extents): 249 required.



https://beaker.engineering.redhat.com/recipes/11132022#task136763160

Comment 1 guazhang@redhat.com 2021-12-13 08:23:02 UTC
udisks2-2.9.4-2.el9
======================================================================
ERROR: test_40_cache (test_20_LVM.UdisksLVMTest)
Basic LVM cache test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/rpmbuild/BUILD/udisks-2.9.4/src/tests/dbus-tests/test_20_LVM.py", line 333, in test_40_cache
    lv.CacheAttach('udisks_test_cache_lv', self.no_options, dbus_interface=self.iface_prefix + '.LogicalVolume')
  File "/usr/lib64/python3.9/site-packages/dbus/proxies.py", line 72, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib64/python3.9/site-packages/dbus/proxies.py", line 141, in __call__
    return self._connection.call_blocking(self._named_service,
  File "/root/rpmbuild/BUILD/udisks-2.9.4/src/tests/dbus-tests/udiskstestcase.py", line 42, in call_long
    return call(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/dbus/connection.py", line 652, in call_blocking
    reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.UDisks2.Error.Failed: Error converting volume: Process reported exit code 5:   WARNING: Converting udisks_test_cache_vg/udisks_test_cache_lv to cache pool's data volume with metadata wiping.
  THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)
  Volume group "udisks_test_cache_vg" has insufficient free space (0 extents): 2 required.
  LV udisks_test_cache_vg/udisks_test_cache_lv_cdata could not be converted to a cache pool.

https://beaker-archive.host.prod.eng.bos.redhat.com/beaker-logs/2021/12/60896/6089668/11132024/136763219/taskout.log
https://beaker.engineering.redhat.com/recipes/11132024#task136763217

Comment 2 Tomáš Bžatek 2022-02-01 13:30:49 UTC
Known issue for ages, however we still haven't managed to find out the real cause. Might be an issue in lvm as well.

Comment 4 Tomáš Bžatek 2023-05-25 15:13:54 UTC
I've had good success after picking these two commits:

https://github.com/storaged-project/udisks/commit/28c39786927ad683f56c031d80a5c06f5b5b9aea
https://github.com/storaged-project/udisks/commit/f24601b1d1302350fff15f326bfe3cfabde05f4c

None of these fully explain the problems described, we know that the udisks2 lvm2 module has known deficiencies and limitation and that's too much work for RHEL 9.

Still, having these two commits integrated wouldn't hurt.

Comment 8 errata-xmlrpc 2023-11-07 08:33:21 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 (udisks2 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/RHBA-2023:6453