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

Bug #1788336 reported by Po-Hsu Lin on 2018-08-22
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Po-Hsu Lin
linux-kvm (Ubuntu)
Undecided
Unassigned
Nominated for Bionic by Po-Hsu Lin
Nominated for Disco by Po-Hsu Lin
Nominated for Xenial by Po-Hsu Lin

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)

Po-Hsu Lin (cypressyew) wrote :
Po-Hsu Lin (cypressyew) on 2018-08-24
summary: - Failed to install nfs-kernel-server package on X-KVM
+ Failed to install nfs-kernel-server package on X/X-KVM
description: updated

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
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)
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
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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers