CloudSlang / cs-content

Ready-Made CloudSlang Flows and Operations
http://www.cloudslang.io/
73 stars 180 forks source link

cluster docker images maintenance flow error #116

Closed levice14 closed 9 years ago

levice14 commented 9 years ago

sporadic failure is back:

CLI output:

- list_machines_public_ip
- - - list_machines_id
- - - get_machine_public_ip
- - - get_machine_public_ip
- - - get_machine_public_ip
- loop_docker_images_maintenance
- - - check_diskspace
- - - - - validate_linux_machine_ssh_access
- - - - - check_disk_space
- - - - - check_availability
- - - clear_unused_docker_images
- - - - - clear_docker_images
- - - - - - - validate_linux_machine_ssh_access
- - - - - - - get_all_images
- - - - - - - get_used_images
- - - - - - - - - validate_linux_machine_ssh_access_op
Command failed java.lang.RuntimeException: Slang Error : Error running: 'clear_docker_images_flow'.
    Error binding output: 'amount_of_images_deleted',
    Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
    Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1

part of the log file:

13450d0[name=machines_public_ip_list,expression=fromInputs['machines_public_ip_list'] + public_ip + ' '], io.cloudslang.lang.entities.bindings.Output@71a598b7[name=error_message,expression=error_message]], TASK_NAME=get_machine_public_ip, operationReturnValues=ReturnValues{result='SUCCESS', outputs={public_ip=188.166.102.7, error_message=}}, taskNavigationValues={SUCCESS=io.cloudslang.lang.entities.ResultNavigation@bb8126cc, FAILURE=io.cloudslang.lang.entities.ResultNavigation@ea081853}, PATH=0/1/0/2, TIMESTAMP=Wed Apr 22 07:54:24 EDT 2015, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:24:736 621032 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Task inputs resolved, TASK_NAME=get_machine_public_ip, PATH=0/1/0/3, TIMESTAMP=Wed Apr 22 07:54:24 EDT 2015, BOUND_INPUTS={privateKeyFile=/root/cloudslang-coreos, username=core, host=188.166.101.252, password=, timeout=6000000, machine_id=322b5d0f}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:24:747 621043 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Post Input binding for operation/flow, PATH=0/1/0/3/0, EXECUTABLE_NAME=get_machine_public_ip, TIMESTAMP=Wed Apr 22 07:54:24 EDT 2015, BOUND_INPUTS={port=22, closeSession=false, host=188.166.101.252, agentForwarding=true, characterSet=UTF-8, pty=false, password=, privateKeyFile=/root/cloudslang-coreos, username=core, arguments=, command=fleetctl --strict-host-key-checking=false  ssh 322b5d0f cat /etc/environment, machine_id=322b5d0f, timeout=6000000}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:25:771 622067 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Preparing to run action JAVA, CALL_ARGUMENTS={port=22, closeSession=false, host=188.166.101.252, agentForwarding=true, characterSet=UTF-8, pty=false, password=, privateKeyFile=/root/cloudslang-coreos, username=core, arguments=, command=fleetctl --strict-host-key-checking=false  ssh 322b5d0f cat /etc/environment, machine_id=322b5d0f, timeout=6000000}, PATH=0/1/0/3/0/0, TIMESTAMP=Wed Apr 22 07:54:24 EDT 2015, TYPE=EVENT_ACTION_START}
2015-04-22 07:54:25:772 622068 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Action performed, PATH=0/1/0/3/0/0, RETURN_VALUES={returnCode=0, returnResult=COREOS_PRIVATE_IPV4=10.133.171.242
COREOS_PUBLIC_IPV4=188.166.101.252
, STDERR=, STDOUT=COREOS_PRIVATE_IPV4=10.133.171.242
COREOS_PUBLIC_IPV4=188.166.101.252
}, TIMESTAMP=Wed Apr 22 07:54:25 EDT 2015, TYPE=EVENT_ACTION_END}
2015-04-22 07:54:25:789 622085 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, executableResults=[io.cloudslang.lang.entities.bindings.Result@6d5bc23c[name=SUCCESS,expression=(returnCode == '0') and (not 'ssh-agent' in STDERR) and (not 'ERROR' in STDERR)], io.cloudslang.lang.entities.bindings.Result@232d293b[name=FAILURE,expression=<null>]], DESCRIPTION=Output binding started, executableOutputs=[io.cloudslang.lang.entities.bindings.Output@69edf287[name=public_ip,expression=returnResult[returnResult.find('COREOS_PUBLIC_IPV4') + len('COREOS_PUBLIC_IPV4') + 1 : -1]
], io.cloudslang.lang.entities.bindings.Output@4cdb366[name=error_message,expression=STDERR if returnCode == '0' else returnResult]], PATH=0/1/0/3/0, EXECUTABLE_NAME=get_machine_public_ip, TIMESTAMP=Wed Apr 22 07:54:25 EDT 2015, actionReturnValues=ReturnValues{result='null', outputs={STDERR=, returnResult=COREOS_PRIVATE_IPV4=10.133.171.242
COREOS_PUBLIC_IPV4=188.166.101.252
, returnCode=0, STDOUT=COREOS_PRIVATE_IPV4=10.133.171.242
COREOS_PUBLIC_IPV4=188.166.101.252
}}, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:25:789 622085 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=SUCCESS, OUTPUTS={public_ip=188.166.101.252, error_message=}, DESCRIPTION=Output binding finished, PATH=0/1/0/3/0, EXECUTABLE_NAME=get_machine_public_ip, TIMESTAMP=Wed Apr 22 07:54:25 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:25:798 622094 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Output binding started, taskPublishValues=[io.cloudslang.lang.entities.bindings.Output@6232b31c[name=machines_public_ip_list,expression=fromInputs['machines_public_ip_list'] + public_ip + ' '], io.cloudslang.lang.entities.bindings.Output@6e8d25a1[name=error_message,expression=error_message]], TASK_NAME=get_machine_public_ip, operationReturnValues=ReturnValues{result='SUCCESS', outputs={public_ip=188.166.101.252, error_message=}}, taskNavigationValues={SUCCESS=io.cloudslang.lang.entities.ResultNavigation@bb8126cc, FAILURE=io.cloudslang.lang.entities.ResultNavigation@ea081853}, PATH=0/1/0/3, TIMESTAMP=Wed Apr 22 07:54:25 EDT 2015, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:25:805 622101 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Task inputs resolved, TASK_NAME=get_machine_public_ip, PATH=0/1/0/4, TIMESTAMP=Wed Apr 22 07:54:25 EDT 2015, BOUND_INPUTS={privateKeyFile=/root/cloudslang-coreos, username=core, host=188.166.101.252, password=, timeout=6000000, machine_id=d8605de0}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:25:816 622112 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Post Input binding for operation/flow, PATH=0/1/0/4/0, EXECUTABLE_NAME=get_machine_public_ip, TIMESTAMP=Wed Apr 22 07:54:25 EDT 2015, BOUND_INPUTS={port=22, closeSession=false, host=188.166.101.252, agentForwarding=true, characterSet=UTF-8, pty=false, password=, privateKeyFile=/root/cloudslang-coreos, username=core, arguments=, command=fleetctl --strict-host-key-checking=false  ssh d8605de0 cat /etc/environment, machine_id=d8605de0, timeout=6000000}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:26:834 623130 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Preparing to run action JAVA, CALL_ARGUMENTS={port=22, closeSession=false, host=188.166.101.252, agentForwarding=true, characterSet=UTF-8, pty=false, password=, privateKeyFile=/root/cloudslang-coreos, username=core, arguments=, command=fleetctl --strict-host-key-checking=false  ssh d8605de0 cat /etc/environment, machine_id=d8605de0, timeout=6000000}, PATH=0/1/0/4/0/0, TIMESTAMP=Wed Apr 22 07:54:25 EDT 2015, TYPE=EVENT_ACTION_START}
2015-04-22 07:54:26:834 623130 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Action performed, PATH=0/1/0/4/0/0, RETURN_VALUES={returnCode=0, returnResult=COREOS_PRIVATE_IPV4=10.133.171.243
COREOS_PUBLIC_IPV4=188.166.102.6
, STDERR=, STDOUT=COREOS_PRIVATE_IPV4=10.133.171.243
COREOS_PUBLIC_IPV4=188.166.102.6
}, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, TYPE=EVENT_ACTION_END}
2015-04-22 07:54:26:846 623142 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, executableResults=[io.cloudslang.lang.entities.bindings.Result@543b695b[name=SUCCESS,expression=(returnCode == '0') and (not 'ssh-agent' in STDERR) and (not 'ERROR' in STDERR)], io.cloudslang.lang.entities.bindings.Result@8820091[name=FAILURE,expression=<null>]], DESCRIPTION=Output binding started, executableOutputs=[io.cloudslang.lang.entities.bindings.Output@ef333f4[name=public_ip,expression=returnResult[returnResult.find('COREOS_PUBLIC_IPV4') + len('COREOS_PUBLIC_IPV4') + 1 : -1]
], io.cloudslang.lang.entities.bindings.Output@d7dfd7[name=error_message,expression=STDERR if returnCode == '0' else returnResult]], PATH=0/1/0/4/0, EXECUTABLE_NAME=get_machine_public_ip, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, actionReturnValues=ReturnValues{result='null', outputs={STDERR=, returnResult=COREOS_PRIVATE_IPV4=10.133.171.243
COREOS_PUBLIC_IPV4=188.166.102.6
, returnCode=0, STDOUT=COREOS_PRIVATE_IPV4=10.133.171.243
COREOS_PUBLIC_IPV4=188.166.102.6
}}, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:26:846 623142 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=SUCCESS, OUTPUTS={public_ip=188.166.102.6, error_message=}, DESCRIPTION=Output binding finished, PATH=0/1/0/4/0, EXECUTABLE_NAME=get_machine_public_ip, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:26:856 623152 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Output binding started, taskPublishValues=[io.cloudslang.lang.entities.bindings.Output@62a4dd9b[name=machines_public_ip_list,expression=fromInputs['machines_public_ip_list'] + public_ip + ' '], io.cloudslang.lang.entities.bindings.Output@35d11db5[name=error_message,expression=error_message]], TASK_NAME=get_machine_public_ip, operationReturnValues=ReturnValues{result='SUCCESS', outputs={public_ip=188.166.102.6, error_message=}}, taskNavigationValues={SUCCESS=io.cloudslang.lang.entities.ResultNavigation@bb8126cc, FAILURE=io.cloudslang.lang.entities.ResultNavigation@ea081853}, PATH=0/1/0/4, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:26:856 623152 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=SUCCESS, OUTPUTS={machines_public_ip_list=188.166.102.7 188.166.101.252 188.166.102.6 , error_message=}, DESCRIPTION=Output binding finished, TASK_NAME=get_machine_public_ip, nextPosition=0, PATH=0/1/0/4, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:26:868 623164 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, executableResults=[io.cloudslang.lang.entities.bindings.Result@46de1f57[name=SUCCESS,expression=<null>], io.cloudslang.lang.entities.bindings.Result@20dbad1a[name=FAILURE,expression=<null>]], DESCRIPTION=Output binding started, executableOutputs=[io.cloudslang.lang.entities.bindings.Output@364196d0[name=machines_public_ip_list,expression=machines_public_ip_list[:-1]], io.cloudslang.lang.entities.bindings.Output@c144d84[name=error_message,expression=error_message]], PATH=0/1/0, EXECUTABLE_NAME=list_machines_public_ip, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, actionReturnValues=ReturnValues{result='SUCCESS', outputs={coreos_host=188.166.101.252, coreos_password=, error_message=, machines_public_ip_list=188.166.102.7 188.166.101.252 188.166.102.6 , private_key_file=/root/cloudslang-coreos, coreos_username=core, machines_id_list=0d5559fb 322b5d0f d8605de0, machine_id=d8605de0, timeout=6000000}}, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:26:868 623164 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=SUCCESS, OUTPUTS={machines_public_ip_list=188.166.102.7 188.166.101.252 188.166.102.6, error_message=}, DESCRIPTION=Output binding finished, PATH=0/1/0, EXECUTABLE_NAME=list_machines_public_ip, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:26:881 623177 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Output binding started, taskPublishValues=[io.cloudslang.lang.entities.bindings.Output@36d0c085[name=machines_public_ip_list,expression=machines_public_ip_list], io.cloudslang.lang.entities.bindings.Output@430f77e0[name=error_message,expression=error_message]], TASK_NAME=list_machines_public_ip, operationReturnValues=ReturnValues{result='SUCCESS', outputs={error_message=, machines_public_ip_list=188.166.102.7 188.166.101.252 188.166.102.6}}, taskNavigationValues={SUCCESS=io.cloudslang.lang.entities.ResultNavigation@5b7d, FAILURE=io.cloudslang.lang.entities.ResultNavigation@ea081853}, PATH=0/1, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:26:881 623177 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=SUCCESS, OUTPUTS={machines_public_ip_list=188.166.102.7 188.166.101.252 188.166.102.6, error_message=}, DESCRIPTION=Output binding finished, TASK_NAME=list_machines_public_ip, nextPosition=4, PATH=0/1, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:26:893 623189 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Task inputs resolved, TASK_NAME=loop_docker_images_maintenance, PATH=0/2, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, BOUND_INPUTS={percentage=0%, docker_username=core, private_key_file=/root/cloudslang-coreos, timeout=6000000, docker_password=, docker_host=188.166.102.7}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:26:897 623193 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Post Input binding for operation/flow, PATH=0/2/0, EXECUTABLE_NAME=docker_images_maintenance, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, BOUND_INPUTS={percentage=0%, docker_username=core, private_key_file=/root/cloudslang-coreos, timeout=6000000, docker_password=, docker_host=188.166.102.7}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:26:900 623196 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Task inputs resolved, TASK_NAME=check_diskspace, PATH=0/2/0/1, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, BOUND_INPUTS={percentage=0%, docker_username=core, private_key_file=/root/cloudslang-coreos, timeout=6000000, docker_password=, docker_host=188.166.102.7}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:26:903 623199 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Post Input binding for operation/flow, PATH=0/2/0/1/0, EXECUTABLE_NAME=diskspace_health_check, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, BOUND_INPUTS={percentage=0%, docker_username=core, private_key_file=/root/cloudslang-coreos, timeout=6000000, docker_password=, docker_host=188.166.102.7}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:26:913 623209 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Task inputs resolved, TASK_NAME=validate_linux_machine_ssh_access, PATH=0/2/0/1/0/1, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, BOUND_INPUTS={privateKeyFile=/root/cloudslang-coreos, username=core, host=188.166.102.7, password=, timeout=6000000}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:26:935 623231 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Post Input binding for operation/flow, PATH=0/2/0/1/0/1/0, EXECUTABLE_NAME=validate_linux_machine_ssh_access, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, BOUND_INPUTS={privateKeyFile=/root/cloudslang-coreos, port=22, closeSession=false, username=core, arguments=, host=188.166.102.7, characterSet=UTF-8, pty=false, command= , password=, timeout=6000000}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:28:113 624409 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Preparing to run action JAVA, CALL_ARGUMENTS={privateKeyFile=/root/cloudslang-coreos, port=22, closeSession=false, username=core, arguments=, host=188.166.102.7, characterSet=UTF-8, pty=false, command= , password=, timeout=6000000}, PATH=0/2/0/1/0/1/0/0, TIMESTAMP=Wed Apr 22 07:54:26 EDT 2015, TYPE=EVENT_ACTION_START}
2015-04-22 07:54:28:114 624410 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Action performed, PATH=0/2/0/1/0/1/0/0, RETURN_VALUES={returnCode=0, returnResult=, STDERR=, STDOUT=}, TIMESTAMP=Wed Apr 22 07:54:28 EDT 2015, TYPE=EVENT_ACTION_END}
2015-04-22 07:54:28:125 624421 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, executableResults=[io.cloudslang.lang.entities.bindings.Result@ceadd60[name=SUCCESS,expression=returnCode == '0' and (not 'Error' in STDERR)], io.cloudslang.lang.entities.bindings.Result@f6bd040[name=FAILURE,expression=<null>]], DESCRIPTION=Output binding started, executableOutputs=[io.cloudslang.lang.entities.bindings.Output@6f3521a8[name=response,expression='' if 'STDOUT' not in locals() else STDOUT], io.cloudslang.lang.entities.bindings.Output@934d5a2[name=error_message,expression='' if 'STDERR' not in locals() else STDERR if returnCode == '0' else returnResult]], PATH=0/2/0/1/0/1/0, EXECUTABLE_NAME=validate_linux_machine_ssh_access, TIMESTAMP=Wed Apr 22 07:54:28 EDT 2015, actionReturnValues=ReturnValues{result='null', outputs={STDERR=, returnResult=, returnCode=0, STDOUT=}}, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:28:125 624421 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=SUCCESS, OUTPUTS={response=, error_message=}, DESCRIPTION=Output binding finished, PATH=0/2/0/1/0/1/0, EXECUTABLE_NAME=validate_linux_machine_ssh_access, TIMESTAMP=Wed Apr 22 07:54:28 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:28:128 624424 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Output binding started, taskPublishValues=[], TASK_NAME=validate_linux_machine_ssh_access, operationReturnValues=ReturnValues{result='SUCCESS', outputs={response=, error_message=}}, taskNavigationValues={SUCCESS=io.cloudslang.lang.entities.ResultNavigation@5b7d, FAILURE=io.cloudslang.lang.entities.ResultNavigation@ea081853}, PATH=0/2/0/1/0/1, TIMESTAMP=Wed Apr 22 07:54:28 EDT 2015, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:28:128 624424 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=SUCCESS, OUTPUTS={}, DESCRIPTION=Output binding finished, TASK_NAME=validate_linux_machine_ssh_access, nextPosition=4, PATH=0/2/0/1/0/1, TIMESTAMP=Wed Apr 22 07:54:28 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:28:135 624431 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Task inputs resolved, TASK_NAME=check_disk_space, PATH=0/2/0/1/0/2, TIMESTAMP=Wed Apr 22 07:54:28 EDT 2015, BOUND_INPUTS={privateKeyFile=/root/cloudslang-coreos, username=core, host=188.166.102.7, password=, timeout=6000000}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:28:144 624440 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Post Input binding for operation/flow, PATH=0/2/0/1/0/2/0, EXECUTABLE_NAME=check_linux_disk_space, TIMESTAMP=Wed Apr 22 07:54:28 EDT 2015, BOUND_INPUTS={privateKeyFile=/root/cloudslang-coreos, port=22, closeSession=false, username=core, arguments=, host=188.166.102.7, characterSet=UTF-8, pty=false, command=df -kh | grep -v "Filesystem" | awk 'NR==1{print $5}', password=, timeout=6000000}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:29:161 625457 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Preparing to run action JAVA, CALL_ARGUMENTS={privateKeyFile=/root/cloudslang-coreos, port=22, closeSession=false, username=core, arguments=, host=188.166.102.7, characterSet=UTF-8, pty=false, command=df -kh | grep -v "Filesystem" | awk 'NR==1{print $5}', password=, timeout=6000000}, PATH=0/2/0/1/0/2/0/0, TIMESTAMP=Wed Apr 22 07:54:28 EDT 2015, TYPE=EVENT_ACTION_START}
2015-04-22 07:54:29:162 625458 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Action performed, PATH=0/2/0/1/0/2/0/0, RETURN_VALUES={returnCode=0, returnResult=0%
, STDERR=, STDOUT=0%
}, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, TYPE=EVENT_ACTION_END}
2015-04-22 07:54:29:171 625467 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, executableResults=[io.cloudslang.lang.entities.bindings.Result@4ae410ca[name=SUCCESS,expression=returnCode == '0' and (not 'Error' in STDERR)], io.cloudslang.lang.entities.bindings.Result@430a642f[name=FAILURE,expression=<null>]], DESCRIPTION=Output binding started, executableOutputs=[io.cloudslang.lang.entities.bindings.Output@5f376c0b[name=disk_space,expression='' if 'STDOUT' not in locals() else STDOUT], io.cloudslang.lang.entities.bindings.Output@2f967703[name=error_message,expression='' if 'STDERR' not in locals() else STDERR if returnCode == '0' else returnResult]], PATH=0/2/0/1/0/2/0, EXECUTABLE_NAME=check_linux_disk_space, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, actionReturnValues=ReturnValues{result='null', outputs={STDERR=, returnResult=0%
, returnCode=0, STDOUT=0%
}}, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:29:171 625467 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=SUCCESS, OUTPUTS={disk_space=0%
, error_message=}, DESCRIPTION=Output binding finished, PATH=0/2/0/1/0/2/0, EXECUTABLE_NAME=check_linux_disk_space, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:29:176 625472 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Output binding started, taskPublishValues=[io.cloudslang.lang.entities.bindings.Output@3c49806a[name=disk_space,expression=disk_space]], TASK_NAME=check_disk_space, operationReturnValues=ReturnValues{result='SUCCESS', outputs={error_message=, disk_space=0%
}}, taskNavigationValues={SUCCESS=io.cloudslang.lang.entities.ResultNavigation@5bc7, FAILURE=io.cloudslang.lang.entities.ResultNavigation@ea081853}, PATH=0/2/0/1/0/2, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:29:176 625472 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=SUCCESS, OUTPUTS={disk_space=0%
}, DESCRIPTION=Output binding finished, TASK_NAME=check_disk_space, nextPosition=6, PATH=0/2/0/1/0/2, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:29:181 625477 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Task inputs resolved, TASK_NAME=check_availability, PATH=0/2/0/1/0/3, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, BOUND_INPUTS={first_percentage=0%, second_percentage=0%}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:29:184 625480 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Post Input binding for operation/flow, PATH=0/2/0/1/0/3/0, EXECUTABLE_NAME=less_than_percentage, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, BOUND_INPUTS={first_percentage=0%, second_percentage=0%}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:29:196 625492 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Preparing to run action PYTHON, CALL_ARGUMENTS={}, PATH=0/2/0/1/0/3/0/0, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, TYPE=EVENT_ACTION_START}
2015-04-22 07:54:29:196 625492 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Action performed, PATH=0/2/0/1/0/3/0/0, RETURN_VALUES={result=false, first_percentage=0%, error_message=, second_percentage=0%, second_percentage_nr=0, first_percentage_nr=0, int_value1=0, int_value2=0}, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, TYPE=EVENT_ACTION_END}
2015-04-22 07:54:29:213 625509 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, executableResults=[io.cloudslang.lang.entities.bindings.Result@65f5d6e0[name=LESS,expression=error_message == "" and result], io.cloudslang.lang.entities.bindings.Result@6eee406b[name=MORE,expression=error_message == "" and not result], io.cloudslang.lang.entities.bindings.Result@5bc769b2[name=FAILURE,expression=<null>]], DESCRIPTION=Output binding started, executableOutputs=[io.cloudslang.lang.entities.bindings.Output@ec5431[name=error_message,expression=error_message]], PATH=0/2/0/1/0/3/0, EXECUTABLE_NAME=less_than_percentage, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, actionReturnValues=ReturnValues{result='null', outputs={result=false, first_percentage=0%, error_message=, second_percentage=0%, second_percentage_nr=0, first_percentage_nr=0, int_value1=0, int_value2=0}}, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:29:213 625509 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=MORE, OUTPUTS={error_message=}, DESCRIPTION=Output binding finished, PATH=0/2/0/1/0/3/0, EXECUTABLE_NAME=less_than_percentage, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:29:218 625514 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Output binding started, taskPublishValues=[], TASK_NAME=check_availability, operationReturnValues=ReturnValues{result='MORE', outputs={error_message=}}, taskNavigationValues={FAILURE=io.cloudslang.lang.entities.ResultNavigation@ea081853, MORE=io.cloudslang.lang.entities.ResultNavigation@e27c044f, LESS=io.cloudslang.lang.entities.ResultNavigation@bb8126cc}, PATH=0/2/0/1/0/3, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:29:218 625514 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=NOT_ENOUGH_DISKSPACE, OUTPUTS={}, DESCRIPTION=Output binding finished, TASK_NAME=check_availability, nextPosition=0, PATH=0/2/0/1/0/3, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:29:225 625521 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, executableResults=[io.cloudslang.lang.entities.bindings.Result@46011611[name=SUCCESS,expression=<null>], io.cloudslang.lang.entities.bindings.Result@714fd9fe[name=FAILURE,expression=<null>], io.cloudslang.lang.entities.bindings.Result@3170ecd0[name=NOT_ENOUGH_DISKSPACE,expression=<null>]], DESCRIPTION=Output binding started, executableOutputs=[], PATH=0/2/0/1/0, EXECUTABLE_NAME=diskspace_health_check, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, actionReturnValues=ReturnValues{result='NOT_ENOUGH_DISKSPACE', outputs={percentage=0%, docker_username=core, private_key_file=/root/cloudslang-coreos, disk_space=0%
, timeout=6000000, docker_password=, docker_host=188.166.102.7}}, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:29:226 625522 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=NOT_ENOUGH_DISKSPACE, OUTPUTS={}, DESCRIPTION=Output binding finished, PATH=0/2/0/1/0, EXECUTABLE_NAME=diskspace_health_check, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:29:232 625528 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Output binding started, taskPublishValues=[], TASK_NAME=check_diskspace, operationReturnValues=ReturnValues{result='NOT_ENOUGH_DISKSPACE', outputs={}}, taskNavigationValues={NOT_ENOUGH_DISKSPACE=io.cloudslang.lang.entities.ResultNavigation@5b7d, FAILURE=io.cloudslang.lang.entities.ResultNavigation@ea081853, SUCCESS=io.cloudslang.lang.entities.ResultNavigation@bb8126cc}, PATH=0/2/0/1, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:29:232 625528 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=NOT_ENOUGH_DISKSPACE, OUTPUTS={}, DESCRIPTION=Output binding finished, TASK_NAME=check_diskspace, nextPosition=4, PATH=0/2/0/1, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:29:240 625536 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Task inputs resolved, TASK_NAME=clear_unused_docker_images, PATH=0/2/0/2, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, BOUND_INPUTS={docker_username=core, private_key_file=/root/cloudslang-coreos, timeout=6000000, docker_password=, docker_host=188.166.102.7}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:29:243 625539 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Post Input binding for operation/flow, PATH=0/2/0/2/0, EXECUTABLE_NAME=clear_unused_docker_images, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, BOUND_INPUTS={docker_username=core, private_key_file=/root/cloudslang-coreos, timeout=6000000, docker_password=, docker_host=188.166.102.7}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:29:247 625543 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Task inputs resolved, TASK_NAME=clear_docker_images, PATH=0/2/0/2/0/1, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, BOUND_INPUTS={docker_username=core, private_key_file=/root/cloudslang-coreos, timeout=6000000, docker_password=, docker_host=188.166.102.7}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:29:252 625548 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Post Input binding for operation/flow, PATH=0/2/0/2/0/1/0, EXECUTABLE_NAME=clear_docker_images_flow, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, BOUND_INPUTS={docker_username=core, private_key_file=/root/cloudslang-coreos, all_parent_images=, timeout=6000000, docker_password=, docker_host=188.166.102.7}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:29:267 625563 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Task inputs resolved, TASK_NAME=validate_linux_machine_ssh_access, PATH=0/2/0/2/0/1/0/1, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, BOUND_INPUTS={privateKeyFile=/root/cloudslang-coreos, username=core, host=188.166.102.7, password=, timeout=6000000}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:29:277 625573 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Post Input binding for operation/flow, PATH=0/2/0/2/0/1/0/1/0, EXECUTABLE_NAME=validate_linux_machine_ssh_access, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, BOUND_INPUTS={privateKeyFile=/root/cloudslang-coreos, port=22, closeSession=false, username=core, arguments=, host=188.166.102.7, characterSet=UTF-8, pty=false, command= , password=, timeout=6000000}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:30:447 626743 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Preparing to run action JAVA, CALL_ARGUMENTS={privateKeyFile=/root/cloudslang-coreos, port=22, closeSession=false, username=core, arguments=, host=188.166.102.7, characterSet=UTF-8, pty=false, command= , password=, timeout=6000000}, PATH=0/2/0/2/0/1/0/1/0/0, TIMESTAMP=Wed Apr 22 07:54:29 EDT 2015, TYPE=EVENT_ACTION_START}
2015-04-22 07:54:30:447 626743 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Action performed, PATH=0/2/0/2/0/1/0/1/0/0, RETURN_VALUES={returnCode=0, returnResult=, STDERR=, STDOUT=}, TIMESTAMP=Wed Apr 22 07:54:30 EDT 2015, TYPE=EVENT_ACTION_END}
2015-04-22 07:54:30:458 626754 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, executableResults=[io.cloudslang.lang.entities.bindings.Result@63c15a04[name=SUCCESS,expression=returnCode == '0' and (not 'Error' in STDERR)], io.cloudslang.lang.entities.bindings.Result@2afcefc6[name=FAILURE,expression=<null>]], DESCRIPTION=Output binding started, executableOutputs=[io.cloudslang.lang.entities.bindings.Output@43e1c636[name=response,expression='' if 'STDOUT' not in locals() else STDOUT], io.cloudslang.lang.entities.bindings.Output@1b9c260b[name=error_message,expression='' if 'STDERR' not in locals() else STDERR if returnCode == '0' else returnResult]], PATH=0/2/0/2/0/1/0/1/0, EXECUTABLE_NAME=validate_linux_machine_ssh_access, TIMESTAMP=Wed Apr 22 07:54:30 EDT 2015, actionReturnValues=ReturnValues{result='null', outputs={STDERR=, returnResult=, returnCode=0, STDOUT=}}, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:30:458 626754 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=SUCCESS, OUTPUTS={response=, error_message=}, DESCRIPTION=Output binding finished, PATH=0/2/0/2/0/1/0/1/0, EXECUTABLE_NAME=validate_linux_machine_ssh_access, TIMESTAMP=Wed Apr 22 07:54:30 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:30:464 626760 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Output binding started, taskPublishValues=[], TASK_NAME=validate_linux_machine_ssh_access, operationReturnValues=ReturnValues{result='SUCCESS', outputs={response=, error_message=}}, taskNavigationValues={SUCCESS=io.cloudslang.lang.entities.ResultNavigation@5b7d, FAILURE=io.cloudslang.lang.entities.ResultNavigation@ea081853}, PATH=0/2/0/2/0/1/0/1, TIMESTAMP=Wed Apr 22 07:54:30 EDT 2015, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:30:464 626760 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=SUCCESS, OUTPUTS={}, DESCRIPTION=Output binding finished, TASK_NAME=validate_linux_machine_ssh_access, nextPosition=4, PATH=0/2/0/2/0/1/0/1, TIMESTAMP=Wed Apr 22 07:54:30 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:30:472 626768 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Task inputs resolved, TASK_NAME=get_all_images, PATH=0/2/0/2/0/1/0/2, TIMESTAMP=Wed Apr 22 07:54:30 EDT 2015, BOUND_INPUTS={privateKeyFile=/root/cloudslang-coreos, username=core, host=188.166.102.7, password=, timeout=6000000}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:30:483 626779 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Post Input binding for operation/flow, PATH=0/2/0/2/0/1/0/2/0, EXECUTABLE_NAME=get_all_images, TIMESTAMP=Wed Apr 22 07:54:30 EDT 2015, BOUND_INPUTS={privateKeyFile=/root/cloudslang-coreos, port=22, closeSession=false, username=core, arguments=, host=188.166.102.7, characterSet=UTF-8, pty=false, command=docker images | awk '{print $1 ":" $2}', password=, timeout=6000000}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:31:506 627802 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Preparing to run action JAVA, CALL_ARGUMENTS={privateKeyFile=/root/cloudslang-coreos, port=22, closeSession=false, username=core, arguments=, host=188.166.102.7, characterSet=UTF-8, pty=false, command=docker images | awk '{print $1 ":" $2}', password=, timeout=6000000}, PATH=0/2/0/2/0/1/0/2/0/0, TIMESTAMP=Wed Apr 22 07:54:30 EDT 2015, TYPE=EVENT_ACTION_START}
2015-04-22 07:54:31:507 627803 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Action performed, PATH=0/2/0/2/0/1/0/2/0/0, RETURN_VALUES={returnCode=0, returnResult=REPOSITORY:TAG
, STDERR=, STDOUT=REPOSITORY:TAG
}, TIMESTAMP=Wed Apr 22 07:54:31 EDT 2015, TYPE=EVENT_ACTION_END}
2015-04-22 07:54:31:518 627814 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, executableResults=[io.cloudslang.lang.entities.bindings.Result@2a70f6c9[name=SUCCESS,expression=returnCode == '0' and (not 'Error' in STDERR)], io.cloudslang.lang.entities.bindings.Result@5e5a1be3[name=FAILURE,expression=<null>]], DESCRIPTION=Output binding started, executableOutputs=[io.cloudslang.lang.entities.bindings.Output@6ddd0479[name=image_list,expression=returnResult.replace("\n"," ").replace("<none>:<none> ","").replace("REPOSITORY:TAG ","")]], PATH=0/2/0/2/0/1/0/2/0, EXECUTABLE_NAME=get_all_images, TIMESTAMP=Wed Apr 22 07:54:31 EDT 2015, actionReturnValues=ReturnValues{result='null', outputs={STDERR=, returnResult=REPOSITORY:TAG
, returnCode=0, STDOUT=REPOSITORY:TAG
}}, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:31:518 627814 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=SUCCESS, OUTPUTS={image_list=}, DESCRIPTION=Output binding finished, PATH=0/2/0/2/0/1/0/2/0, EXECUTABLE_NAME=get_all_images, TIMESTAMP=Wed Apr 22 07:54:31 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:31:522 627818 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Output binding started, taskPublishValues=[io.cloudslang.lang.entities.bindings.Output@346ede61[name=all_images_list,expression=image_list]], TASK_NAME=get_all_images, operationReturnValues=ReturnValues{result='SUCCESS', outputs={image_list=}}, taskNavigationValues={SUCCESS=io.cloudslang.lang.entities.ResultNavigation@5bc7, FAILURE=io.cloudslang.lang.entities.ResultNavigation@ea081853}, PATH=0/2/0/2/0/1/0/2, TIMESTAMP=Wed Apr 22 07:54:31 EDT 2015, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:31:523 627819 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=SUCCESS, OUTPUTS={all_images_list=}, DESCRIPTION=Output binding finished, TASK_NAME=get_all_images, nextPosition=6, PATH=0/2/0/2/0/1/0/2, TIMESTAMP=Wed Apr 22 07:54:31 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:31:526 627822 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Task inputs resolved, TASK_NAME=get_used_images, PATH=0/2/0/2/0/1/0/3, TIMESTAMP=Wed Apr 22 07:54:31 EDT 2015, BOUND_INPUTS={docker_username=core, private_key_file=/root/cloudslang-coreos, timeout=6000000, docker_password=, docker_host=188.166.102.7}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:31:529 627825 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Post Input binding for operation/flow, PATH=0/2/0/2/0/1/0/3/0, EXECUTABLE_NAME=get_used_images_flow, TIMESTAMP=Wed Apr 22 07:54:31 EDT 2015, BOUND_INPUTS={docker_username=core, private_key_file=/root/cloudslang-coreos, timeout=6000000, docker_password=, docker_host=188.166.102.7}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:31:537 627833 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Task inputs resolved, TASK_NAME=validate_linux_machine_ssh_access_op, PATH=0/2/0/2/0/1/0/3/0/1, TIMESTAMP=Wed Apr 22 07:54:31 EDT 2015, BOUND_INPUTS={privateKeyFile=/root/cloudslang-coreos, username=core, host=188.166.102.7, password=, timeout=6000000}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:31:546 627842 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_INPUT_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Post Input binding for operation/flow, PATH=0/2/0/2/0/1/0/3/0/1/0, EXECUTABLE_NAME=validate_linux_machine_ssh_access, TIMESTAMP=Wed Apr 22 07:54:31 EDT 2015, BOUND_INPUTS={privateKeyFile=/root/cloudslang-coreos, port=22, closeSession=false, username=core, arguments=, host=188.166.102.7, characterSet=UTF-8, pty=false, command= , password=, timeout=6000000}, TYPE=EVENT_INPUT_END}
2015-04-22 07:54:32:562 628858 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Preparing to run action JAVA, CALL_ARGUMENTS={privateKeyFile=/root/cloudslang-coreos, port=22, closeSession=false, username=core, arguments=, host=188.166.102.7, characterSet=UTF-8, pty=false, command= , password=, timeout=6000000}, PATH=0/2/0/2/0/1/0/3/0/1/0/0, TIMESTAMP=Wed Apr 22 07:54:31 EDT 2015, TYPE=EVENT_ACTION_START}
2015-04-22 07:54:32:562 628858 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_ACTION_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Action performed, PATH=0/2/0/2/0/1/0/3/0/1/0/0, RETURN_VALUES={returnCode=-1, returnResult=, STDERR=, STDOUT=}, TIMESTAMP=Wed Apr 22 07:54:32 EDT 2015, TYPE=EVENT_ACTION_END}
2015-04-22 07:54:32:577 628873 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, executableResults=[io.cloudslang.lang.entities.bindings.Result@6836b284[name=SUCCESS,expression=returnCode == '0' and (not 'Error' in STDERR)], io.cloudslang.lang.entities.bindings.Result@5f022d8f[name=FAILURE,expression=<null>]], DESCRIPTION=Output binding started, executableOutputs=[io.cloudslang.lang.entities.bindings.Output@7fd3804[name=response,expression='' if 'STDOUT' not in locals() else STDOUT], io.cloudslang.lang.entities.bindings.Output@16892b5[name=error_message,expression='' if 'STDERR' not in locals() else STDERR if returnCode == '0' else returnResult]], PATH=0/2/0/2/0/1/0/3/0/1/0, EXECUTABLE_NAME=validate_linux_machine_ssh_access, TIMESTAMP=Wed Apr 22 07:54:32 EDT 2015, actionReturnValues=ReturnValues{result='null', outputs={STDERR=, returnResult=, returnCode=-1, STDOUT=}}, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:32:577 628873 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=FAILURE, OUTPUTS={response=, error_message=}, DESCRIPTION=Output binding finished, PATH=0/2/0/2/0/1/0/3/0/1/0, EXECUTABLE_NAME=validate_linux_machine_ssh_access, TIMESTAMP=Wed Apr 22 07:54:32 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:32:582 628878 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Output binding started, taskPublishValues=[], TASK_NAME=validate_linux_machine_ssh_access_op, operationReturnValues=ReturnValues{result='FAILURE', outputs={response=, error_message=}}, taskNavigationValues={SUCCESS=io.cloudslang.lang.entities.ResultNavigation@5b7d, FAILURE=io.cloudslang.lang.entities.ResultNavigation@ea081853}, PATH=0/2/0/2/0/1/0/3/0/1, TIMESTAMP=Wed Apr 22 07:54:32 EDT 2015, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:32:582 628878 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=FAILURE, OUTPUTS={}, DESCRIPTION=Output binding finished, TASK_NAME=validate_linux_machine_ssh_access_op, nextPosition=0, PATH=0/2/0/2/0/1/0/3/0/1, TIMESTAMP=Wed Apr 22 07:54:32 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:32:588 628884 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, executableResults=[io.cloudslang.lang.entities.bindings.Result@3555fdfc[name=SUCCESS,expression=<null>], io.cloudslang.lang.entities.bindings.Result@2095c6bf[name=FAILURE,expression=<null>]], DESCRIPTION=Output binding started, executableOutputs=[io.cloudslang.lang.entities.bindings.Output@492b364f[name=used_images_list,expression=used_images_list]], PATH=0/2/0/2/0/1/0/3/0, EXECUTABLE_NAME=get_used_images_flow, TIMESTAMP=Wed Apr 22 07:54:32 EDT 2015, actionReturnValues=ReturnValues{result='FAILURE', outputs={docker_username=core, private_key_file=/root/cloudslang-coreos, timeout=6000000, docker_password=, docker_host=188.166.102.7}}, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:32:588 628884 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=FAILURE, OUTPUTS={used_images_list=null}, DESCRIPTION=Output binding finished, PATH=0/2/0/2/0/1/0/3/0, EXECUTABLE_NAME=get_used_images_flow, TIMESTAMP=Wed Apr 22 07:54:32 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:32:595 628891 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, DESCRIPTION=Output binding started, taskPublishValues=[io.cloudslang.lang.entities.bindings.Output@3af33e2d[name=used_images_list,expression=used_images_list]], TASK_NAME=get_used_images, operationReturnValues=ReturnValues{result='FAILURE', outputs={used_images_list=null}}, taskNavigationValues={SUCCESS=io.cloudslang.lang.entities.ResultNavigation@5c11, FAILURE=io.cloudslang.lang.entities.ResultNavigation@ea081853}, PATH=0/2/0/2/0/1/0/3, TIMESTAMP=Wed Apr 22 07:54:32 EDT 2015, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:32:596 628892 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_END Data is: {EXECUTIONID=101600008, RESULT=FAILURE, OUTPUTS={used_images_list=null}, DESCRIPTION=Output binding finished, TASK_NAME=get_used_images, nextPosition=0, PATH=0/2/0/2/0/1/0/3, TIMESTAMP=Wed Apr 22 07:54:32 EDT 2015, TYPE=EVENT_OUTPUT_END}
2015-04-22 07:54:32:605 628901 [WorkerExecutionThread-1_101600008] ERROR io.cloudslang.lang.runtime.steps.ExecutableSteps  - There was an error running the finish executable execution step of: 'clear_docker_images_flow'.
        Error is: Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
