Merge "Add sleep between sysinv-agent attempts to mount /opt/platform"

This commit is contained in:
Zuul 2022-09-20 18:07:59 +00:00 committed by Gerrit Code Review
commit 65ab3c50ff
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
[Unit]
Description=StarlingX System Inventory Agent
After=nfscommon.service sw-patch.service
After=network-online.target systemd-udev-settle.service
After=network-online.target systemd-udev-settle.service remote-fs.target
Before=pmon.service
[Service]

View File

@ -125,7 +125,7 @@ case "$1" in
if [ ${FOUND} -eq 0 ]
then
# 'controller-platform-nfs' is not available; continue other setup
echo "controller-platform-nfs is not available"
logger "$0: Warn: controller-platform-nfs is not available via icmp"
else
# Only required if conf file does not already exist
if [ -f ${SYSINV_CONF_DEFAULT_FILE} ]
@ -151,6 +151,7 @@ case "$1" in
fi
let CONF_COPY_COUNT=CONF_COPY_COUNT+1
logger "$0: Warn: Mount and copy config file failed. Attempt: ${CONF_COPY_COUNT}"
sleep 1
done
fi
fi