From: Andrew Schoen Date: Wed, 4 Mar 2015 14:57:03 +0000 (-0600) Subject: Control the nfs service correctly on rpm-based systems X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=68a8c1a7255441c942b922a21ff18d0e48a493a3;p=ceph.git Control the nfs service correctly on rpm-based systems This fixes issue #11020 Signed-off-by: Andrew Schoen (cherry picked from commit 2e4d884fdaabbeca67b519537a80166d3cc99fa3) --- diff --git a/tasks/qemu.py b/tasks/qemu.py index 17554a1f0d151..bcd79caa64f58 100644 --- a/tasks/qemu.py +++ b/tasks/qemu.py @@ -188,7 +188,7 @@ def _setup_nfs_mount(remote, client, mount_dir): if remote.os.package_type == "deb": remote.run(args=['sudo', 'service', 'nfs-kernel-server', 'restart']) else: - remote.run(args=['sudo', 'systemctl', 'nfs', 'restart']) + remote.run(args=['sudo', 'systemctl', 'restart', 'nfs']) def _teardown_nfs_mount(remote, client): @@ -205,7 +205,7 @@ def _teardown_nfs_mount(remote, client): ]) else: remote.run(args=[ - 'sudo', 'systemctl', 'nfs', 'stop' + 'sudo', 'systemctl', 'stop', 'nfs' ]) log.info("Unmounting exported directory...") remote.run(args=[ @@ -226,7 +226,7 @@ def _teardown_nfs_mount(remote, client): ]) else: remote.run(args=[ - 'sudo', 'systemctl', 'nfs', 'start' + 'sudo', 'systemctl', 'start', 'nfs' ])