From 351a32e29bd307fedc5292d950da4a210d9d8a9e Mon Sep 17 00:00:00 2001 From: Aaron Klingaman Date: Thu, 26 May 2005 19:19:49 +0000 Subject: [PATCH] be extra clear about what happens when a node that doesn't have node_id on the floppy is attempted to be booted, and it doesn't yet exist in PLC. this is the case for when users try to add nodes using the old procedures without reading the guides (bound to happen) --- source/steps/ReadNodeConfiguration.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/source/steps/ReadNodeConfiguration.py b/source/steps/ReadNodeConfiguration.py index 3fcc414..1b7111a 100644 --- a/source/steps/ReadNodeConfiguration.py +++ b/source/steps/ReadNodeConfiguration.py @@ -446,7 +446,21 @@ def __parse_configuration_file( vars, log, file_contents ): return 0 if node_id == -1: - log.write( "Got node_id, but it returned -1\n" ) + log.write( "Got node_id, but it returned -1\n\n" ) + + log.write( "------------------------------------------------------\n" ) + log.write( "This indicates that this node could not be identified\n" ) + log.write( "by PLC. You will need to add the node to your site,\n" ) + log.write( "and regenerate the network configuration file.\n" ) + log.write( "See the Technical Contact guide for node setup\n" ) + log.write( "procedures.\n\n" ) + log.write( "Boot process canceled until this is completed.\n" ) + log.write( "------------------------------------------------------\n" ) + + cancel_boot_flag= "/tmp/CANCEL_BOOT" + # this will make the initial script stop requesting scripts from PLC + utils.sysexec( "touch %s" % cancel_boot_flag, log ) + return 0 log.write( "Got node_id from PLC: %s\n" % str(node_id) ) -- 2.43.0