[node-patches] Change in ovirt-node[master]: defaults: Use system.service() in more places
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Wed Jun 12 10:49:48 UTC 2013
Fabian Deutsch has uploaded a new change for review.
Change subject: defaults: Use system.service() in more places
......................................................................
defaults: Use system.service() in more places
Change-Id: I8150ab1bb304707645aa107e1778776ff0da6012
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/config/defaults.py
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/91/15591/1
diff --git a/src/ovirt/node/config/defaults.py b/src/ovirt/node/config/defaults.py
index f523169..db52d49 100644
--- a/src/ovirt/node/config/defaults.py
+++ b/src/ovirt/node/config/defaults.py
@@ -927,7 +927,7 @@
from ovirtnode.ovirtfunctions import remove_config
remove_config("/etc/kdump.conf")
- utils.process.call("service kdump stop")
+ system.service("kdump", "stop")
fs.File('/etc/kdump.conf').touch()
self.backups.remove()
@@ -944,12 +944,12 @@
ovirt_store_config
try:
- utils.process.check_call("service kdump restart")
+ system.service("kdump", "restart")
except utils.process.CalledProcessError as e:
self.logger.info("Failure while restarting kdump: %s" % e)
unmount_config("/etc/kdump.conf")
self.backups.restore("/etc/kdump.conf")
- utils.process.call("service kdump restart")
+ system.service("kdump", "restart")
raise RuntimeError("KDump configuration failed, " +
"location unreachable. Previous " +
@@ -1156,7 +1156,7 @@
nfsv4.domain(domain)
fs.Config().persist(nfsv4.configfilename)
- process.check_call("service rpcidmapd restart")
+ system.service("rpcidmapd", "restart")
process.check_call("nfsidmap -c")
tx = utils.Transaction("Configuring NFSv4")
--
To view, visit http://gerrit.ovirt.org/15591
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8150ab1bb304707645aa107e1778776ff0da6012
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list