mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 13:22:36 +00:00 
			
		
		
		
	Improve OpenBMC reventlog message for missing policyTable.json
This commit is contained in:
		@@ -265,7 +265,8 @@ EVENTLOG_URLS     = {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
RAS_POLICY_TABLE  = "/opt/ibm/ras/lib/policyTable.json"
 | 
			
		||||
RAS_POLICY_MSG    = "Install the OpenBMC RAS package to obtain more detailed logging messages."
 | 
			
		||||
RAS_POLICY_TABLE_RPM_LOC = "https://www.ibm.com/support/customercare/sas/f/lopdiags/scaleOutLCdebugtool.html#OpenBMC"
 | 
			
		||||
RAS_POLICY_MSG    = "Install the openbmctool rpm from " + RAS_POLICY_TABLE_RPM_LOC + " to obtain more detailed logging messages."
 | 
			
		||||
RAS_NOT_FOUND_MSG = " Not found in policy table: "
 | 
			
		||||
 | 
			
		||||
RESULT_OK = 'ok'
 | 
			
		||||
 
 | 
			
		||||
@@ -91,6 +91,7 @@ $::RSPCONFIG_CONFIGURED_API_KEY  = -1;
 | 
			
		||||
 | 
			
		||||
$::XCAT_LOG_DIR             = "/var/log/xcat";
 | 
			
		||||
$::RAS_POLICY_TABLE         = "/opt/ibm/ras/lib/policyTable.json";
 | 
			
		||||
$::RAS_POLICY_TABLE_RPM_LOC = "https://www.ibm.com/support/customercare/sas/f/lopdiags/scaleOutLCdebugtool.html#OpenBMC";
 | 
			
		||||
$::XCAT_LOG_RFLASH_DIR      = $::XCAT_LOG_DIR . "/rflash/";
 | 
			
		||||
$::XCAT_LOG_DUMP_DIR        = $::XCAT_LOG_DIR . "/dump/";
 | 
			
		||||
 | 
			
		||||
@@ -1122,7 +1123,7 @@ rmdir \"/tmp/\$userid\" \n";
 | 
			
		||||
    while (1) {
 | 
			
		||||
        unless ($wait_node_num) {
 | 
			
		||||
            if ($event_mapping and (ref($event_mapping) ne "HASH")) {
 | 
			
		||||
                xCAT::SvrUtils::sendmsg("$event_mapping, install the OpenBMC RAS package to obtain more details logging messages.", $callback);
 | 
			
		||||
                xCAT::SvrUtils::sendmsg("$event_mapping, install the openbmctool rpm from $::RAS_POLICY_TABLE_RPM_LOC to obtain more detailed logging messages.", $callback);
 | 
			
		||||
            }
 | 
			
		||||
            if ($next_status{LOGIN_RESPONSE} eq "RSPCONFIG_SSHCFG_REQUEST") {
 | 
			
		||||
                my $home = xCAT::Utils->getHomeDir("root");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user