Lines Matching +full:stack +full:- +full:utils
26 from autotest_lib.server import utils
33 from autotest_lib.utils.frozen_chromite.lib import metrics
35 metrics = utils.metrics_mock
50 configured for password-less login, for example through public key
57 serial console available then ordinary SSH-based commands will
101 """ Get the server stack frame status.
106 stack_frames = inspect.stack()
107 stack = ''
110 stack = '%s|%s' % (function_name, stack)
112 return stack[:-1] # Delete the last '|' character
117 command to be executed and the server stack state.
121 # The last few frames on the stack are not useful, so skip them.
122 stack = self._get_server_stack_state(lowest_frames=3, highest_frames=6)
125 command = ('test -x /usr/bin/logger && /usr/bin/logger'
126 ' -t autotest "from [%s] ssh_run: %s"; %s'
127 % (stack, utils.sh_escape(command), command))
136 [utils.sh_quote_word(arg) for arg in args])
151 msg = msg.splitlines()[-1]
174 stack = self._get_server_stack_state(lowest_frames=2,
178 'TLS' if use_tls else 'SSH', command, stack)
192 # Note the TLS as unstable so we do not attempt to re-start it.
201 command += ' "%s"' % utils.sh_escape(arg)
202 full_cmd = '%s "%s %s"' % (ssh_cmd, env, utils.sh_escape(command))
234 # ignore_timeout = True makes utils.run() return None on timeouts
246 # Increment call count first, in case utils.run() throws an
249 result = utils.run(full_cmd, timeout, True, stdout, stderr,
285 ssh_failure_retry_count -= 1
290 stack = self._get_server_stack_state(lowest_frames=1,
294 stack)
298 ssh_failure_retry_count -= 1
333 msg = msg.splitlines()[-1]
348 stdout_tee=utils.TEE_TO_LOGS, stderr_tee=utils.TEE_TO_LOGS,
393 elapsed = time.time() - start_time
395 return self._run(command, timeout - elapsed, ignore_status,
432 cmd_fmt = '( %s ) </dev/null >/dev/null 2>&1 & echo -n $!'
484 - the exit code of the command execution was not 0.
485 - If stderr_err_regexp is found in stderr,
486 - If stdout_err_regexp is found in stdout,
487 - If stderr_ok_regexp is not found in stderr.
488 - If stdout_ok_regexp is not found in stdout,
518 msg = msg.splitlines()[-1]
532 public_key = utils.get_public_key()
534 host.sendline('mkdir -p ~/.ssh')