Skip to content

Commit

Permalink
Fix issue 942:[PCM] CN IP loss after 12 hours due to the dhcp.lease t…
Browse files Browse the repository at this point in the history
…imeout value 43200
  • Loading branch information
ertaozh authored and daniceexi committed Apr 25, 2016
1 parent 40542f6 commit 52061dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions xCAT-server/share/xcat/install/scripts/post.rhels7
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ do
#nic name change during the install and first_reboot
sed -i '/HWADDR/d' $i
done

# NetworkManager will conflict with the configuring xcat do later in postboot script, so disable it in postscript

# There are 2 other service related to NetworkManager: NetworkManager-dispatcher and NetworkManager-wait-online
# Both of them are triggered by NetworkManager, so just disable NetworkManager here
if [ -f "/usr/lib/systemd/system/NetworkManager.service" ]; then
systemctl disable NetworkManager
fi
7 changes: 0 additions & 7 deletions xCAT/postscripts/xcatinstallpost
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,6 @@ fi
" >> /xcatpost/mypostscript.post
fi

stopservice NetworkManager
stopservice NetworkManager-dispatcher
stopservice NetworkManager-wait-online

disableservice NetworkManager
disableservice NetworkManager-dispatcher
disableservice NetworkManager-wait-online
chmod +x /xcatpost/mypostscript.post
if [ -x /xcatpost/mypostscript.post ];then
msgutil_r "$MASTER_IP" "info" "running /xcatpost/mypostscript.post" "/var/log/xcat/xcat.log"
Expand Down

0 comments on commit 52061dd

Please sign in to comment.