2015-04-22 07:54:32:606 628902 [WorkerExecutionThread-1_101600008] ERROR io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl  - Failed to run the action! Class: io.cloudslang.lang.runtime.steps.ExecutableSteps, method: finishExecutable, reason: Error running: 'clear_docker_images_flow'.
        Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:62)
        at io.cloudslang.worker.execution.services.ExecutionServiceImpl.executeStep(ExecutionServiceImpl.java:316)
        at io.cloudslang.worker.execution.services.ExecutionServiceImpl.execute(ExecutionServiceImpl.java:78)
        at io.cloudslang.worker.management.services.SimpleExecutionRunnable.executeRegularStep(SimpleExecutionRunnable.java:147)
        at io.cloudslang.worker.management.services.SimpleExecutionRunnable.run(SimpleExecutionRunnable.java:111)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at io.cloudslang.worker.management.services.WorkerThreadFactory$1.run(WorkerThreadFactory.java:33)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Error running: 'clear_docker_images_flow'.
        Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at io.cloudslang.lang.runtime.steps.ExecutableSteps.finishExecutable(ExecutableSteps.java:147)
        ... 14 more
Caused by: java.lang.RuntimeException: Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at io.cloudslang.lang.runtime.bindings.OutputsBinding.bindOutputs(OutputsBinding.java:64)
        at io.cloudslang.lang.runtime.steps.ExecutableSteps.finishExecutable(ExecutableSteps.java:124)
        ... 14 more
