From 8818223af0c1041cc78bf27fddd86ef5eb0df8ff Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Tue, 27 Jun 2017 15:54:18 -0400 Subject: [PATCH] Improve the debug message when bmc value cannot be obtained in the openbmc or ipmi table in xCAT --- xCAT-server/lib/xcat/plugins/bmcconfig.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/bmcconfig.pm b/xCAT-server/lib/xcat/plugins/bmcconfig.pm index bef071f58..bf5ba3a8e 100644 --- a/xCAT-server/lib/xcat/plugins/bmcconfig.pm +++ b/xCAT-server/lib/xcat/plugins/bmcconfig.pm @@ -105,7 +105,6 @@ sub process_request { return; } - #my $sitetable = xCAT::Table->new('site'); my $ipmitable = xCAT::Table->new("$bmc_mgmt_type"); my $tmphash; my $username; @@ -142,8 +141,8 @@ sub process_request { $clipassword = $password; } unless (defined $bmc) { - xCAT::MsgUtils->message('S', "Unable to identify bmc for $node, refusing to give config data"); - $callback->({ error => ["Invalid table configuration for bmcconfig"], errorcode => [1] }); + xCAT::MsgUtils->message('S', "Received request from host=$node but unable to determine $bmc_mgmt_type.bmc value for the node. Verify mgt attribute is configured correctly for the node and the BMC is defined."); + $callback->({ error => ["Unable to detect BMC configuration value for bmcconfig"], errorcode => [1] }); return 1; } my $bmcport_counter = 0;