Skip to content

Commit e634c08

Browse files
Merge pull request #564 from hjensas/OSPRH-17520
Fix CrashLoopBackOff, ramdisk-logs no inotifywait
2 parents cc3c9c9 + 01045ce commit e634c08

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/common/bin/runlogwatch.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
# Ramdisk logs path
44
LOG_DIR=${LOG_DIR:-/var/lib/ironic/ramdisk-logs}
55

6+
# NOTE(hjensas): OSPRH-17520
7+
if ! command -v inotifywait; then
8+
echo "WARNING: ramdisk-logs will not be captured, because the inotifywait command is missing. Please patch the OpenstackVersion to update container images."
9+
# Start a tail on /dev/null to do nothing forever
10+
tail -f /dev/null
11+
fi
12+
613
inotifywait -m "${LOG_DIR}" -e close_write |
714
while read -r path _action file; do
815
echo "************ Contents of ${path}${file} ramdisk log file bundle **************"

0 commit comments

Comments
 (0)