Caused by: java.lang.RuntimeException: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at io.cloudslang.lang.runtime.bindings.ScriptEvaluator.evalExpr(ScriptEvaluator.java:48)
        at io.cloudslang.lang.runtime.bindings.OutputsBinding.bindOutputs(OutputsBinding.java:62)
        ... 15 more
Caused by: javax.script.ScriptException: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at io.cloudslang.lang.runtime.bindings.ScriptEvaluator.evalExpr(ScriptEvaluator.java:47)
        ... 16 more
Caused by: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at org.python.jsr223.PyScriptEngine.scriptException(PyScriptEngine.java:202)
        at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:42)
        at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:31)
        at io.cloudslang.lang.runtime.bindings.ScriptEvaluator.evalExpr(ScriptEvaluator.java:45)
        ... 16 more
Caused by: Traceback (most recent call last):
  File "<script>", line 1, in <module>
NameError: name 'amount_of_images' is not defined

        at org.python.core.Py.NameError(Py.java:284)
        at org.python.core.PyFrame.getname(PyFrame.java:257)
        at org.python.pycode._pyx839.f$0(<script>:1)
        at org.python.pycode._pyx839.call_function(<script>)
        at org.python.core.PyTableCode.call(PyTableCode.java:167)
        at org.python.core.PyCode.call(PyCode.java:18)
        at org.python.core.Py.runCode(Py.java:1386)
        at org.python.core.__builtin__.eval(__builtin__.java:497)
        at org.python.core.__builtin__.eval(__builtin__.java:501)
        at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:259)
        at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:40)
        ... 18 more
