Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2023883

Summary: Gating failure during vdo revdeps test
Product: Red Hat Enterprise Linux 8 Reporter: Andy Walsh <awalsh>
Component: libblockdevAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: guazhang <guazhang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.6CC: bgurney, brdeoliv, guazhang, tpelka
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libblockdev-2.24-8.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2025880 (view as bug list) Environment:
Last Closed: 2022-05-10 14:11:17 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: 2025880    

Description Andy Walsh 2021-11-16 18:16:27 UTC
Description of problem:
Running through the gating process for vdo build vdo-6.2.6.7-14.el8 a failure with libblockdev/upstream_test_suite came up.

This is the text:
======================================================================
FAIL: test_stats (lvm_dbus_tests.LVMVDOTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/str/source/tests/lvm_dbus_tests.py", line 1644, in test_stats
    self.assertNotEqual(vdo_stats.saving_percent, -1)
AssertionError: -1 == -1

======================================================================
FAIL: test_stats (lvm_test.LVMVDOTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/str/source/tests/lvm_test.py", line 1621, in test_stats
    self.assertEqual(vdo_info.saving_percent, vdo_stats.saving_percent)
AssertionError: 100 != -1

This may be related to a similar failure that was encountered with the kernel component and posted about in #osci this morning.  BZ2023660 was opened for that issue.  The failures themselves are not the same, but the following message appeared in both:
** (process:20190): WARNING **: 15:19:19.087: The 'vdo' utility is not available

Comment 1 Vojtech Trefny 2021-11-22 12:59:39 UTC
*** Bug 2024298 has been marked as a duplicate of this bug. ***

Comment 2 Vojtech Trefny 2021-11-22 13:42:22 UTC
upstream PR: https://github.com/storaged-project/libblockdev/pull/674

Comment 4 Vojtech Trefny 2021-12-07 08:00:38 UTC
*** Bug 2029724 has been marked as a duplicate of this bug. ***

Comment 5 guazhang@redhat.com 2021-12-08 01:42:32 UTC
Hi
Test pass with fixed package, 

# python3 tests/run_tests.py lvm_dbus_tests.LVMVDOTest
/root/rpmbuild/BUILD/libblockdev-2.24/tests/lvm_dbus_tests.py:14: PyGIWarning: BlockDev was imported without specifying a version first. Use gi.require_version('BlockDev', '2.0') before import to ensure that the right version gets loaded.
  from gi.repository import BlockDev, GLib
test_enabla_disable_compression (lvm_dbus_tests.LVMVDOTest) ... skipped 'Enabling/disabling compression on LVM VDO not implemented in LVM DBus API.'
test_enable_disable_deduplication (lvm_dbus_tests.LVMVDOTest) ... skipped 'Enabling/disabling deduplication on LVM VDO not implemented in LVM DBus API.'
test_resize (lvm_dbus_tests.LVMVDOTest) ... ok
test_stats (lvm_dbus_tests.LVMVDOTest) ... ok
test_vdo_pool_convert (lvm_dbus_tests.LVMVDOTest) ... skipped 'LVM VDO pool convert not implemented in LVM DBus API.'
test_vdo_pool_create (lvm_dbus_tests.LVMVDOTest) ... ok
test_vdo_pool_create_options (lvm_dbus_tests.LVMVDOTest) ... ok

----------------------------------------------------------------------
Ran 7 tests in 17.429s

OK (skipped=3)
# python3 tests/run_tests.py lvm_test.LVMVDOTest
/root/rpmbuild/BUILD/libblockdev-2.24/tests/lvm_test.py:13: PyGIWarning: BlockDev was imported without specifying a version first. Use gi.require_version('BlockDev', '2.0') before import to ensure that the right version gets loaded.
  from gi.repository import BlockDev, GLib
test_enabla_disable_compression (lvm_test.LVMVDOTest) ... ok
test_enable_disable_deduplication (lvm_test.LVMVDOTest) ... ok
test_resize (lvm_test.LVMVDOTest) ... ok
test_stats (lvm_test.LVMVDOTest) ... ok
test_vdo_pool_convert (lvm_test.LVMVDOTest) ... ok
test_vdo_pool_create (lvm_test.LVMVDOTest) ... ok
test_vdo_pool_create_options (lvm_test.LVMVDOTest) ... ok

----------------------------------------------------------------------
Ran 7 tests in 14.335s

OK

Comment 11 errata-xmlrpc 2022-05-10 14:11:17 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 (libblockdev 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-2022:1893