X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FUpdateNodeConfiguration.py;h=ec74bc2466337b560ee676f6eff21d47d884d579;hb=781dc69b89c6f9260655cd7350edf3c80c85521e;hp=f7830e55924984157371df951ace471c2f303deb;hpb=7ab7e9dd797333a9fdc8604554e16e192a32144d;p=bootmanager.git diff --git a/source/steps/UpdateNodeConfiguration.py b/source/steps/UpdateNodeConfiguration.py index f7830e5..ec74bc2 100644 --- a/source/steps/UpdateNodeConfiguration.py +++ b/source/steps/UpdateNodeConfiguration.py @@ -1,6 +1,14 @@ +#!/usr/bin/python2 -u + +# Copyright (c) 2003 Intel Corporation +# All rights reserved. +# +# Copyright (c) 2004-2006 The Trustees of Princeton University +# All rights reserved. + + import os -import InstallWriteConfig import InstallBuildVServer from Exceptions import * import utils @@ -13,6 +21,9 @@ def Run( vars, log ): scripts based on what PLC has. Also, update any slivers on the machine incase their network files are out of date (primarily /etc/hosts). + Also write out /etc/planetlab/session, a random string that gets + a new value at every request of BootGetNodeDetails (ie, every boot) + This step expects the root to be already mounted on SYSIMG_PATH. Except the following keys to be set: @@ -57,11 +68,6 @@ def Run( vars, log ): if not ROOT_MOUNTED: raise BootManagerException, "Root isn't mounted on SYSIMG_PATH\n" - - log.write( "Updating node network configuration\n" ) - InstallWriteConfig.write_network_configuration( vars, log ) - - log.write( "Updating vserver's /etc/hosts and /etc/resolv.conf files\n" ) # create a list of the full directory paths of all the vserver images that @@ -97,5 +103,5 @@ def Run( vars, log ): # the update flag is there for base_dir in update_path_list: InstallBuildVServer.update_vserver_network_files(base_dir,vars,log) - + return