2015-04-22 07:54:32:619 628915 [WorkerExecutionThread-1_101600008] ERROR io.cloudslang.worker.execution.services.ExecutionServiceImpl  - Error occurred during operation execution.  Execution id: 101600008
io.cloudslang.score.exceptions.FlowExecutionException: Error running: 'clear_docker_images_flow'.
        Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:73)
        at io.cloudslang.worker.execution.services.ExecutionServiceImpl.executeStep(ExecutionServiceImpl.java:316)
        at io.cloudslang.worker.execution.services.ExecutionServiceImpl.execute(ExecutionServiceImpl.java:78)
        at io.cloudslang.worker.management.services.SimpleExecutionRunnable.executeRegularStep(SimpleExecutionRunnable.java:147)
        at io.cloudslang.worker.management.services.SimpleExecutionRunnable.run(SimpleExecutionRunnable.java:111)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at io.cloudslang.worker.management.services.WorkerThreadFactory$1.run(WorkerThreadFactory.java:33)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:62)
        ... 10 more
Caused by: java.lang.RuntimeException: Error running: 'clear_docker_images_flow'.
        Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at io.cloudslang.lang.runtime.steps.ExecutableSteps.finishExecutable(ExecutableSteps.java:147)
        ... 14 more
Caused by: java.lang.RuntimeException: Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at io.cloudslang.lang.runtime.bindings.OutputsBinding.bindOutputs(OutputsBinding.java:64)
        at io.cloudslang.lang.runtime.steps.ExecutableSteps.finishExecutable(ExecutableSteps.java:124)
        ... 14 more
