mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
Control the nfs service correctly on rpm-based systems
This fixes issue #11020 Signed-off-by: Andrew Schoen <aschoen@redhat.com>
This commit is contained in:
parent
e5abbc932a
commit
2e4d884fda
@ -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'
|
||||
])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user