[SCALE] nfs service not startable. (/etc/exports not being generated at least)
Description
Problem/Justification
None
Impact
None
relates to
Andrew Walker
Activity
Wolf Noble
February 7, 2022 at 7:56 PM
I can confirm this fixes the problem I was experiencing here:
root@pine:/usr/local/src# cat /usr/lib/python3/dist-packages/middlewared/etc_files/exports.mako|head -92|tail -3
for network in share["networks"]:
options.append(f'{network}({opts})')
anonymous = False
root@pine:/usr/local/src#
after a restart of middlewared:
root@pine:/usr/local/src# service middlewared restart
and twiddling the ip address in the nfs service UI:
pine# tail -f /var/log/middlewared.log
[2022/02/07 13:51:54] (DEBUG) EtcService.generate():431 - No new changes for /etc/default/nfs-common
[2022/02/07 13:51:54] (DEBUG) EtcService.generate():431 - No new changes for /etc/default/nfs-kernel-server
[2022/02/07 13:51:54] (DEBUG) EtcService.generate():431 - No new changes for /etc/default/rpcbind
[2022/02/07 13:51:54] (DEBUG) EtcService.generate():431 - No new changes for /etc/idmapd.conf
[2022/02/07 13:52:20] (DEBUG) EtcService.generate():431 - No new changes for /etc/default/nfs-common
[2022/02/07 13:52:20] (DEBUG) EtcService.generate():431 - No new changes for /etc/idmapd.conf
[2022/02/07 13:52:20] (DEBUG) EtcService.generate():431 - No new changes for /etc/exports
nfs appears to be functional again:
root@pine:/usr/local/src# showmount -e
Export list for pine.wolfspyre.com:
/mnt/Pine/Backups/Dell/configs/stor 198.18.198.0/24,192.0.2.0/24
/mnt/Pine/Backups/Dell/configs/pxm 198.18.10.0/24,198.18.50.0/24
/mnt/Pine/OSImages 198.18.0.0/16,192.0.2.0/24
/mnt/Pine/Repo 192.0.2.0/24,198.18.0.0/16
/mnt/Pine/iTunes/Music 198.18.198.0/24,192.0.2.0/24
/mnt/Pine/iTunes/Movies 198.18.198.0/24,192.0.2.0/24
/mnt/Pine/Backups/Infrastructure 198.18.42.0/24,198.18.1.0/24,198.18.3.0/24,198.18.199.0/24,198.18.10.0/24,198.18.198.0/24,192.0.2.0/24
/mnt/Pine/proxmoxstorage 198.18.10.0/24,198.18.198.0/24
Wolf Noble
February 7, 2022 at 7:00 PM
aye! Thanks for the help. I'm happy to work with ya in a less async fashion if that's better too.
Complete
Details
Details
Assignee
Andrew Walker
Andrew WalkerReporter
Wolf Noble
Wolf NobleImpact
High
Time remaining
0m
Components
Fix versions
Affects versions
Priority
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Created February 7, 2022 at 6:38 PM
Updated July 1, 2022 at 5:54 PM
Resolved February 8, 2022 at 10:59 AM
as commented in NAS-114501, the latest versions of scale no longer include functional nfs services :/
root@pine:~# cat /etc/version
22.02-MASTER-20220207-092926
the nfs-server service won't start, as /etc/exports doesn't exist.
root@pine:~# systemctl status nfs-server
● nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2022-02-07 10:58:58 CST; 1h 8min ago
Feb 07 10:58:58 pine.wolfspyre.com systemd[1]: Starting NFS server and services...
Feb 07 10:58:58 pine.wolfspyre.com exportfs[53050]: exportfs: can't open /etc/exports for reading
Feb 07 10:58:58 pine.wolfspyre.com systemd[1]: nfs-server.service: Control process exited, code=exited, s>
Feb 07 10:58:58 pine.wolfspyre.com systemd[1]: nfs-server.service: Failed with result 'exit-code'.
Feb 07 10:58:58 pine.wolfspyre.com systemd[1]: Stopped NFS server and services.
root@pine:~#
the files in /var/lib/nfs are all 0byte files untouched from june 21.
root@pine:/var/tmp/fndebug# tree -Dugh /var/lib/nfs
/var/lib/nfs
├── [root root 0 Jun 28 2021] etab
├── [root root 0 Feb 7 10:54] export-lock
├── [root root 0 Jun 28 2021] rmtab
├── [statd nogroup 2 Jun 28 2021] sm
├── [statd nogroup 2 Jun 28 2021] sm.bak
├── [statd root 0 Jun 28 2021] state
├── [root root 2 Jun 28 2021] v4recovery
└── [root root 0 Jun 28 2021] xtab
3 directories, 5 files
there are a bunch of ancilary things that seem unfunctional, but I'm trying to avoid the red herring breadcrumb trail.