Caused by: java.lang.RuntimeException: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at io.cloudslang.lang.runtime.bindings.ScriptEvaluator.evalExpr(ScriptEvaluator.java:48)
        at io.cloudslang.lang.runtime.bindings.OutputsBinding.bindOutputs(OutputsBinding.java:62)
        ... 15 more
Caused by: javax.script.ScriptException: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at io.cloudslang.lang.runtime.bindings.ScriptEvaluator.evalExpr(ScriptEvaluator.java:47)
        ... 16 more
Caused by: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at org.python.jsr223.PyScriptEngine.scriptException(PyScriptEngine.java:202)
        at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:42)
        at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:31)
        at io.cloudslang.lang.runtime.bindings.ScriptEvaluator.evalExpr(ScriptEvaluator.java:45)
        ... 16 more
Caused by: Traceback (most recent call last):
  File "<script>", line 1, in <module>
NameError: name 'amount_of_images' is not defined

        at org.python.core.Py.NameError(Py.java:284)
        at org.python.core.PyFrame.getname(PyFrame.java:257)
        at org.python.pycode._pyx839.f$0(<script>:1)
        at org.python.pycode._pyx839.call_function(<script>)
        at org.python.core.PyTableCode.call(PyTableCode.java:167)
        at org.python.core.PyCode.call(PyCode.java:18)
        at org.python.core.Py.runCode(Py.java:1386)
        at org.python.core.__builtin__.eval(__builtin__.java:497)
        at org.python.core.__builtin__.eval(__builtin__.java:501)
        at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:259)
        at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:40)
        ... 18 more
