| Summary: | Drakfirewall fails to open mountd ports for NFS | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | André DESMOTTES <lebarhon> |
| Component: | RPM Packages | Assignee: | papoteur <yvesbrungard> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | High | CC: | anaselli, choucroot, derekjenn, mageia, matteo.pasotti, thierry.vignaud, yvesbrungard |
| Version: | 5 | Keywords: | PATCH |
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | IN_ERRATA | ||
| Source RPM: | drakx-net | CVE: | |
| Status comment: | |||
| Bug Depends on: | 18796 | ||
| Bug Blocks: | |||
| Attachments: | Patch to use correct config file for NFS | ||
|
Description
André DESMOTTES
2014-11-14 12:22:48 CET
Manuel Hiebel
2014-11-14 22:31:24 CET
CC:
(none) =>
mageia, thierry.vignaud NFS ports are defined there: http://gitweb.mageia.org/software/drakx-net/tree/lib/network/drakfirewall.pm#n55 Listed from: http://gitweb.mageia.org/software/drakx-net/tree/lib/network/nfs.pm#n7 So it looks like we failed to read the right mountd port (which we assume is 4003 by default, else defined by "RPCMOUNTD_OPTIONS=..." in /etc/sysconfig/nfs-server Keywords:
(none) =>
NEEDINFO
Angelo Naselli
2015-03-11 16:44:33 CET
CC:
(none) =>
anaselli, matteo.pasotti Removing the NEEDINFO keyword as I see no question to the bug reporter. Maybe you meant NEEDHELP? Keywords:
NEEDINFO =>
(none) FYI, I have with Mageia 4: [root@localhost ~]# cat /etc/sysconfig/nfs-server RPCMOUNTD_OPTIONS="--port 4002" [root@localhost ~]# Bug still valid.
Samuel Verschelde
2015-05-19 17:11:47 CEST
Whiteboard:
(none) =>
MGA4TOO
Samuel Verschelde
2015-05-21 11:01:46 CEST
Whiteboard:
MGA4TOO =>
MGA4TOO MGA5TOO FOR_ERRATA Added in errata. https://wiki.mageia.org/en/Mageia_5_Errata#Drakfirewall_fails_to_open_mountd_ports_for_NFS CC:
(none) =>
yves.brungard_mageia Created attachment 6982 [details]
Patch to use correct config file for NFS
The problem is because systemd starts mountd with the configuration file /etc/sysconfig/nfs while nfs.pm is looking at nfs-common and nfs-server.
In addition the names of the parameters are changed in /etc/sysconfig/nfs so RPCMOUNTD_OPTIONS is now RPCMOUNTDARGS.
A quick workaround the problem is to edit /etc/sysconfig/nfs and set
RPCMOUNTDARGS="--port 4003" and restart nfs-mountd service.
For a more complete fix see attached patch. It works for me.CC:
(none) =>
derekjenn Hi, The patch works for me too. Thanks Hi Why this patch isn't in Mageia 6?
Samuel Verschelde
2015-11-25 10:29:07 CET
Keywords:
(none) =>
PATCH Assigning to drakx-net maintainer Olivier Blin. Patch attached (see comment #5). Assignee:
bugsquad =>
mageia Applied by Papoteur in git, thanks for the patch! Closing Resolution:
(none) =>
FIXED Reopened because of Mageia 5 Status:
RESOLVED =>
REOPENED drakx-net 2.24.2 is ready in testing. Assignee:
mageia =>
qa-bugs Drakx-net update is already assigned to QA in another bug. Depends on:
(none) =>
18796 As a mg5 user, I downloaded drakx-net 2.24.2 from "Core Update Testing (distrib5)". And I tested it ok !( opened drakfirewall and re-applyed the "NFS" configuration. This time the nfs serveur is visible throught the firewall. CC:
(none) =>
choucroot Alain, please report your successful test on Bug 18796. Also mention which architecture you tested on. |