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 1988276 - Error message for unavailable technologies should include reason why the technology is not available
Summary: Error message for unavailable technologies should include reason why the tech...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python-blivet
Version: 8.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Vojtech Trefny
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 2012121
TreeView+ depends on / blocked
 
Reported: 2021-07-30 09:04 UTC by Vojtech Trefny
Modified: 2022-05-10 14:32 UTC (History)
2 users (show)

Fixed In Version: python-blivet-3.4.0-7.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2012121 (view as bug list)
Environment:
Last Closed: 2022-05-10 14:07:27 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1978488 1 unspecified CLOSED RFE: Request that VDO be added to the Ansible (redhat-system-roles) 2023-09-15 01:10:53 UTC
Red Hat Issue Tracker RTT-3848 0 None None None 2021-10-11 16:43:21 UTC
Red Hat Issue Tracker RTT-3849 0 None None None 2021-10-11 16:43:27 UTC
Red Hat Product Errata RHBA-2022:1880 0 None None None 2022-05-10 14:07:38 UTC

Description Vojtech Trefny 2021-07-30 09:04:37 UTC
When user tries to create a device on a system that doesn't support creating this device (missing tools, old version of a library etc.) blivet throws exception with error message that doesn't contain the full explanation why the device cannot be created. For LVM VDO this looks like:

---
device type lvmvdopool requires unavailable_dependencies: libblockdev lvm plugin (vdo technology)
---

This error doesn't contain information what is actually missing. In this case it's missing VDO kernel module. Blivet has the information available so we should add the "full" reason to the error message to make the problem easier to debug:

---
device type lvmvdopool requires unavailable_dependencies: libblockdev lvm plugin (vdo technology):
libblockdev plugin lvm is loaded but some required technologies are not available: Kernel module 'kvdo' not available
---

Blivet already has all this information available so we just need to change the error message.

Comment 2 Vojtech Trefny 2021-10-07 11:11:03 UTC
upstream PR: https://github.com/storaged-project/blivet/pull/973

Comment 3 Jan Stodola 2021-10-07 14:12:23 UTC
Vojto, do you have an easy reproducer how to get the error message?

Comment 4 Vojtech Trefny 2021-10-08 10:31:30 UTC
(In reply to Jan Stodola from comment #3)
> Vojto, do you have an easy reproducer how to get the error message?

LVM VDO is not supported by Anaconda yet so this can be reproduced only with blivet.
You need a system without the kmod-kvdo package and then you can run our LVM VDO example: `python3 /usr/share/doc/python3-blivet/examples/lvm_vdo.py` and it should crash with the error message:

-----
$ sudo python3 /usr/share/doc/python3-blivet/examples/lvm_vdo.py
Traceback (most recent call last):
  File "/usr/share/doc/python3-blivet/examples/lvm_vdo.py", line 44, in <module>
    b.create_device(pool)
  File "/usr/lib/python3.9/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/blivet/blivet.py", line 784, in create_device
    action_create_dev = ActionCreateDevice(device)
  File "/usr/lib/python3.9/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/blivet/deviceaction.py", line 331, in __init__
    DeviceAction.__init__(self, device)
  File "/usr/lib/python3.9/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/blivet/deviceaction.py", line 168, in __init__
    self._check_device_dependencies()
  File "/usr/lib/python3.9/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/blivet/deviceaction.py", line 177, in _check_device_dependencies
    raise DependencyError("device type %s requires unavailable_dependencies: %s" % (self.device.type, dependencies_str))
blivet.errors.DependencyError: device type lvmvdopool requires unavailable_dependencies: libblockdev lvm plugin (vdo technology)
-----

Comment 10 Jan Stodola 2021-12-02 09:24:08 UTC
python3-blivet-3.4.0-7.el8 is included in RHEL-8.6.0-20211201.1, moving to VERIFIED.

Comment 12 errata-xmlrpc 2022-05-10 14:07:27 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 (python-blivet 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:1880


Note You need to log in before you can comment on or make changes to this bug.