NetDocuments-Archive / rd-winrm-plugin

Allows rundeck to execute commands with powershell
Apache License 2.0
31 stars 19 forks source link

New to rundeck #36

Closed lionman1 closed 7 years ago

lionman1 commented 7 years ago

Hi All,

I'm new to rundeck. I installed rundeck on a windows 2008 R2 server. Downloaded this plugin and finished setting it up. However when i added another node and trying to execute a command to that i have issues.

Here is execution log. It would be great if you guys can tell me what I'm missing.

15:02:46 DEMO01 [workflow] Begin execution: rundeck-workflow-node-first context: null 15:02:46 preparing for sequential execution on 1 nodes 15:02:46 Executing command on node: 192.0.0.1, NodeEntryImpl{tags=[], attributes={osFamily=windows, tags=, osArch=x86_64, osVersion=Microsoft Windows Server 2008 R2 Standard, Password=Rduser@2016, hostname=192.0.0.1, winrm-protocol=http, connectionType=WINRM_NATIVE, username=rdeckuser, winrmPassword=Rduser@2016, winrm-password-option=winrmPassword, description=Rundeck Demo Exec node Windows, winrm-auth-type=basic, nodename=192.0.0.1, node-executor=overthere-winrm, osName=Microsoft Windows Server 2008 R2 Standard}, project='null'} 15:02:46 NodeSet: MultiNodeSelector{nodenames=[192.0.0.1]} 15:02:46 Workflow: com.dtolabs.rundeck.core.execution.workflow.StepFirstWorkflowStrategy$stepFirstWrapper@66eae4a8 15:02:46 data context: {node={tags=, os-version=Microsoft Windows Server 2008 R2 Standard, Password=Rduser@2016, hostname=192.0.0.1, winrm-protocol=http, connectionType=WINRM_NATIVE, os-name=Microsoft Windows Server 2008 R2 Standard, os-family=windows, username=rdeckuser, winrmPassword=Rduser@2016, winrm-password-option=winrmPassword, description=Rundeck Demo Exec node Windows, name=192.0.0.1, winrm-auth-type=basic, os-arch=x86_64, node-executor=overthere-winrm}, globals={}, job={loglevel=DEBUG, wasRetry=false, url=http://DEMO01:4440/project/Test/execution/follow/53, id=12f5aebc-a877-41e9-970f-2fdf2eef0607, project=Test, username=admin, retryAttempt=0, user.name=admin, name=Test1, serverUUID=null, group=null, execid=53, serverUrl=http://DEMO01:4440/}, option={WINRMPASS=Rduser@2106}} 15:02:46 1. Command [workflow] Begin step: 1,NodeDispatch 15:02:46 1: Workflow step executing: com.dtolabs.rundeck.execution.ExecutionItemFactory$4@745f515f 15:02:46 preparing for sequential execution on 1 nodes 15:02:46 Executing command on node: 192.0.0.1, NodeEntryImpl{tags=[], attributes={osFamily=windows, tags=, osArch=x86_64, osVersion=Microsoft Windows Server 2008 R2 Standard, Password=Rduser@2016, hostname=192.0.0.1, winrm-protocol=http, connectionType=WINRM_NATIVE, username=rdeckuser, winrmPassword=Rduser@2016, winrm-password-option=winrmPassword, description=Rundeck Demo Exec node Windows, winrm-auth-type=basic, nodename=192.0.0.1, node-executor=overthere-winrm, osName=Microsoft Windows Server 2008 R2 Standard}, project='null'} 15:02:46 192.0.0.1 1. Command [workflow] beginExecuteNodeStep(192.0.0.1): NodeDispatch: com.dtolabs.rundeck.execution.ExecutionItemFactory$4@745f515f 15:02:46 [overthere-winrm:192.0.0.1] ipconfig /all 15:02:46 [overthere-winrm:192.0.0.1] Password was not set 15:02:46 Failed: ConfigurationFailure: Password was not set 15:02:46 DEMO01 1. Command [workflow] finishExecuteNodeStep(192.0.0.1): NodeDispatch: ConfigurationFailure: Password was not set 15:02:46 1: Workflow step finished, result: Dispatch failed on 1 nodes: [192.0.0.1: ConfigurationFailure: Password was not set] 15:02:46 [workflow] Finish step: 1,NodeDispatch 15:02:46 [workflow] Finish execution: rundeck-workflow-node-first: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [192.0.0.1: ConfigurationFailure: Password was not set]}, Node failures: {192.0.0.1=[ConfigurationFailure: Password was not set]}, status: failed] 15:02:46 [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [192.0.0.1: ConfigurationFailure: Password was not set]}, Node failures: {192.0.0.1=[ConfigurationFailure: Password was not set]}, status: failed] 15:02:46 Execution failed: 53 in project Test: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [192.0.0.1: ConfigurationFailure: Password was not set]}, Node failures: {192.0.0.1=[ConfigurationFailure: Password was not set]}, status: failed]

UnicodeTreason commented 7 years ago

If im reading your log correctly it seems you're using this plugin https://github.com/rundeck-plugins/rundeck-winrm-plugin and not this plugin https://github.com/NetDocuments/rd-winrm-plugin

Can you please post a screenshot of your Default Node Executor settings for the project having issues?

lionman1 commented 7 years ago

Thanks Riedy. Found the issue. Im using both plugins. Winrm executor and Winrm. After changing the resources.xml it started working