mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 17:23:08 +00:00
Improve the error message when python dependencies are not met
This commit is contained in:
parent
b501c031c9
commit
40118f0c8f
@ -106,7 +106,7 @@ class Server(object):
|
||||
self.server.stop()
|
||||
os._exit(0)
|
||||
except ImportError:
|
||||
messager.error("xCAT mgt=openbmc is using a Python based framework and there are some dependencies that are not met.")
|
||||
messager.error("OpenBMC management is using a Python framework and some dependency libraries could not be imported.")
|
||||
print(traceback.format_exc(), file=sys.stderr)
|
||||
self.server.stop()
|
||||
os._exit(1)
|
||||
|
@ -137,7 +137,7 @@ sub submit_agent_request {
|
||||
$retry++;
|
||||
}
|
||||
if (!defined($sock)) {
|
||||
xCAT::MsgUtils->message("E", { data => ["Failed to connect to the agent"] }, $callback);
|
||||
xCAT::MsgUtils->message("E", { data => ["OpenBMC management is using a Python framework. An error has occured when trying to create socket $AGENT_SOCK_PATH."] }, $callback);
|
||||
kill('TERM', $pid);
|
||||
return;
|
||||
}
|
||||
@ -195,7 +195,7 @@ sub wait_agent {
|
||||
my ($pid, $callback) = @_;
|
||||
waitpid($pid, 0);
|
||||
if ($? >> 8 != 0) {
|
||||
xCAT::MsgUtils->message("E", { data => ["python agent exited unexpectedly. See $PYTHON_LOG_PATH for more details."] }, $callback);
|
||||
xCAT::MsgUtils->message("E", { data => ["Agent exited unexpectedly. See $PYTHON_LOG_PATH for details."] }, $callback);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user