Created
January 30, 2017 18:35
-
-
Save codyaray/77e9604fbc31477316240be49b266bb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": "failed", | |
"start_timestamp": "2017-01-30T18:05:01.614373Z", | |
"log": [ | |
{ | |
"status": "requested", | |
"timestamp": "2017-01-30T18:05:01.639000Z" | |
}, | |
{ | |
"status": "scheduled", | |
"timestamp": "2017-01-30T18:05:01.778000Z" | |
}, | |
{ | |
"status": "running", | |
"timestamp": "2017-01-30T18:05:01.947000Z" | |
}, | |
{ | |
"status": "failed", | |
"timestamp": "2017-01-30T18:05:04.610000Z" | |
} | |
], | |
"parent": "588f804c8c93f6041d95914b", | |
"runner": { | |
"runner_module": "st2actions.runners.remote_command_runner", | |
"uid": "runner_type:remote-shell-cmd", | |
"enabled": true, | |
"name": "remote-shell-cmd", | |
"runner_parameters": { | |
"username": { | |
"required": false, | |
"type": "string", | |
"description": "Username used to log-in. If not provided, default username from config is used." | |
}, | |
"private_key": { | |
"secret": true, | |
"required": false, | |
"type": "string", | |
"description": "Private key material or path to the private key file on disk used to log in." | |
}, | |
"sudo": { | |
"default": false, | |
"type": "boolean", | |
"description": "The remote command will be executed with sudo." | |
}, | |
"timeout": { | |
"default": 60, | |
"type": "integer", | |
"description": "Action timeout in seconds. Action will get killed if it doesn't finish in timeout seconds." | |
}, | |
"cmd": { | |
"type": "string", | |
"description": "Arbitrary Linux command to be executed on the remote host(s)." | |
}, | |
"port": { | |
"default": 22, | |
"required": false, | |
"type": "integer", | |
"description": "SSH port. Note: This parameter is used only in ParamikoSSHRunner." | |
}, | |
"bastion_host": { | |
"required": false, | |
"type": "string", | |
"description": "The host SSH connections will be proxied through. Note: This connection is made using the same parameters as the final connection, and is only used in ParamikoSSHRunner." | |
}, | |
"kwarg_op": { | |
"default": "--", | |
"type": "string", | |
"description": "Operator to use in front of keyword args i.e. \"--\" or \"-\"." | |
}, | |
"hosts": { | |
"required": true, | |
"type": "string", | |
"description": "A comma delimited string of a list of hosts where the remote command will be executed." | |
}, | |
"env": { | |
"type": "object", | |
"description": "Environment variables which will be available to the command(e.g. key1=val1,key2=val2)" | |
}, | |
"parallel": { | |
"default": false, | |
"type": "boolean", | |
"description": "Default to parallel execution.", | |
"immutable": true | |
}, | |
"password": { | |
"secret": true, | |
"required": false, | |
"type": "string", | |
"description": "Password used to log in. If not provided, private key from the config file is used." | |
}, | |
"passphrase": { | |
"secret": true, | |
"required": false, | |
"type": "string", | |
"description": "Passphrase for the private key, if needed." | |
}, | |
"cwd": { | |
"default": "/tmp", | |
"type": "string", | |
"description": "Working directory where the script will be executed in" | |
}, | |
"dir": { | |
"default": "/tmp", | |
"type": "string", | |
"description": "The working directory where the script will be copied to on the remote host.", | |
"immutable": true | |
} | |
}, | |
"id": "578e71f88c93f60b86368599", | |
"description": "A remote execution runner that executes actions as a fixed system user." | |
}, | |
"result": { | |
"pslchi6pmon1": { | |
"succeeded": false, | |
"failed": true, | |
"return_code": 1, | |
"stderr": "", | |
"stdout": "declare -x HOME=\"/root\"\ndeclare -x LANGUAGE=\"en_US:en\"\ndeclare -x LOGNAME=\"root\"\ndeclare -x MAIL=\"/var/mail/StackStormService\"\ndeclare -x OLDPWD\ndeclare -x PATH=\"/usr/bin:/bin:/usr/sbin:/sbin\"\ndeclare -x PWD=\"/tmp\"\ndeclare -x SHELL=\"/bin/bash\"\ndeclare -x SHLVL=\"1\"\ndeclare -x SUDO_COMMAND=\"/bin/bash -c export && false\"\ndeclare -x SUDO_GID=\"10002\"\ndeclare -x SUDO_UID=\"10429\"\ndeclare -x SUDO_USER=\"StackStormService\"\ndeclare -x TERM=\"unknown\"\ndeclare -x USER=\"root\"\ndeclare -x USERNAME=\"root\"" | |
} | |
}, | |
"context": { | |
"parent": { | |
"execution_id": "588f804c8c93f6041d95914b", | |
"trigger_instance": { | |
"id": "588f804c8c93f6041d959148", | |
"name": null | |
}, | |
"trace_context": { | |
"id_": "588f804c8c93f6041d959149", | |
"trace_tag": "st2.CronTimer-a9ddfd78-fd0f-42bd-9ce3-3b2bcfb7ba65" | |
}, | |
"rule": { | |
"id": "588f78758c93f6207f7e8e60", | |
"name": "test_email_pslchi6pmon1" | |
}, | |
"user": "stackstormservice" | |
}, | |
"chain": { | |
"name": "execute_action", | |
"parameters": null, | |
"publish": null, | |
"params": null, | |
"notify": null, | |
"on_failure": "email_failure", | |
"ref": "cron.test_email_pslchi6pmon1", | |
"on_success": null | |
}, | |
"user": "stackstormservice" | |
}, | |
"action": { | |
"runner_type": "remote-shell-cmd", | |
"name": "test_email_pslchi6pmon1", | |
"parameters": { | |
"cmd": { | |
"default": "sudo -u root bash -c 'export && false'", | |
"immutable": true | |
}, | |
"hosts": { | |
"default": "pslchi6pmon1", | |
"immutable": true | |
} | |
}, | |
"tags": [], | |
"enabled": true, | |
"entry_point": "", | |
"notify": {}, | |
"uid": "action:cron:test_email_pslchi6pmon1", | |
"pack": "cron", | |
"ref": "cron.test_email_pslchi6pmon1", | |
"id": "588f78508c93f6207f7e8e5e", | |
"description": "" | |
}, | |
"liveaction": { | |
"action": "cron.test_email_pslchi6pmon1", | |
"callback": {}, | |
"runner_info": { | |
"hostname": "svlchi6pstack2", | |
"pid": 1209 | |
}, | |
"id": "588f804d92cc9b046ba9feaf", | |
"parameters": {} | |
}, | |
"id": "588f804d92cc9b046ba9feb0", | |
"end_timestamp": "2017-01-30T18:05:04.563571Z", | |
"execution_time": 3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment