+ # PlanetLabConf requires /etc/planetlab/node_id, which is normally
+ # maintained in ValidateNodeInstal. so, write out the node_id here
+ # so PlanetLabConf can run.
+ try:
+ node_id_file_path= "%s/%s/node_id" % (SYSIMG_PATH,PLCONF_DIR)
+ node_id_file= file( node_id_file_path, "w" )
+ node_id_file.write( str(NODE_ID) )
+ node_id_file.close()
+ node_id_file= None
+ except IOError, e:
+ raise BootManagerException, \
+ "Unable to write out /etc/planetlab/node_id for PlanetLabConf"
+