Skip to content

Commit b6a8465

Browse files
committedJun 17, 2015
gather more data when node is stuck without network
1 parent 6271ed5 commit b6a8465

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎initscripts/pl_netinit

+5-3
Original file line numberDiff line numberDiff line change
@@ -313,17 +313,19 @@ fi
313313
# on fedora 21 nodes we see this running in a context where eth0 is not known to the system
314314
# could be related to a dependency that we poorly describe to systemd
315315
# I am increasing this timeout to 2 minutes in order to check that conjecture
316-
ALLOW=120
316+
ALLOW=60
317317
COUNTER=0
318318
while true; do
319319
if /sbin/ifconfig $ETH_DEVICE >& /dev/null; then
320320
echo $(date "+%H:%M:%S") " pl_netinit: device present $ETH_DEVICE, proceeding (${COUNTER}s/${ALLOW}s)"
321321
break
322322
fi
323323
echo $(date "+%H:%M:%S") " pl_netinit: waiting for device $ETH_DEVICE - ${COUNTER}s/${ALLOW}s"
324-
echo ========== ifconfig beg
324+
set -x
325325
/sbin/ifconfig
326-
echo ========== ifconfig end
326+
journalctl -b | egrep 'eth|bnx|udev'
327+
systemctl list-unit-files | grep -i network
328+
set +x
327329
COUNTER=$(($COUNTER+1))
328330
[ $COUNTER -ge $ALLOW ] && net_init_failed
329331
sleep 1

0 commit comments

Comments
 (0)
Please sign in to comment.