summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomsou <soth@intracom-telecom.com>2017-10-20 17:44:41 +0300
committerFeng Pan <fpan@redhat.com>2017-10-26 18:05:08 +0000
commit2ca38198dbc25c651f007c6f478ca604bbdee56d (patch)
treeaf73c8c9441831cf025ce57d5c1d95dca6b717c9
parent44bafd3a55c92920678687dbb3a9c015961649d6 (diff)
Fix zrpcd start in the controller node
Add sudo into zrpcd process start command Add starting script into /etc/rc.d/rc.local too Change-Id: I3c724ff60d4c3feb7379b1a8bbeca8a928cfe81b Signed-off-by: tomsou <soth@intracom-telecom.com> (cherry picked from commit 577ccdd1e7ce654ebc7479d8bd1e232abb922571)
-rw-r--r--apex/overcloud/deploy.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/apex/overcloud/deploy.py b/apex/overcloud/deploy.py
index bf209285..495743bd 100644
--- a/apex/overcloud/deploy.py
+++ b/apex/overcloud/deploy.py
@@ -177,7 +177,7 @@ def prep_image(ds, img, tmp_dir, root_pw=None):
virt_cmds.append({con.VIRT_RUN_CMD: "chmod +x /etc/rc.d/rc.local"})
virt_cmds.append({
con.VIRT_RUN_CMD:
- "echo '/opt/quagga/etc/init.d/zrpcd start' > "
+ "echo 'sudo /opt/quagga/etc/init.d/zrpcd start' > "
"/opt/quagga/etc/init.d/zrpcd_start.sh"})
virt_cmds.append({
con.VIRT_RUN_CMD: "chmod +x /opt/quagga/etc/init.d/"
@@ -185,6 +185,9 @@ def prep_image(ds, img, tmp_dir, root_pw=None):
virt_cmds.append({
con.VIRT_RUN_CMD: "sed -i '$a /opt/quagga/etc/"
"init.d/zrpcd_start.sh' /etc/rc.local "})
+ virt_cmds.append({
+ con.VIRT_RUN_CMD: "sed -i '$a /opt/quagga/etc/"
+ "init.d/zrpcd_start.sh' /etc/rc.d/rc.local"})
logging.info("ZRPCD process started")
dataplane = ds_opts['dataplane']