[node-patches] Change in ovirt-node[master]: config: Fallback to newer NFS service name

fabiand at redhat.com fabiand at redhat.com
Mon Mar 2 13:46:47 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: config: Fallback to newer NFS service name
......................................................................

config: Fallback to newer NFS service name

A service name changed recently, we try that one if available

Change-Id: I50df8d35df95c9e61a0da5bc75286b4abddd2360
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1197623
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/config/defaults.py
1 file changed, 5 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/79/38279/1

diff --git a/src/ovirt/node/config/defaults.py b/src/ovirt/node/config/defaults.py
index b5314ee..aed5d99 100755
--- a/src/ovirt/node/config/defaults.py
+++ b/src/ovirt/node/config/defaults.py
@@ -279,7 +279,7 @@
         """Return all transactions to re-configure networking
         """
         services = ["network", "ntpd", "ntpdate", "rpcbind", "nfslock",
-                    "rpcidmapd", "rpcgssd"]
+                    "rpcidmapd", "nfs-idmapd", "rpcgssd"]
 
         def do_services(cmd, services):
             with console.CaptureOutput():
@@ -1579,7 +1579,10 @@
                 nfsv4.domain(domain or "")
 
                 fs.Config().persist(nfsv4.configfilename)
-                system.service("rpcidmapd", "restart")
+                servicename = "rpcidmapd"
+                if os.path.exists("/usr/lib/systemd/system/nfs-idmapd.service"):
+                    servicename = "nfs-idmapd"
+                system.service(servicename, "restart")
                 process.call(["nfsidmap", "-c"])
 
         tx = utils.Transaction("Configuring NFSv4")


-- 
To view, visit https://gerrit.ovirt.org/38279
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I50df8d35df95c9e61a0da5bc75286b4abddd2360
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list