2015-04-22 07:54:32:621 628917 [WorkerExecutionThread-1_101600008] ERROR io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl  - Failed to run the action! Class: io.cloudslang.lang.runtime.navigations.Navigations, method: navigate, reason: Error running: 'clear_docker_images_flow'.
        Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:62)
        at io.cloudslang.worker.execution.services.ExecutionServiceImpl.navigate(ExecutionServiceImpl.java:355)
        at io.cloudslang.worker.execution.services.ExecutionServiceImpl.execute(ExecutionServiceImpl.java:80)
        at io.cloudslang.worker.management.services.SimpleExecutionRunnable.executeRegularStep(SimpleExecutionRunnable.java:147)
        at io.cloudslang.worker.management.services.SimpleExecutionRunnable.run(SimpleExecutionRunnable.java:111)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at io.cloudslang.worker.management.services.WorkerThreadFactory$1.run(WorkerThreadFactory.java:33)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Error running: 'clear_docker_images_flow'.
        Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at io.cloudslang.lang.runtime.navigations.Navigations.navigate(Navigations.java:44)
        ... 14 more
2015-04-22 07:54:32:621 628917 [WorkerExecutionThread-1_101600008] ERROR io.cloudslang.worker.execution.services.ExecutionServiceImpl  - Error occurred during navigation execution. Execution id: 101600008
io.cloudslang.score.exceptions.FlowExecutionException: Error running: 'clear_docker_images_flow'.
        Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:73)
        at io.cloudslang.worker.execution.services.ExecutionServiceImpl.navigate(ExecutionServiceImpl.java:355)
        at io.cloudslang.worker.execution.services.ExecutionServiceImpl.execute(ExecutionServiceImpl.java:80)
        at io.cloudslang.worker.management.services.SimpleExecutionRunnable.executeRegularStep(SimpleExecutionRunnable.java:147)
        at io.cloudslang.worker.management.services.SimpleExecutionRunnable.run(SimpleExecutionRunnable.java:111)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at io.cloudslang.worker.management.services.WorkerThreadFactory$1.run(WorkerThreadFactory.java:33)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at io.cloudslang.worker.execution.reflection.ReflectionAdapterImpl.executeControlAction(ReflectionAdapterImpl.java:62)
        ... 10 more
