Failed to install nfs-kernel-server package on KVM kernels

Bug #1788336 reported by Po-Hsu Lin
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Po-Hsu Lin
linux-kvm (Ubuntu)
Won't Fix
Undecided
Unassigned
Xenial
Won't Fix
Undecided
Unassigned
Bionic
Won't Fix
Undecided
Unassigned
Disco
Won't Fix
Undecided
Unassigned

Bug Description

When trying to install the nfs-kernel-server package on a KVM node running with X/X-KVM kernel, it will fail with service dependency issue.

This is affecting the ubuntu_vfat_stress and ubuntu_ramfs_stress test.

$ sudo apt-get install nfs-kernel-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
nfs-kernel-server is already the newest version (1:1.2.8-9ubuntu12.1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up nfs-kernel-server (1:1.2.8-9ubuntu12.1) ...
A dependency job for nfs-server.service failed. See 'journalctl -xe' for details.
nfs-server.service couldn't start.
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
A dependency job for nfs-server.service failed. See 'journalctl -xe' for details.
invoke-rc.d: initscript nfs-kernel-server, action "start" failed.
● nfs-server.service - NFS server and services
   Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
   Active: inactive (dead)

Aug 22 03:27:46 zeppo systemd[1]: Dependency failed for NFS server and services.
Aug 22 03:27:46 zeppo systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Aug 22 03:27:49 zeppo systemd[1]: Dependency failed for NFS server and services.
Aug 22 03:27:49 zeppo systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Aug 22 03:27:50 zeppo systemd[1]: Dependency failed for NFS server and services.
Aug 22 03:27:50 zeppo systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Aug 22 03:29:41 zeppo systemd[1]: Dependency failed for NFS server and services.
Aug 22 03:29:41 zeppo systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
Aug 22 03:29:42 zeppo systemd[1]: Dependency failed for NFS server and services.
Aug 22 03:29:42 zeppo systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.
dpkg: error processing package nfs-kernel-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 nfs-kernel-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Log from journalctl -xe: http://paste.ubuntu.com/p/CxrWqGc2YT/

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-1031-kvm 4.4.0-1031.37
ProcVersionSignature: User Name 4.4.0-1031.37-kvm 4.4.134
Uname: Linux 4.4.0-1031-kvm x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
Date: Wed Aug 22 03:28:11 2018
SourcePackage: linux-kvm
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Po-Hsu Lin (cypressyew)
summary: - Failed to install nfs-kernel-server package on X-KVM
+ Failed to install nfs-kernel-server package on X/X-KVM
description: updated
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Re: Failed to install nfs-kernel-server package on X/X-KVM

Aug 22 04:15:58 zeppo mount[3580]: mount: unknown filesystem type 'nfsd'

Can you check these please:
root@xenial-nfs:~# find /lib/modules -name 'nfsd.ko'
/lib/modules/4.4.0-138-generic/kernel/fs/nfsd/nfsd.ko

root@xenial-nfs:~# dpkg -S /lib/modules/4.4.0-138-generic/kernel/fs/nfsd/nfsd.ko
linux-image-4.4.0-138-generic: /lib/modules/4.4.0-138-generic/kernel/fs/nfsd/nfsd.ko
root@xenial-nfs:~#

maybe your running kernel has no nfsd module?

This xenial up-to-date vm I created for just this test is running:
root@xenial-nfs:~# uname -a
Linux xenial-nfs 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Changed in nfs-utils (Ubuntu):
status: New → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

For the Xenial generic kernel:

ubuntu@larry:~$ find /lib/modules -name 'nfsd.ko'
/lib/modules/4.4.0-139-generic/kernel/fs/nfsd/nfsd.ko
ubuntu@larry:~$ dpkg -S /lib/modules/4.4.0-139-generic/kernel/fs/nfsd/nfsd.ko
linux-image-4.4.0-139-generic: /lib/modules/4.4.0-139-generic/kernel/fs/nfsd/nfsd.ko

But for the linux-KVM kernel, it seems there is no such module there:
ubuntu@larry:~$ uname -a
Linux larry 4.4.0-1037-kvm #43-Ubuntu SMP Fri Oct 26 10:50:03 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@larry:~$ find /lib/modules -name 'nfsd.ko'
/lib/modules/4.4.0-139-generic/kernel/fs/nfsd/nfsd.ko

And I have checked the kernel config for Xenial/Bionic KVM kernel:
# CONFIG_NFSD is not set

So yeah, you're right, there is no such support for the KVM kernels

Changed in nfs-utils (Ubuntu):
status: Incomplete → Invalid
summary: - Failed to install nfs-kernel-server package on X/X-KVM
+ Failed to install nfs-kernel-server package on KVM kernels
no longer affects: nfs-utils (Ubuntu)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

As we have this package removed from the ramfs / vfat test:
http://kernel.ubuntu.com/git/ubuntu/autotest-client-tests.git/commit/?id=19f9ddeffdaec1cd491921872827f3c0b0d67711

This is only affecting these 3 tests:
  * ubuntu_zfs
  * ubuntu_zfs_fstest
  * ubuntu_zfs_stress

But these are not in the KVM kernel testing list, only for bare-metal with generic kernels.
Therefore I will close the task for ubuntu-kernel-tests.

It will be the maintainer's decision whether to enable the config for the linux-kvm kernel or not.

Changed in ubuntu-kernel-tests:
status: New → Fix Released
assignee: nobody → Po-Hsu Lin (cypressyew)
status: Fix Released → Invalid
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Re-open the task in ubuntu-kernel-test, as this is still affecting the kernel SRU.

Changed in ubuntu-kernel-tests:
status: Invalid → Confirmed
Changed in linux-kvm (Ubuntu):
status: New → Confirmed
Po-Hsu Lin (cypressyew)
Changed in ubuntu-kernel-tests:
assignee: Po-Hsu Lin (cypressyew) → nobody
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Package removed from the test, the config won't be enabled unless we got customer request for this

https://kernel.ubuntu.com/git/ubuntu/autotest-client-tests.git/commit/?id=d6fb3028c69c19a6c560e919f2deaf59cd70a46c

Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
Changed in linux-kvm (Ubuntu Disco):
status: New → Won't Fix
Changed in linux-kvm (Ubuntu):
status: Confirmed → Won't Fix
Changed in linux-kvm (Ubuntu Bionic):
status: New → Won't Fix
tags: added: ubuntu-zfs-fstest
Changed in ubuntu-kernel-tests:
status: Confirmed → Fix Released
Changed in linux-kvm (Ubuntu Xenial):
status: New → Won't Fix
tags: added: kvm
Revision history for this message
JörgenP (jorgenp) wrote :

I think this is the issue I have run into as well with a Focal VM. Installing nfs-kernel-server works (although it shows some "Dependency failed" messages) and then the service does not work, it is not an ideal experience having to find an explanation for why online. The linux-image-kvm package provides wireguard-modules and zfs-modules, why does it not work the same way for NFS so that the missing support in linux-image-kvm is detected by apt when installing?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.