Bug 2653 - [Anolis 23 Preview][x86_64/aarch64]nfs-utils 中的nfs-server等多个服务启动失败
Summary: [Anolis 23 Preview][x86_64/aarch64]nfs-utils 中的nfs-server等多个服务启动失败
Status: CLOSED FIXED
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: xuchunmei
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-28 16:08 UTC by yunmeng365524
Modified: 2022-11-01 20:35 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yunmeng365524 2022-10-28 16:08:47 UTC
Description of problem:
nfs-utils 中的nfs-server等多个服务启动失败
这个服务对上层业务来说比较重要,请确认修改。
这个包的这些服务在8.6上是可以正常启动的
nfs-blkmap nfs-idmapd nfs-mountd nfs-server nfs-utils rpc-statd-notify rpc-statd

Version-Release number of selected component (if applicable):
[root@iZbp14ub0x084rkaiux0krZ test-results]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

[root@iZbp14ub0x084rkaiux0krZ test-results]# uname -a
Linux iZbp14ub0x084rkaiux0krZ 5.10.134-12.1.an23.x86_64 #1 SMP Thu Oct 13 11:38:24 CST 2022 x86_64 GNU/Linux

How reproducible:
yum install nfs-utils -y
systemctl restart nfs-server

Steps to Reproduce:
[root@iZbp14ub0x084rkaiux0krZ test-results]# yum install nfs-utils -y
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 1:23:19 ago on Fri Oct 28 14:35:19 2022.
Dependencies resolved.
===============================================================================================================================
 Package                           Architecture              Version                           Repository                 Size
===============================================================================================================================
Installing:
 nfs-utils                         x86_64                    1:2.6.2-1.an23                    BaseOS                    415 k
Installing dependencies:
 gssproxy                          x86_64                    0.8.4-1.an23                      BaseOS                    109 k
 keyutils                          x86_64                    1.6.1-2.an23                      BaseOS                     61 k
 libev                             x86_64                    4.33-2.an23                       BaseOS                     39 k
 libverto-libev                    x86_64                    0.3.2-2.an23                      BaseOS                     12 k
 rpcbind                           x86_64                    1.2.6-2.an23                      BaseOS                     52 k

Transaction Summary
===============================================================================================================================
Install  6 Packages

Total download size: 688 k
Installed size: 1.8 M
Downloading Packages:
(1/6): libev-4.33-2.an23.x86_64.rpm                                                            4.4 MB/s |  39 kB     00:00
(2/6): libverto-libev-0.3.2-2.an23.x86_64.rpm                                                  3.5 MB/s |  12 kB     00:00
(3/6): keyutils-1.6.1-2.an23.x86_64.rpm                                                        3.9 MB/s |  61 kB     00:00
(4/6): gssproxy-0.8.4-1.an23.x86_64.rpm                                                        5.7 MB/s | 109 kB     00:00
(5/6): rpcbind-1.2.6-2.an23.x86_64.rpm                                                         6.2 MB/s |  52 kB     00:00
(6/6): nfs-utils-2.6.2-1.an23.x86_64.rpm                                                        13 MB/s | 415 kB     00:00
-------------------------------------------------------------------------------------------------------------------------------
Total                                                                                           15 MB/s | 688 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                       1/1
  Running scriptlet: rpcbind-1.2.6-2.an23.x86_64                                                                           1/6
  Installing       : rpcbind-1.2.6-2.an23.x86_64                                                                           1/6
  Running scriptlet: rpcbind-1.2.6-2.an23.x86_64                                                                           1/6