Caused by: java.lang.RuntimeException: Error running: 'clear_docker_images_flow'.
        Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1
        at io.cloudslang.lang.runtime.navigations.Navigations.navigate(Navigations.java:44)
        ... 14 more
2015-04-22 07:54:32:622 628918 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: SCORE_ERROR_EVENT Data is: {systemContext={BEGIN_STEPS_MAP={io.cloudslang.docker.maintenance.diskspace_health_check=1, io.cloudslang.docker.images.inspect_image=1, io.cloudslang.base.strings.string_equals=1, io.cloudslang.coreos.list_machines_public_ip=1, io.cloudslang.docker.images.clear_docker_images_flow=1, io.cloudslang.coreos.get_machine_public_ip=1, io.cloudslang.docker.images.clear_docker_images=1, io.cloudslang.docker.images.clear_docker_dangling_images_flow=1, io.cloudslang.coreos.list_machines_id=1, io.cloudslang.base.lists.subtract_sets=1, io.cloudslang.docker.images.get_used_images_flow=1, io.cloudslang.docker.images.get_all_images=1, io.cloudslang.docker.images.get_used_images=1, io.cloudslang.base.os.linux.check_linux_disk_space=1, io.cloudslang.docker.images.get_image_name_from_id=1, io.cloudslang.docker.utils.parse_inspect_for_parent=1, io.cloudslang.docker.images.get_image_parent=1, io.cloudslang.coreos.cluster_docker_images_maintenance=1, io.cloudslang.docker.images.get_dangling_images=1, io.cloudslang.base.comparisons.less_than_percentage=1, io.cloudslang.docker.images.clear_unused_docker_images=1, io.cloudslang.base.os.linux.validate_linux_machine_ssh_access=1, io.cloudslang.docker.maintenance.docker_images_maintenance=1}, executionIdContext=101600008, SCORE_EVENTS_QUEUE=[io.cloudslang.score.events.ScoreEvent@4db739a1, io.cloudslang.score.events.ScoreEvent@3828a0e3], FLOW_TERMINATION_TYPE=SYSTEM_FAILURE, EXECUTION_STEP_ERROR_KEY=Error running: 'clear_docker_images_flow'.
        Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1, RUNNING_PLANS_MAP={io.cloudslang.docker.maintenance.diskspace_health_check=100600002, io.cloudslang.docker.images.inspect_image=100600001, io.cloudslang.base.strings.string_equals=100600003, io.cloudslang.coreos.list_machines_public_ip=100600004, io.cloudslang.docker.images.clear_docker_images_flow=100600005, io.cloudslang.coreos.get_machine_public_ip=100600006, io.cloudslang.docker.images.clear_docker_images=100600008, io.cloudslang.docker.images.clear_docker_dangling_images_flow=100600007, io.cloudslang.coreos.list_machines_id=100600010, io.cloudslang.base.lists.subtract_sets=100600009, io.cloudslang.docker.images.get_used_images_flow=100600012, io.cloudslang.docker.images.get_all_images=100600011, io.cloudslang.docker.images.get_used_images=100600013, io.cloudslang.base.os.linux.check_linux_disk_space=100600014, io.cloudslang.docker.images.get_image_name_from_id=100600015, io.cloudslang.docker.utils.parse_inspect_for_parent=100600016, io.cloudslang.docker.images.get_image_parent=100600017, io.cloudslang.coreos.cluster_docker_images_maintenance=100600023, io.cloudslang.docker.images.get_dangling_images=100600018, io.cloudslang.base.comparisons.less_than_percentage=100600019, io.cloudslang.docker.images.clear_unused_docker_images=100600020, io.cloudslang.base.os.linux.validate_linux_machine_ssh_access=100600021, io.cloudslang.docker.maintenance.docker_images_maintenance=100600022}}, error_message=Error running: 'clear_docker_images_flow'.
        Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1, SCORE_ERROR_TYPE=STEP_NAV_ERROR, logMessage=Error occurred during navigation execution }
2015-04-22 07:54:32:623 628919 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: EVENT_OUTPUT_START Data is: {EXECUTIONID=101600008, executableResults=[io.cloudslang.lang.entities.bindings.Result@735ab3e2[name=SUCCESS,expression=<null>], io.cloudslang.lang.entities.bindings.Result@47d7f598[name=FAILURE,expression=<null>]], DESCRIPTION=Output binding started, executableOutputs=[io.cloudslang.lang.entities.bindings.Output@333cf301[name=images_list_safe_to_delete,expression=images_list_safe_to_delete], io.cloudslang.lang.entities.bindings.Output@6675e0ee[name=amount_of_images_deleted,expression=0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images], io.cloudslang.lang.entities.bindings.Output@45025dcf[name=used_images_list,expression=used_images_list], io.cloudslang.lang.entities.bindings.Output@1e5ce46e[name=all_parent_images,expression=0 if 'all_parent_images' not in locals() else all_parent_images]], PATH=0/2/0/2/0/1/0, EXECUTABLE_NAME=clear_docker_images_flow, TIMESTAMP=Wed Apr 22 07:54:32 EDT 2015, actionReturnValues=ReturnValues{result='FAILURE', outputs={all_images_list=, docker_username=core, used_images_list=null, private_key_file=/root/cloudslang-coreos, all_parent_images=, timeout=6000000, docker_password=, docker_host=188.166.102.7}}, TYPE=EVENT_OUTPUT_START}
2015-04-22 07:54:32:623 628919 [WorkerExecutionThread-1_101600008] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: SLANG_EXECUTION_EXCEPTION Data is: {EXECUTIONID=101600008, DESCRIPTION=Error detected during step, PATH=0/2/0/2/0/1/0, TIMESTAMP=Wed Apr 22 07:54:32 EDT 2015, TYPE=SLANG_EXECUTION_EXCEPTION, EXCEPTION=Error running: 'clear_docker_images_flow'.
        Error binding output: 'amount_of_images_deleted',
        Error is: Error in running script expression or variable reference, for expression: '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images',
        Script exception is: javax.script.ScriptException: NameError: name 'amount_of_images' is not defined in <script> at line number 1}
