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