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 1598430 - Format() fails: Error wiping device: The function 'bd_fs_wipe' called, but not implemented!
Summary: Format() fails: Error wiping device: The function 'bd_fs_wipe' called, but no...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: udisks2
Version: 7.6
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: beta
: 7.6
Assignee: Tomáš Bžatek
QA Contact: xhe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-05 12:42 UTC by Martin Pitt
Modified: 2021-09-06 12:33 UTC (History)
3 users (show)

Fixed In Version: udisks2-2.7.3-8.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 11:37:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3271 0 None None None 2018-10-30 11:37:22 UTC

Description Martin Pitt 2018-07-05 12:42:47 UTC
Description of problem: In current RHEL 7.6 nightlies, udisks2 or the underlying libblockdev has a regression: Formatting fails with

    Error wiping device: The function 'bd_fs_wipe' called, but not implemented!


Version-Release number of selected component (if applicable):

# rpm -qa|egrep 'udisks|blockdev'
udisks2-2.7.3-7.el7.x86_64
udisks2-iscsi-2.7.3-7.el7.x86_64
libblockdev-loop-2.18-2.el7.x86_64
libblockdev-utils-2.18-2.el7.x86_64
libblockdev-mdraid-2.18-2.el7.x86_64
libudisks2-2.7.3-7.el7.x86_64
libblockdev-crypto-2.18-2.el7.x86_64
udisks2-lvm2-2.7.3-7.el7.x86_64
libblockdev-2.18-2.el7.x86_64
libblockdev-swap-2.18-2.el7.x86_64
libblockdev-part-2.18-2.el7.x86_64
libblockdev-lvm-2.18-2.el7.x86_64
libblockdev-fs-2.18-2.el7.x86_64


How reproducible: Always


Steps to Reproduce:
1. modprobe scsi_debug   # or take any other available block device
2. busctl call org.freedesktop.UDisks2 /org/freedesktop/UDisks2/block_devices/sdb org.freedesktop.UDisks2.Block Format 'sa{sv}' ext4 0

Make *triple* sure here that "sdb" is really the one from scsi_debug, don't destroy your hard disk :)

Actual results: Fails with said error.

Expected results: Works (like in RHEL 7.5 or Fedora)

Additional info: Spotted by Cockpit integration tests in https://github.com/cockpit-project/cockpit/pull/9580

Comment 2 Martin Pitt 2018-07-05 15:51:31 UTC
This also affects Mount() and Unmount():

# modprobe scsi_debug
# mkfs -t ext4 /dev/sdb
# udisksctl mount -b /dev/sdb
Error mounting /dev/sdb: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error mounting /dev/sdb at /run/media/root/c095c9ac-9abf-4b45-ad98-8a8aa4c94aa0: The function 'bd_fs_mount' called, but not implemented!

# mount /dev/sdb /mnt
# udisksctl unmount -b /dev/sdb
Error unmounting /dev/sdb: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error unmounting /dev/sdb: The function 'bd_fs_unmount' called, but not implemented!

libblockdev-fs looks quite reasonable, just like on Fedora 28 (except the latter has debug symbol links):

# rpm -ql libblockdev-fs | xargs ls -ld
lrwxrwxrwx. 1 root root    17 Jul  5 09:11 /usr/lib64/libbd_fs.so.2 -> libbd_fs.so.2.0.0
-rwxr-xr-x. 1 root root 58928 Jun 22 05:34 /usr/lib64/libbd_fs.so.2.0.0

# nm -D /usr/lib64/libbd_fs.so.2.0.0|grep bd_fs_mount
0000000000007dc0 T bd_fs_mount

So it seeems pretty well all udisks Filesystem operations are completely broken.

