Bug 2214522

Summary: Fedora 37: mkfs.btrfs fails on s390 with btrfs-progs 6.3.1 release
Product: [Fedora] Fedora Reporter: IBM Bug Proxy <bugproxy>
Component: btrfs-progsAssignee: Josef Bacik <josef>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 37CC: awilliam, bugproxy, bugzilla, dan, esandeen, igor.raits, josef, ngompa13, tstaudt
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: All   
Whiteboard:
Fixed In Version: btrfs-progs-6.3.2-1.fc38 btrfs-progs-6.3.2-1.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-23 01:01:49 UTC Type: ---
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: 467765    

Description IBM Bug Proxy 2023-06-13 08:20:21 UTC

Comment 1 IBM Bug Proxy 2023-06-13 08:20:33 UTC
== Comment: #0 - Mikhail Zaslonko <Mikhail.Zaslonko1.com> - 2023-06-13 03:14:43 ==
After upgrading btrfs-progs to v6.3.1 the following problem occurs on the attempt to create a btrfs file system (both for dasd device or ram disk)

# mkfs.btrfs /dev/dasdd1
btrfs-progs v6.3.1
See https://btrfs.readthedocs.io for more information.

ERROR: superblock magic doesn't match
NOTE: several default settings have changed in version 5.15, please make sure
      this does not affect your deployments:
      - DUP for metadata (-m dup)
      - enabled no-holes (-O no-holes)
      - enabled free-space-tree (-R free-space-tree)

Invalid mapping for 1081344-1097728, got 17592186044416-17592190238720
Couldn't map the block 1081344
ERROR: cannot read chunk root
ERROR: open ctree failed

System: Fedora 37
Fails on both 6.3 and 6.4 kernels.

Comment 2 Dan Horák 2023-06-13 14:32:15 UTC
And I have received the same error when installing Rawhide 20230612 in a kvm VM

...
Setting up the installation environment
.
Configuring storage
Creating disklabel on /dev/vda
Creating ext4 on /dev/vda1
Creating btrfs on /dev/vda2

An unknown error has occured, look at the /tmp/anaconda-tb* file(s) for more details



  File "/usr/lib64/python3.11/site-packages/pyanaconda/core/signal.py", line 41, in emit
    func(obj, *args, **kargs)
  File "/usr/lib64/python3.11/site-packages/pyanaconda/modules/common/task/runnable.py", line 115, in _task_stopped_callback
    self._stopped_signal.emit()
  File "/usr/lib64/python3.11/site-packages/pyanaconda/core/async_utils.py", line 68, in _idle_method
    func(*args, **kwargs)
pyanaconda.modules.common.errors.general.AnacondaError: Process reported exit code 1: Invalid mapping for 1081344-1097728, got 17592186044416-17592190238720
Couldn't map the block 1081344
ERROR: cannot read chunk root
ERROR: open ctree failed

Comment 3 Dan Horák 2023-06-13 14:33:38 UTC
Invalid mapping for 1081344-1097728, got 17592186044416-17592190238720
^^^ looks like an endianness error to me ...

Comment 4 Dan Horák 2023-06-20 15:03:23 UTC
Can someone update btrfs-progs to 6.3.2 with the fix for the mentioned issue? Seems the current Fedora package patches don't apply cleanly.

Comment 5 Fedora Update System 2023-06-21 23:19:49 UTC
FEDORA-2023-a22d8a0e83 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-a22d8a0e83

Comment 6 Fedora Update System 2023-06-21 23:19:49 UTC
FEDORA-2023-deaf93bbb0 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-deaf93bbb0

Comment 7 Fedora Update System 2023-06-22 01:10:04 UTC
FEDORA-2023-deaf93bbb0 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-deaf93bbb0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-deaf93bbb0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-06-22 02:28:49 UTC
FEDORA-2023-a22d8a0e83 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-a22d8a0e83`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-a22d8a0e83

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2023-06-23 01:01:49 UTC
FEDORA-2023-deaf93bbb0 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2023-06-24 01:20:56 UTC
FEDORA-2023-a22d8a0e83 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.