Reset sysinv.conf zeromq bind ip variable when copying from nfs-mount
The rpc_zeromq_bind_ip variable in sysinv.conf is unique to each host. When copying it from nfs-mount, it might be already configured for controller host. This change set its value to localhost. TEST PLAN: PASS: Install and bootstrap Standard system Story: 2010087 Task: 46444 Signed-off-by: Alyson Deives Pereira <alyson.deivespereira@windriver.com> Change-Id: I3f048c078ba62f6b8b60e5b7a6b96c9fb81446fc
This commit is contained in:
parent
985630c9f0
commit
6b6fa219bd
@ -69,6 +69,9 @@ mount_and_copy_config_file()
|
||||
RETVAL=$?
|
||||
if [ $? -ne 0 ] ; then
|
||||
logger "$0: Warn: cp /mnt/sysinv/sysinv.conf.default ${SYSINV_CONF_FILE}"
|
||||
else
|
||||
# Reset zeromq bind ip to localhost
|
||||
sed -i '/^rpc_zeromq_bind_ip/s/=.*$/=::/' ${SYSINV_CONF_FILE}
|
||||
fi
|
||||
timeout 5s umount /mnt/sysinv
|
||||
rmdir /mnt/sysinv
|
||||
@ -137,6 +140,8 @@ case "$1" in
|
||||
if [ $? -ne 0 ] ; then
|
||||
logger "$0: Warn: cp /mnt/sysinv/sysinv.conf.default ${SYSINV_CONF_FILE} failed. Try mount."
|
||||
else
|
||||
# Reset zeromq bind ip to localhost
|
||||
sed -i '/^rpc_zeromq_bind_ip/s/=.*$/=::/' ${SYSINV_CONF_FILE}
|
||||
CONF_COPIED=1
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user