54 systems, no problem. If I try to run this simple test on the rundeck server itself, I have a problem.
First, I run the command much the same as rundeck and it works.
This system was setup the same as all of the others and shouldn't be getting that 'must have a tty to run sudo' error so I ended up editing sudoers and adding 'Defaults:rundeck !requiretty' which is why you see the first !requiretty in the output above.
But when I execute the command from within the rundeck UI, this is what the verbose logs say (times trimmed out)...
[workflow] Begin execution: rundeck-workflow-node-first context: null
preparing for sequential execution on 1 nodes
Executing command on node: run001.stt.local, NodeEntryImpl{tags=[rundeck], attributes={tags=rundeck, osVers=2.6.32-431.40.1.el6.x86_64, username=rundeck, osArch=x86_64, file-copy-destination-dir=/tmp, description=Last updated 2014-12-31 13:16:13, hostname=run001.stt.local, nodename=run001.stt.local, osName=Linux}, project='null'}
NodeSet: MultiNodeSelector{nodenames=[run001.stt.local]}
Workflow: com.dtolabs.rundeck.core.execution.workflow.StepFirstWorkflowStrategy$stepFirstWrapper@146b82d9
data context: {node={tags=rundeck, osVers=2.6.32-431.40.1.el6.x86_64, username=rundeck, os-version=, file-copy-destination-dir=/tmp, description=Last updated 2014-12-31 13:16:13, name=run001.stt.local, os-arch=x86_64, hostname=run001.stt.local, os-name=Linux, os-family=}, job={loglevel=DEBUG, wasRetry=false, url=
https://run001.stt.local:4440/project/Infrastructure/execution/follow/191, id=8c610692-8bf8-4831-988c-286a4f131ba7, project=Infrastructure, username=craig.white, retryAttempt=0,
user.name=craig.white, name=Sudo check, serverUUID=null, group=null, execid=191, serverUrl=
https://run001.stt.local:4440/}, option={}}
[workflow] Begin step: 1,NodeDispatch
1: Workflow step executing: com.dtolabs.rundeck.execution.ExecutionItemFactory$4@38e9c8ce
preparing for sequential execution on 1 nodes
Executing command on node: run001.stt.local, NodeEntryImpl{tags=[rundeck], attributes={tags=rundeck, osVers=2.6.32-431.40.1.el6.x86_64, username=rundeck, osArch=x86_64, file-copy-destination-dir=/tmp, description=Last updated 2014-12-31 13:16:13, hostname=run001.stt.local, nodename=run001.stt.local, osName=Linux}, project='null'}
[workflow] beginExecuteNodeStep(run001.stt.local): NodeDispatch: com.dtolabs.rundeck.execution.ExecutionItemFactory$4@38e9c8ce
Current OS is Linux
Adding reference: ant.PropertyHelper
Project base dir set to: /var/lib/rundeck
Setting environment variable: RD_NODE_DESCRIPTION=Last updated 2014-12-31 13:16:13
Setting environment variable: RD_NODE_OS_ARCH=x86_64
Setting environment variable: RD_JOB_NAME=Sudo check
Setting environment variable: RD_JOB_WASRETRY=false
Setting environment variable: RD_JOB_ID=8c610692-8bf8-4831-988c-286a4f131ba7
Setting environment variable: RD_JOB_RETRYATTEMPT=0
Setting environment variable: RD_JOB_EXECID=191
Setting environment variable: RD_NODE_HOSTNAME=run001.stt.local
Setting environment variable: RD_NODE_TAGS=rundeck
Setting environment variable: RD_JOB_PROJECT=Infrastructure
Setting environment variable: RD_NODE_NAME=run001.stt.local
Setting environment variable: RD_JOB_USER_NAME=craig.white
Setting environment variable: RD_JOB_LOGLEVEL=DEBUG
Setting environment variable: RD_NODE_OS_VERSION=
Setting environment variable: RD_NODE_USERNAME=rundeck
Setting environment variable: RD_NODE_OSVERS=2.6.32-431.40.1.el6.x86_64
Setting environment variable: RD_NODE_OS_FAMILY=
Setting environment variable: RD_JOB_USERNAME=craig.white
Setting environment variable: RD_NODE_FILE_COPY_DESTINATION_DIR=/tmp
Setting environment variable: RD_NODE_OS_NAME=Linux
Executing '/bin/sh' with arguments:'-c'
'sudo -l'
The ' characters around the executable and arguments are
not part of the command.
Execute:Java13CommandLauncher: Executing '/bin/sh' with arguments:'-c'
'sudo -l'
The ' characters around the executable and arguments are
not part of the command.
sudo: sorry, you must have a tty to run sudo
Setting project property: 1423508773578.node.run001.stt.local.LocalNodeExecutor.result -> 1
Result: 1
Failed: NonZeroResultCode: Result code was 1
[workflow] finishExecuteNodeStep(run001.stt.local): NodeDispatch: NonZeroResultCode: Result code was 1
1: Workflow step finished, result: Dispatch failed on 1 nodes: [run001.stt.local: NonZeroResultCode: Result code was 1]
[workflow] Finish step: 1,NodeDispatch
[workflow] Finish execution: rundeck-workflow-node-first: [Workflow step failures: {1=Dispatch failed on 1 nodes: [run001.stt.local: NonZeroResultCode: Result code was 1]}, Node failures: {run001.stt.local=[NonZeroResultCode: Result code was 1]}]
[Workflow step failures: {1=Dispatch failed on 1 nodes: [run001.stt.local: NonZeroResultCode: Result code was 1]}, Node failures: {run001.stt.local=[NonZeroResultCode: Result code was 1]}]
Execution failed: 191: [Workflow step failures: {1=Dispatch failed on 1 nodes: [run001.stt.local: NonZeroResultCode: Result code was 1]}, Node failures: {run001.stt.local=[NonZeroResultCode: Result code was 1]}]
Why just on this system? Same RHEL 6.6 as the others.