Created symlink /etc/systemd/system/multi-user.target.wants/rpcbind.service → /usr/lib/systemd/system/rpcbind.service.
Created symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket → /usr/lib/systemd/system/rpcbind.socket.

  Installing       : libev-4.33-2.an23.x86_64                                                                              2/6
  Installing       : libverto-libev-0.3.2-2.an23.x86_64                                                                    3/6
  Running scriptlet: gssproxy-0.8.4-1.an23.x86_64                                                                          4/6
  Installing       : gssproxy-0.8.4-1.an23.x86_64                                                                          4/6
  Running scriptlet: gssproxy-0.8.4-1.an23.x86_64                                                                          4/6
  Installing       : keyutils-1.6.1-2.an23.x86_64                                                                          5/6
  Running scriptlet: nfs-utils-1:2.6.2-1.an23.x86_64                                                                       6/6
  Installing       : nfs-utils-1:2.6.2-1.an23.x86_64                                                                       6/6
  Running scriptlet: nfs-utils-1:2.6.2-1.an23.x86_64                                                                       6/6
  Verifying        : gssproxy-0.8.4-1.an23.x86_64                                                                          1/6
  Verifying        : keyutils-1.6.1-2.an23.x86_64                                                                          2/6
  Verifying        : libev-4.33-2.an23.x86_64                                                                              3/6
  Verifying        : libverto-libev-0.3.2-2.an23.x86_64                                                                    4/6
  Verifying        : nfs-utils-1:2.6.2-1.an23.x86_64                                                                       5/6
  Verifying        : rpcbind-1.2.6-2.an23.x86_64                                                                           6/6

Installed:
  gssproxy-0.8.4-1.an23.x86_64     keyutils-1.6.1-2.an23.x86_64  libev-4.33-2.an23.x86_64  libverto-libev-0.3.2-2.an23.x86_64
  nfs-utils-1:2.6.2-1.an23.x86_64  rpcbind-1.2.6-2.an23.x86_64

Complete!
[root@iZbp14ub0x084rkaiux0krZ test-results]# systemctl restart nfs-server
A dependency job for nfs-server.service failed. See 'journalctl -xe' for details.
[root@iZbp14ub0x084rkaiux0krZ test-results]# systemctl status nfs-server -l
○ nfs-server.service - NFS server and services
     Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled; vendor preset: disabled)
     Active: inactive (dead)

Oct 28 15:58:57 iZbp14ub0x084rkaiux0krZ systemd[1]: Dependency failed for nfs-server.service - NFS server and services.
Oct 28 15:58:57 iZbp14ub0x084rkaiux0krZ systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'depen>

[root@iZbp14ub0x084rkaiux0krZ test-results]# journalctl | grep nfs-server
Oct 28 15:58:57 iZbp14ub0x084rkaiux0krZ systemd[1]: Dependency failed for nfs-server.service - NFS server and services.
Oct 28 15:58:57 iZbp14ub0x084rkaiux0krZ systemd[1]: nfs-server.service: Job nfs-server.service/start failed with result 'dependency'.

Actual results:
服务启动失败

Expected results:
服务启动成功

