Bug 28606 - cifs-utils is userspace cifs vfs from Kernel, should be installed by default with samba-client to help user experience
Summary: cifs-utils is userspace cifs vfs from Kernel, should be installed by default ...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: High normal
Target Milestone: ---
Assignee: Buchan Milne
QA Contact:
URL:
Whiteboard: MGA9TOO
Keywords:
Depends on: 32560
Blocks:
  Show dependency treegraph
 
Reported: 2021-03-16 17:01 CET by Xuo
Modified: 2023-12-06 02:39 CET (History)
8 users (show)

See Also:
Source RPM: cifs-utils-6.12-1.mga9.src.rpm
CVE:
Status comment: samba-4.17.10-1.mga9.src.rpm


Attachments
Mageia7 to Mageia8 upgrade log file. (96.22 KB, application/gzip)
2021-03-19 21:03 CET, Xuo
Details

Description Xuo 2021-03-16 17:01:05 CET
Hi,

Description of problem:
I try to mount a cifs directory :
mount.cifs //Iomega/NetHDD /mnt/Iomega
I get the following error message :
Unable to apply new capability set.

I had a look on Internet and the issue seems to come from the 
lib(64)cap-ng package starting from version 0.8.1-1. (see : https://www.reddit.com/r/archlinux/comments/kc6zny/sambacifs_mount_is_broken_at_the_moment)
Version 0.8.2 is used on Mageia8.

Version-Release number of selected component (if applicable):
Mageia 8
package : lib64cap-ng0-0.8.2-1.mga8

How reproducible:
mount.cifs <Cifs dir> <Mount Point>

Could you try to correct this bug ? Mageia7 do not have this issue.

Regards.

Xuo.
Comment 1 Aurelien Oudelet 2021-03-18 15:52:47 CET
Not tested.

Thanks pointing this.
I don't have samba shares on this computer.
Asking QA and MLO IRC if someone have samba shares.

CC: (none) => ouaurelien
Source RPM: (none) => libcap-ng-0.8.2-1.mga8.src.rpm

Comment 2 Mike Rambo 2021-03-18 21:13:25 CET
FWIW - I tested mount.cifs on mga8 in my environment earlier today and didn't have a problem, but I was testing against a CentOS 7 server rather than an appliance such as in the description. My mga8 test laptop has the release versions of both lib64cap-ng0 and cifs-utils (the latter of which was mentioned in the reddit thread).

I do recall a kernel change made awhile back that seemed to inordinately affect appliance type devices as I recall. Maybe it's worth a look.

https://www.linux.com/topic/desktop/linux-kernel-413-dont-use-smb1/

I some cases where the host does not support anything greater, you have to force smbv1.

CC: (none) => mrambo

Comment 3 Xuo 2021-03-18 22:03:21 CET
Hi,

The package cifs-utils was missing. For some reason, after the update from Mageia7 to Mageia8, it was no more installed. This is what I think as the mounts were working fine before the update.
Now mount.cifs and cifs mounts using autofs are working fine.
Thank you for your help.

Regards.

Xuo.

Status: NEW => RESOLVED
Resolution: (none) => INVALID
CC: (none) => xuoy

Comment 4 Morgan Leijström 2021-03-18 23:07:24 CET
The bug is that cifs-utils got removed during upgrade.

Do you have a log from the upgrade?

What method did you use to upgrade?

URL: https://www.reddit.com/r/archlinux/comments/kc6zny/sambacifs_mount_is_broken_at_the_moment => (none)
Status comment: (none) => Comment 3+
Source RPM: libcap-ng-0.8.2-1.mga8.src.rpm => (none)
Priority: Normal => High
Resolution: INVALID => (none)
Summary: The cifs mounts (and automounts) do not work on Mageia 8. => Upgrade bug: cifs-utils got removed
Status: RESOLVED => REOPENED
CC: (none) => fri

Comment 5 Xuo 2021-03-19 21:01:36 CET
Hi,

If it was necessary for Mageia7 to perform cifs mounts, so, yes, I think it has been removed.

Here are the commands I've run for the upgrade :
systemctl isolate multi-user.target
script upgrade_log.txt 
urpmi --auto-update --auto --force
urpmi.removemedia --a
urpmi.addmedia --distrib --mirrorlist 'http://mirrors.mageia.org/api/mageia.8.$ARCH.list'
urpmi --auto-update --auto --force

I've attached the upgrade log file.

Regards.

Xuo.
Comment 6 Xuo 2021-03-19 21:03:32 CET
Created attachment 12479 [details]
Mageia7 to Mageia8 upgrade log file.
Comment 7 Aurelien Oudelet 2021-03-21 16:57:36 CET
Thanks providing log file.

I don't find any "cifs*" package involved in the upgrade.
The above mentioned cifs-utils was not installed in Mageia 7.
This is *NOT* an upgrade issue.

Digging more:

I wonder why now it is necessary. better packaging? Should be recommended by samba?

$ urpmq -i cifs-utils
Name        : cifs-utils
Version     : 6.11
Release     : 2.mga8
Group       : Networking/Other
Size        : 397693                       Architecture: x86_64
Source RPM  : cifs-utils-6.11-2.mga8.src.rpm
URL         : http://www.samba.org/linux-cifs/cifs-utils/
Summary     : Tools for Managing Linux CIFS Client Filesystems
Description :
Tools for Managing Linux CIFS Client Filesystems.

$ urpmq --whatrequires cifs-utils
cifs-utils

$ urpmq --whatrequires-recursive cifs-utils
cifs-utils

Hum.

$ rpm -qa | grep cifs

$ rpm -qa | grep samba
samba-client-4.12.11-1.mga8
samba-common-4.12.11-1.mga8
lib64samba1-4.12.11-1.mga8
lib64samba-dc0-4.12.11-1.mga8
lib64kdc-samba4_2-4.12.11-1.mga8

upstream website:

The in-kernel CIFS filesystem is generally the preferred method for mounting SMB/CIFS shares on Linux.

The in-kernel CIFS filesystem relies on a set of user-space tools. That package of tools is called cifs-utils. Although not really part of Samba proper, these tools were originally part of the Samba package. For several reasons, shipping these tools as part of Samba was problematic and it was deemed better to split them off into their own package.

cifs-utils should be installed by default if samba-client s also installed.


As there is no maintainer for this package I added the committers in CC.
(Please set the status to 'assigned' if you are working on it)

Status: REOPENED => NEW
Summary: Upgrade bug: cifs-utils got removed => cifs-utils is userspace cifs vfs from Kernel, should be installed by default with samba-client to help user experience
Assignee: bugsquad => pkg-bugs
Version: 8 => Cauldron
Whiteboard: (none) => MGA8TOO
Status comment: Comment 3+ => (none)
Source RPM: (none) => cifs-utils-6.11-2.mga8.src.rpm
CC: (none) => geiger.david68210, luigiwalser

Aurelien Oudelet 2021-03-21 16:58:21 CET

Source RPM: cifs-utils-6.11-2.mga8.src.rpm => cifs-utils-6.12-1.mga9.src.rpm
Status comment: (none) => cifs-utils-6.11-2.mga8.src.rpm
Version: Cauldron => 8

Aurelien Oudelet 2021-03-21 16:58:26 CET

Version: 8 => Cauldron

Florian Hubold 2023-09-08 17:29:55 CEST

CC: (none) => doktor5000

Comment 8 Morgan Leijström 2023-09-08 17:48:12 CEST
Smells like errata to me

Whiteboard: MGA8TOO => MGA9TOO, MGA8TOO
Keywords: (none) => FOR_ERRATA8, FOR_ERRATA9

Comment 9 Mike Rambo 2023-11-09 23:57:08 CET
I don't actually think this is a problem for errata, or even a problem with the cifs-tools package. Since the time this bug was started I've run into this myself with the scripts I use to auto-mount user shares. If cifs-tools don't exist, mount -t cifs fails.

I think Aurelien had it right in comment 7. Since the only place cifs-tools are used are with smb file mounts, I think samba is the package that needs to be adjusted to Recommend cifs-tools. I would make this change but I think respect for the maintainer says it should be directed to him first. Reassigning to Buchan to see what he says. Moreover, I am willing to do this with his permission, if he agrees, as I do have the time.

I hope I've correctly identified Buchan's contact address.

Assignee: pkg-bugs => bgmilne
Status comment: cifs-utils-6.11-2.mga8.src.rpm => samba-4.17.10-1.mga9.src.rpm

Comment 10 Buchan Milne 2023-12-02 20:10:34 CET
We lost a lot of improvements when upgrading from Samba-3.x to 4.x:

http://svnweb.mageia.org/packages/cauldron/samba/current/SPECS/samba.spec?r1=852307&r2=854335

You can see that we lost:
 	 %package client 	 
...
	 Requires: cifs-utils >= 4.4

as part of that.

I'll add this one back as part of https://bugs.mageia.org/show_bug.cgi?id=32560

CC: (none) => bgmilne
Assignee: bgmilne => bgmilne

Marja Van Waes 2023-12-03 16:46:24 CET

Depends on: (none) => 32560

Comment 11 katnatek 2023-12-06 02:39:13 CET
Fixed by bug#32560

Resolution: (none) => FIXED
Status: NEW => RESOLVED

katnatek 2023-12-06 02:39:49 CET

Whiteboard: MGA9TOO, MGA8TOO => MGA9TOO
Keywords: FOR_ERRATA8, FOR_ERRATA9 => (none)


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