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 2139169

Summary: GLib.GError: g-bd-init-error-quark: The function 'bd_btrfs_list_subvolumes' called, but not implemented! (1)
Product: Red Hat Enterprise Linux 8 Reporter: Jan Stodola <jstodola>
Component: python-blivetAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.8CC: pberanek, vtrefny
Target Milestone: rcKeywords: Regression, TestCaseNeeded, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-blivet-3.6.0-3.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 08:28:30 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: 2123712, 2129764    

Description Jan Stodola 2022-11-01 17:15:06 UTC
Description of problem:
There is a traceback when starting an installation on a system with a pre-existing btrfs:

INFO:program:Running... mount -t btrfs -o subvolid=5 /dev/vda2 /tmp/btrfs-tmp.33a8l22s6p
INFO:program:stderr:
INFO:program:b"mount: /tmp/btrfs-tmp.33a8l22s6p: unknown filesystem type 'btrfs'."
DEBUG:program:Return code: 32
INFO:program:Running... umount /tmp/btrfs-tmp.33a8l22s6p
INFO:program:stderr:
INFO:program:b'umount: /tmp/btrfs-tmp.33a8l22s6p: not mounted.'
DEBUG:program:Return code: 32
INFO:anaconda.threading:Thread Failed: AnaTaskThread-ScanDevicesTask-1 (140299895142144)
ERROR:anaconda.modules.common.task.task:Thread AnaTaskThread-ScanDevicesTask-1 has failed: Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/gi/overrides/BlockDev.py", line 1038, in wrapped
    ret = orig_obj(*args, **kwargs)
  File "/usr/lib64/python3.6/site-packages/gi/overrides/BlockDev.py", line 163, in btrfs_list_subvolumes
    return _btrfs_list_subvolumes(mountpoint, snapshots_only)
GLib.GError: g-bd-init-error-quark: The function 'bd_btrfs_list_subvolumes' called, but not implemented! (1)

Version-Release number of selected component (if applicable):
RHEL-8.8.0-20221101.d.1
anaconda-33.16.8.1-1.el8
python3-blivet-3.6.0-2.el8
libblockdev-2.28-1.el8

How reproducible:
Always

Steps to Reproduce:
1. install a system with btrfs file system
2. start a new installation of rhel

Actual results:
A traceback when the installer starts.

Expected results:
No traceback, it should be possible to erase existing partitions and create new.

Additional info:
* Perhaps related to blivet rebase (bug 2123712).
* Also reproduced on RHEL-9, reported as bug 2139166.

Comment 2 Vojtech Trefny 2022-11-02 11:56:00 UTC
upstream PR: https://github.com/storaged-project/blivet/pull/1079

Comment 9 errata-xmlrpc 2023-05-16 08:28:30 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-2023:2790