Additional info:
anolis8.6 启动成功:
[root@iZbp19ah81d3ycai72gb2lZ ~]# systemctl restart nfs-server
[root@iZbp19ah81d3ycai72gb2lZ ~]# systemctl status nfs-server
● nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled; vendor preset: disabled)
   Active: active (exited) since Fri 2022-10-28 15:55:42 CST; 6s ago
  Process: 183578 ExecStart=/bin/sh -c if systemctl -q is-active gssproxy; then systemctl reload gssproxy ; fi (code=exited,>
  Process: 183562 ExecStart=/usr/sbin/rpc.nfsd (code=exited, status=0/SUCCESS)
  Process: 183559 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
 Main PID: 183578 (code=exited, status=0/SUCCESS)

Oct 28 15:55:42 iZbp19ah81d3ycai72gb2lZ systemd[1]: Starting NFS server and services...
Oct 28 15:55:42 iZbp19ah81d3ycai72gb2lZ systemd[1]: Started NFS server and services.

[root@iZbp19ah81d3ycai72gb2lZ ~]# systemctl restart nfs-idmapd
[root@iZbp19ah81d3ycai72gb2lZ ~]# systemctl status nfs-idmapd
● nfs-idmapd.service - NFSv4 ID-name mapping service
   Loaded: loaded (/usr/lib/systemd/system/nfs-idmapd.service; static; vendor preset: disabled)
   Active: active (running) since Fri 2022-10-28 15:56:02 CST; 9s ago
  Process: 183589 ExecStart=/usr/sbin/rpc.idmapd (code=exited, status=0/SUCCESS)
 Main PID: 183590 (rpc.idmapd)
    Tasks: 1 (limit: 48402)
   Memory: 580.0K
   CGroup: /system.slice/nfs-idmapd.service
           └─183590 /usr/sbin/rpc.idmapd

Oct 28 15:56:02 iZbp19ah81d3ycai72gb2lZ systemd[1]: Starting NFSv4 ID-name mapping service...
Oct 28 15:56:02 iZbp19ah81d3ycai72gb2lZ rpc.idmapd[183590]: Setting log level to 0
Oct 28 15:56:02 iZbp19ah81d3ycai72gb2lZ systemd[1]: Started NFSv4 ID-name mapping service.
[root@iZbp19ah81d3ycai72gb2lZ ~]# uname -a
Linux iZbp19ah81d3ycai72gb2lZ 4.19.91-26.1.an8.x86_64 #1 SMP Tue Jul 26 20:50:09 CST 2022 x86_64 x86_64 x86_64 GNU/Linux
[root@iZbp19ah81d3ycai72gb2lZ ~]#
Comment 1 xuchunmei alibaba_cloud_group 2022-10-28 19:58:23 UTC
需要内核加在nfsd模块:
modprobe nfsd

其次服务启动后报错是因为nfs-utils包含了nfs-convert.server,但是该服务执行的命令/usr/libexec/nfs-utils/nfsconvert.sh包含在nfsv4-client-utils中,这是不合理的。
Comment 2 xuchunmei alibaba_cloud_group 2022-10-28 21:21:44 UTC
在nfs-utils-2.6.2-3.an23版本中修复
删除nfs-convertor相关的依赖。
Comment 3 yunmeng365524 2022-11-01 20:35:21 UTC
[root@localhost anuser]# systemctl restart nfs-server
[root@localhost anuser]# systemctl status nfs-server
● nfs-server.service - NFS server and services
     Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled; vendor preset: disabled)
     Active: active (exited) since Tue 2022-11-01 20:32:51 CST; 6s ago
    Process: 1143 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
    Process: 1144 ExecStart=/usr/sbin/rpc.nfsd (code=exited, status=0/SUCCESS)
    Process: 1167 ExecStart=/bin/sh -c if systemctl -q is-active gssproxy; then systemctl reload gssproxy ; fi (code=exited, status=0/S>
   Main PID: 1167 (code=exited, status=0/SUCCESS)
        CPU: 13ms

Nov 01 20:32:51 localhost.localdomain systemd[1]: Starting nfs-server.service - NFS server and services...
Nov 01 20:32:51 localhost.localdomain systemd[1]: Finished nfs-server.service - NFS server and services.

[root@localhost anuser]# uname -a
Linux localhost.localdomain 5.10.134-12.1.an23.x86_64 #1 SMP Thu Oct 13 11:38:24 CST 2022 x86_64 GNU/Linux
[root@localhost anuser]#
[root@localhost anuser]# systemctl restart nfs-utils
[root@localhost anuser]# systemctl status nfs-utils
● nfs-utils.service - NFS server and client services
     Loaded: loaded (/usr/lib/systemd/system/nfs-utils.service; static)
     Active: active (exited) since Tue 2022-11-01 20:34:13 CST; 1s ago
    Process: 1178 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 1178 (code=exited, status=0/SUCCESS)
        CPU: 1ms

Nov 01 20:34:13 localhost.localdomain systemd[1]: Starting nfs-utils.service - NFS server and client services...
Nov 01 20:34:13 localhost.localdomain systemd[1]: Finished nfs-utils.service - NFS server and client services.
[root@localhost anuser]#
[root@localhost anuser]# systemctl restart nfs-mountd
[root@localhost anuser]# systemctl status nfs-mountd
● nfs-mountd.service - NFS Mount Daemon
     Loaded: loaded (/usr/lib/systemd/system/nfs-mountd.service; static)
     Active: active (running) since Tue 2022-11-01 20:34:53 CST; 3s ago
    Process: 1192 ExecStart=/usr/sbin/rpc.mountd (code=exited, status=0/SUCCESS)
   Main PID: 1193 (rpc.mountd)
      Tasks: 1 (limit: 18838)
     Memory: 1012.0K
        CPU: 15ms
     CGroup: /system.slice/nfs-mountd.service
             └─1193 /usr/sbin/rpc.mountd

Nov 01 20:34:53 localhost.localdomain systemd[1]: Starting nfs-mountd.service - NFS Mount Daemon...
Nov 01 20:34:53 localhost.localdomain rpc.mountd[1193]: Version 2.6.2 starting
Nov 01 20:34:53 localhost.localdomain systemd[1]: Started nfs-mountd.service - NFS Mount Daemon.
[root@localhost anuser]#