Bug 55008 - NFS does not start when directory is missing
NFS does not start when directory is missing
Status: NEEDMOREINFO
Product: UCS
Classification: Unclassified
Component: NFS
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-07-18 16:01 CEST by Dirk Schnick
Modified: 2022-07-19 13:34 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022071421000318
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schnick univentionstaff 2022-07-18 16:01:43 CEST
A (school) customer tested the upgrade from UCS 4 to UCS 5 and found that NFS was not willing to start:

Jul 14 10:44:35 testVM systemd[1]: Starting NFS server and services...
Jul 14 10:44:35 testVM exportfs&#91;7422&#93;: exportfs: Failed to stat /home/testVM/mitarbeiter/<username>: No such file or directory
Jul 14 10:44:35 testVM systemd&#91;1&#93;: nfs-server.service: Control process exited, code=exited status=1
Jul 14 10:44:35 testVM systemd&#91;1&#93;: Failed to start NFS server and services.
Jul 14 10:44:35 testVM systemd&#91;1&#93;: nfs-server.service: Unit entered failed state.
Jul 14 10:44:35 testVM systemd&#91;1&#93;: nfs-server.service: Failed with result 'exit-code'.
Warning: nfs-server.service changed on disk. Run 'systemctl daemon-reload' to reload units.

The creation of the missing folder /home/testVM/mitarbeiter/<username> resolve the problem, but it looks like the code is not evaluating the var username.
The customer mentioned that the problem seems to be there already in UCS 4 so I opened the bug against UCS4 but in UCS 5 it seems to be present also.
Comment 1 Erik Damrose univentionstaff 2022-07-18 17:22:58 CEST
What kind of nfs export is defined on the system? To me it looks like an expected behavior that the service does not start (i.e. fails early), if a directory should be exported, but it does not exist.
Comment 2 Florian Best univentionstaff 2022-07-19 13:34:44 CEST
(In reply to Dirk Schnick from comment #0)
> The customer mentioned that the problem seems to be there already in UCS 4
> so I opened the bug against UCS4 but in UCS 5 it seems to be present also.

So what does it have to do with the upgrade to UCS 5? I change the bug title from "NFS does not start after update from UCS4 to UCS5".