2015-04-22 07:54:33:023 629319 [scoreWorkerScheduler-2] INFO  io.cloudslang.lang.cli.SlangCLI  - Event received: SCORE_FINISHED_EVENT Data is: {EXECUTION_CONTEXT={runEnv=io.cloudslang.lang.runtime.env.RunEnvironment@76647f34, userInputs={}}, systemContext=io.cloudslang.score.lang.SystemContext@66c86cdb, executionIdContext=101600008, IS_BRANCH=false}
2015-04-22 07:54:56:029 652325 [Thread-1] INFO  org.springframework.context.support.GenericApplicationContext  - Closing org.springframework.context.support.GenericApplicationContext@40b35cf0: startup date [Wed Apr 22 07:44:06 EDT 2015]; root of context hierarchy
2015-04-22 07:54:56:034 652330 [Thread-1] INFO  io.cloudslang.worker.management.services.WorkerManager  - The worker is down
2015-04-22 07:54:56:039 652335 [Thread-1] INFO  org.springframework.context.support.DefaultLifecycleProcessor  - Stopping beans in phase 1
2015-04-22 07:54:56:050 652346 [scoreWorkerScheduler-1] WARN  io.cloudslang.worker.management.services.OutboundBufferImpl  - Drain outgoing buffer was interrupted while waiting for messages on the buffer
2015-04-22 07:54:56:056 652352 [Thread-1] INFO  org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler  - Shutting down ExecutorService 'scoreWorkerScheduler'
2015-04-22 07:54:56:071 652367 [Thread-1] INFO  org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler  - Shutting down ExecutorService 'scoreOrchestratorScheduler'
2015-04-22 07:54:56:096 652392 [Thread-1] INFO  org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean  - Closing JPA EntityManagerFactory for persistence unit 'default'
root@ubuntu-cloudslang:~/cslang/cslang/bin#
meirwah commented 9 years ago

@Bonczidai did you have in the logs "session is down"??

levice14 commented 9 years ago

no, not this time

levice14 commented 9 years ago

another situation when session is down appears - see log: http://codeviewer.org/view/code:4fd0

levice14 commented 9 years ago

tasks:

- loop_docker_images_maintenance
- - - check_diskspace
- - - - - validate_linux_machine_ssh_access
- - - - - check_disk_space
- - - - - check_availability
- - - clear_unused_docker_images
- - - - - clear_docker_images
- - - - - - - validate_linux_machine_ssh_access
- - - - - - - get_all_images
- - - - - - - get_used_images
- - - - - - - - - validate_linux_machine_ssh_access_op
- - - - - - - - - get_used_images
- - - - - - - subtract_used_images
- - - - - - - verify_all_images_list_not_empty
- - - - - - - verify_used_images_list_not_empty
- - - - - - - get_parent_images
- - - - - - - - - validate_linux_machine_ssh_access
- - - - - - - - - inspect_image
- - - - - - - - - get_parent
- - - - - - - - - get_parent_name
- - - - - - - substract_parent_images
- - - - - - - delete_images
Command failed java.lang.RuntimeException: Slang Error : Error running: 'clear_unused_docker_images': Error binding output: 'total_amount',
    Error is: Error in running script expression or variable reference, for expression: 'amount_of_images_deleted + amount_of_dangling_images_deleted',
    Script exception is: javax.script.ScriptException: TypeError: unsupported operand type(s) for +: 'int' and 'NoneType' in <script> at line number 1
tudorlesan commented 9 years ago

CALL_ARGUMENTS={privateKeyFile=/root/cloudslang-coreos, port=22, closeSession=false, username=core, arguments=, host=188.166.102.7, characterSet=UTF-8, pty=false, command= , password=, timeout=6000000}, PATH=0/2/0/2/0/1/0/3/0/1/0/0, TIMESTAMP=Wed Apr 22 07:54:31 EDT 2015, TYPE=EVENT_ACTION_START} 2015-04-22 07:54:32:562 628858 [WorkerExecutionThread-1_101600008] INFO io.cloudslang.lang.cli.SlangCLI - Event received: EVENT_ACTION_END Data is: {EXECUTIONID=101600008, DESCRIPTION=Action performed, PATH=0/2/0/2/0/1/0/3/0/1/0/0, RETURN_VALUES={returnCode=-1, returnResult=, STDERR=, STDOUT=}, TIMESTAMP=Wed Apr 22 07:54:32 EDT 2015, TYPE=EVENT_ACTION_END} {EXECUTIONID=101600008, DESCRIPTION=Action performed, PATH=0/2/0/2/0/1/0/3/0/1/0/0, RETURN_VALUES={returnCode=-1, returnResult=, STDERR=, STDOUT=}

@Bonczidai I told you the timeout needs to be higher. Otherwise the SSHActionCommand fails with no notice. When the step fails, the flow tries to bind whatever outputs it has, and the ones it needs do not exist because of the failure. I tried with timeout 90000000 and it worked for me. Not 100% sure whether or not it's the timeout,but it's definitely a content issue.

tudorlesan commented 9 years ago

@Bonczidai for the one you posted here: http://codeviewer.org/view/code:4fd0

RETURN_VALUES={returnCode=-1, returnResult=, STDERR=, STDOUT=Untagged: busybox:latest Deleted: 4986bf8c15363d1c5d15512d5266f8777bfba4974ac56e3270e7760f6f0a8125 Deleted: ea13149945cb6b1e746bf28032f02e9b5a793523481a0a18645fc77ad53c4ea2}

Same issue. Timeout is 6000000, flow reaches SSHActionCommand, it actually removes images, but returnCode=-1 so step fails => parent flow can't bind outputs anymore.

tudorlesan commented 9 years ago

seems that it failed with higher timeout as well. still the SSH though

meirwah commented 9 years ago

what you mean by "still the SSH though"?? is it "session is down" issue?

tudorlesan commented 9 years ago

@meirwah from what I observed, the SSH fails sometimes without having the "session is down" error. In the comment I wrote above you can see, the STDOUT contains deleted docker images, while the returnCode=-1 which fails the flow. So SSH can fail having the "session is down" message, no error message at all with valid STDOUT and no information besides returnCode-1. The thing is, everytime @Bonczidai posted a flow failure, I looked over the logs and the SSHCommandAction had returnCode=-1 while everything else being valid.

meirwah commented 9 years ago

@tudorlesan , please try to either Debug the java action and/or consult content team about this

meirwah commented 9 years ago

I think I understand the issue, in the flow "get_used_images_flow" the flow fails because of SSH connection (validate_linux_machine_ssh_access step, on -1), then it will try to resolve parent flow (clear_docker_images_flow) output (amount_of_images_deleted) : '0 if 'images_list_safe_to_delete' in locals() and images_list_safe_to_delete == '' else amount_of_images'

but amount_of_images does not exist since we did not get to the task that deletes it... We either need to verify in the expression amount_of_images is in locals , or look for this outputs only if result=0...

tudorlesan commented 9 years ago

This happens in more places(not only in "get_used_images_flow") depending on where the SSH fails as I wrote above. I realized that avoiding those errors is possible with more validation. But the problem is, the flow will fail either way. The images will not be deleted because SSH fails. And not having those errors there might cause confusion as to why the flow actually failed.

Either way, unless I find the problem with the SSH, we will not be sure how many runs of the flow will actually do what we expect it to do.

oritstone commented 9 years ago

Not reproducable