Comment 3 Tomáš Bžatek 2018-07-09 13:46:32 UTC
> Jul 05 17:09:56 localhost.localdomain dbus[602]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service'
> Jul 05 17:09:56 localhost.localdomain systemd[1]: Starting Disk Manager...
> Jul 05 17:09:56 localhost.localdomain udisksd[1550]: udisks daemon version 2.7.3 starting
> Jul 05 17:09:56 localhost.localdomain udisksd[1550]: The 'ntfscluster' utility is not available
>                                                      The 'ntfslabel' utility is not available
>                                                      The 'ntfsresize' utility is not available
>                                                      The 'ntfsfix' utility is not available
>                                                      The 'mkntfs' utility is not available
> Jul 05 17:09:56 localhost.localdomain udisksd[1550]: Failed to load a libblockdev plugin
> Jul 05 17:09:56 localhost.localdomain dbus[602]: [system] Successfully activated service 'org.freedesktop.UDisks2'
> Jul 05 17:09:56 localhost.localdomain systemd[1]: Started Disk Manager.
> Jul 05 17:09:56 localhost.localdomain udisksd[1550]: Acquired the name org.freedesktop.UDisks2 on the system message bus

Comment 4 Martin Pitt 2018-07-09 13:56:37 UTC
@Tomáš: Not sure if that was directed at me, but in RHEL 7 NTFS is generally not supported. We blacklist these tests in Cockpit for 7.5 as well (and of course 7.6). But of course it should still work for the other file systems.

Comment 5 Tomáš Bžatek 2018-07-09 14:11:55 UTC
Caused by unavailable ntfs tools whose search for was added to libblockdev' fs plugin in v2.14 (rebased in RHEL7.6: bug 1545623).

Need to backport https://github.com/storaged-project/udisks/commit/e31199054797ca8de62d9d1f32a46a58f2211159

Comment 11 xhe@redhat.com 2018-08-09 01:24:56 UTC
On the latest version of libudisks2-2.7.3-8.el7, it works well. I move to VERIFIED.

Details of test on way1 
------------------------
# rpm -qa|egrep 'udisks|blockdev'
libudisks2-2.7.3-8.el7.x86_64
libblockdev-utils-2.18-3.el7.x86_64
libblockdev-swap-2.18-3.el7.x86_64
libblockdev-loop-2.18-3.el7.x86_64
libblockdev-part-2.18-3.el7.x86_64
udisks2-2.7.3-8.el7.x86_64
libblockdev-2.18-3.el7.x86_64
libblockdev-crypto-2.18-3.el7.x86_64
libblockdev-mdraid-2.18-3.el7.x86_64
libblockdev-fs-2.18-3.el7.x86_64

# modprobe scsi_debug
# lsblk
NAME                        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                           8:0    0 68.3G  0 disk 
├─sda1                        8:1    0    1G  0 part /boot
└─sda2                        8:2    0 67.3G  0 part 
  ├─rhel_storageqe--16-root 253:0    0 40.7G  0 lvm  /
  ├─rhel_storageqe--16-swap 253:1    0  6.9G  0 lvm  [SWAP]
  └─rhel_storageqe--16-home 253:2    0 19.9G  0 lvm  /home
sdb                           8:16   0    8M  0 disk 

# mkfs -t ext4 /dev/sdb
mke2fs 1.42.9 (28-Dec-2013)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=32 blocks
2048 inodes, 8192 blocks
409 blocks (4.99%) reserved for the super user
First data block=1
Maximum filesystem blocks=8388608
1 block group
8192 blocks per group, 8192 fragments per group
2048 inodes per group

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done

# udisksctl mount -b /dev/sdb
Mounted /dev/sdb at /run/media/root/60a3d2ca-3eb2-4180-ac91-a365493ac615.
# mount /dev/sdb /mnt
# mount|grep sdb
/dev/sdb on /run/media/root/60a3d2ca-3eb2-4180-ac91-a365493ac615 type ext4 (rw,nosuid,nodev,relatime,seclabel,stripe=32,data=ordered,uhelper=udisks2)
/dev/sdb on /mnt type ext4 (rw,relatime,seclabel,stripe=32,data=ordered)

Details test on way2
------------------------
# modprobe scsi_debug
# udisksctl unmount -b /dev/sdb
Unmounted /dev/sdb.
# mount |grep sdb
/dev/sdb on /mnt type ext4 (rw,relatime,seclabel,stripe=32,data=ordered)
# umount /mnt

# busctl call org.freedesktop.UDisks2 /org/freedesktop/UDisks2/block_devices/sdb org.freedesktop.UDisks2.Block Format 'sa{sv}' ext4 0

Comment 13 errata-xmlrpc 2018-10-30 11:37:15 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, 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-2018:3271


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