[node-patches] Change in ovirt-node[master]: init: Add support for nfsv4_domain cmdline args
hadong0720 at gmail.com
hadong0720 at gmail.com
Sun Aug 25 09:51:50 UTC 2013
hadong has uploaded a new change for review.
Change subject: init: Add support for nfsv4_domain cmdline args
......................................................................
init: Add support for nfsv4_domain cmdline args
This patch adds support for configuring nfsv4_domain in cmdline args:
nfsv4_domain=domain
This informations are sued to set nfsv4_domain=domain during
an auto-installation.
Change-Id: I12a3236b421128ad6effbb4793fa5280c6d71b1c
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M scripts/ovirt-auto-install.py
1 file changed, 17 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/63/18463/1
diff --git a/scripts/ovirt-auto-install.py b/scripts/ovirt-auto-install.py
index 7b0e61a..ff9f80f 100755
--- a/scripts/ovirt-auto-install.py
+++ b/scripts/ovirt-auto-install.py
@@ -105,6 +105,19 @@
ssh.disable_aesni(OVIRT_VARS["OVIRT_DISABLE_AES_NI"])
+class ConfigureNfsv4(Transaction.Element):
+ title = "Setting NFSv4 domain"
+
+ def commit(self):
+ if "OVIRT_NFSV4_DOMAIN" in OVIRT_VARS and \
+ not OVIRT_VARS["OVIRT_NFSV4_DOMAIN"] is "":
+ nfsv4 = storage.NFSv4()
+ nfsv4.domain(OVIRT_VARS["OVIRT_NFSV4_DOMAIN"])
+ ovirt_store_config(nfsv4.configfilename)
+ system_closefds("service rpcidmapd restart &> /dev/null")
+ system_closefds("nfsidmap -c &> /dev/null")
+
+
class ConfigureLogging(Transaction.Element):
title = "Configuring Logging"
@@ -186,6 +199,10 @@
if "OVIRT_DISABLE_AES_NI" in OVIRT_VARS:
tx.append(ConfigureAESNI())
+ #set NFSv4 domain
+ if "OVIRT_NFSV4_DOMAIN" in OVIRT_VARS:
+ tx.append(ConfigureNfsv4())
+
tx.append(ConfigureLogging())
tx.append(ConfigureCollectd())
--
To view, visit http://gerrit.ovirt.org/18463
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I12a3236b421128ad6effbb4793fa5280c6d71b1c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>
More information about the node-patches
mailing list