MCPcopy Create free account
hub / github.com/apache/cloudstack / get_process_status

Function get_process_status

tools/marvin/marvin/lib/utils.py:241–253  ·  view source on GitHub ↗

Double hop and returns a command execution result

(hostip, port, username, password, linklocalip, command, hypervisor=None)

Source from the content-addressed store, hash-verified

239 return result
240
241def get_process_status(hostip, port, username, password, linklocalip, command, hypervisor=None):
242 """Double hop and returns a command execution result"""
243
244 ssh_command = _configure_ssh_credentials(hypervisor)
245
246 ssh_command = ssh_command +\
247 "-oUserKnownHostsFile=/dev/null -p 3922 %s %s" % (
248 linklocalip,
249 command)
250 timeout = _configure_timeout(hypervisor)
251
252 result = _execute_ssh_command(hostip, port, username, password, ssh_command)
253 return result
254
255
256def isAlmostEqual(first_digit, second_digit, range=0):

Calls 3

_configure_timeoutFunction · 0.85
_execute_ssh_commandFunction · 0.85