xebialabs / overthere

Runs something "Over there"
http://www.xebialabs.com
Other
196 stars 66 forks source link

Error reading symlink to NAS on Windows #110

Closed badchenn closed 10 years ago

badchenn commented 10 years ago

My group works with both Windows and Linux. We often create directory symlinks mounted to a NAS. RD-2.0.1 is not able to follow the link - or at least it gets an unexpected return.

4 different steps are setup using "Execute a remote command" in Rundeck using the WinRM plugin.

Step 1.) read the local D: directory (lines 29-36) where you will see a local sub-folder and 3 symlinks (2 are to local - 1 is to the NAS) - success

Step 2.) read a local sub-folder (lines 62-68) - success

Step 3.) read a symlink redirecting to another local sub-folder (lines 91-114)- success

Step 4.) read a symlink redirecting to an external NAS (lines 141-143) - fail

?? Any thoughts on the cause of NonZeroResultCode: [overthere-winrm] result code: 1

---------------------- LOG OUTPUT ---------------------------- 1 [workflow] Begin execution: rundeck-workflow-node-first context: null
2 preparing for sequential execution on 1 nodes
3 Executing command on node: vmServer, NodeEntryImpl{tags=[esm, windows, build, all], attributes={osFamily=windows, tags=all, build, esm, windows, osArch=x86_64, osVersion=2008, hostname=vmServer.company.com, type=Node, username=ad.firstname.lastname@us.global.company.com, description=Build1, winrm-password-option=option.winrmPassword, winrm-auth-type=kerberos, nodename=vmServer, node-executor=overthere-winrm, osName=Windows Server 2008}, project='null'}
4 NodeSet: MultiNodeSelector{nodenames=[vmServer]}
5 Workflow: com.dtolabs.rundeck.core.execution.workflow.StepFirstWorkflowStrategy$stepFirstWrapper@10d528b7
6 data context: {node={tags=esm,windows,build,all, os-version=2008, hostname=vmServer.company.com, os-name=Windows Server 2008, type=Node, os-family=windows, username=ad.firstname.lastname@us.global.company.com, description=Build1, winrm-password-option=option.winrmPassword, name=vmServer, os-arch=x86_64, winrm-auth-type=kerberos, node-executor=overthere-winrm}, job={id=c103505a-2d08-46fe-a1d2-1e1497407a4f, project=tester, loglevel=DEBUG, username=admin, user.name=admin, name=Process New Goldensource Vendor Packages, serverUUID=null, group=null, url=http://svm3900pdv.dev.company.com:4440/project/tester/execution/follow/61, serverUrl=http://svm3900pdv.dev.company.com:4440/, execid=61}, option={}} 7 [workflow] Begin step: 1,NodeDispatch
8 1: Workflow step executing: com.dtolabs.rundeck.execution.ExecutionItemFactory$4@4700616e
9 preparing for sequential execution on 1 nodes
10 Executing command on node: vmServer, NodeEntryImpl{tags=[esm, windows, build, all], attributes={osFamily=windows, tags=all, build, esm, windows, osArch=x86_64, osVersion=2008, hostname=vmServer.company.com, type=Node, username=ad.firstname.lastname@us.global.company.com, description=Build1, winrm-password-option=option.winrmPassword, winrm-auth-type=kerberos, nodename=vmServer, node-executor=overthere-winrm, osName=Windows Server 2008}, project='null'}
11 [workflow] beginExecuteNodeStep(vmServer): NodeDispatch: com.dtolabs.rundeck.execution.ExecutionItemFactory$4@4700616e
12 [overthere-winrm:vmServer.company.com] dir D:\
13 [overthere-winrm:vmServer.company.com] ConnectionOptions[ port --> 5985 14 os --> WINDOWS 15 username --> ad.firstname.lastname@US.GLOBAL.COMPANY.COM 16 address --> vmServer.company.com 17 winrmEnableHttps --> false 18 winrmKerberosAddPortToSpn --> false 19 winrmKerberosDebug --> false 20 connectionType --> WINRM 21 connectionTimeoutMillis --> 15000 22 winrmKerberosUseHttpSpn --> false 23 password --> **** 24 ]
25
26 Volume in drive D is Data
27 Volume Serial Number is AC99-CB07
28
29 Directory of D:\
30
31 01/03/2014 04:25 PM

AgentWorkDir 32 01/03/2014 04:40 PM ant [D:\apps\apache-ant-1.6.5]
33 11/14/2013 05:55 PM ESMStaging [\nas30u0bdv.dev.company.com\ABCDStaging\ESM]
34 03/31/2014 01:01 PM jdk [D:\apps\jdk1.6.0_45]
35 0 File(s) 0 bytes
36 15 Dir(s) 24,790,601,728 bytes free
37 [workflow] finishExecuteNodeStep(vmServer): NodeDispatch: Succeeded 38 1: Workflow step finished, result: Dispatch successful (1 nodes)
39 [workflow] Finish step: 1,NodeDispatch
40 [workflow] Begin step: 2,NodeDispatch
41 2: Workflow step executing: com.dtolabs.rundeck.execution.ExecutionItemFactory$4@69fca12c
42 preparing for sequential execution on 1 nodes
43 Executing command on node: vmServer, NodeEntryImpl{tags=[esm, windows, build, all], attributes={osFamily=windows, tags=all, build, esm, windows, osArch=x86_64, osVersion=2008, hostname=vmServer.company.com, type=Node, username=ad.firstname.lastname@us.global.company.com, description=Build1, winrm-password-option=option.winrmPassword, winrm-auth-type=kerberos, nodename=vmServer, node-executor=overthere-winrm, osName=Windows Server 2008}, project='null'}
44 [workflow] beginExecuteNodeStep(vmServer): NodeDispatch: com.dtolabs.rundeck.execution.ExecutionItemFactory$4@69fca12c
45 [overthere-winrm:vmServer.company.com] dir D:\AgentWorkDir
46 [overthere-winrm:vmServer.company.com] ConnectionOptions[ port --> 5985 47 os --> WINDOWS 48 username --> ad.firstname.lastname@US.GLOBAL.COMPANY.COM 49 address --> vmServer.company.com 50 winrmEnableHttps --> false 51 winrmKerberosAddPortToSpn --> false 52 winrmKerberosDebug --> false 53 connectionType --> WINRM 54 connectionTimeoutMillis --> 15000 55 winrmKerberosUseHttpSpn --> false 56 password --> **** 57 ]
58
59 Volume in drive D is Data
60 Volume Serial Number is AC99-CB07
61
62 Directory of D:\AgentWorkDir
63
64 01/03/2014 04:25 PM .
65 01/03/2014 04:25 PM ..
66 12/13/2013 06:27 PM 46
67 0 File(s) 0 bytes
68 3 Dir(s) 24,790,601,728 bytes free
69 [workflow] finishExecuteNodeStep(vmServer): NodeDispatch: Succeeded 70 2: Workflow step finished, result: Dispatch successful (1 nodes)
71 [workflow] Finish step: 2,NodeDispatch
72 [workflow] Begin step: 3,NodeDispatch
73 3: Workflow step executing: com.dtolabs.rundeck.execution.ExecutionItemFactory$4@48b98610
74 preparing for sequential execution on 1 nodes
75 Executing command on node: vmServer, NodeEntryImpl{tags=[esm, windows, build, all], attributes={osFamily=windows, tags=all, build, esm, windows, osArch=x86_64, osVersion=2008, hostname=vmServer.company.com, type=Node, username=ad.firstname.lastname@us.global.company.com, description=Build1, winrm-password-option=option.winrmPassword, winrm-auth-type=kerberos, nodename=vmServer, node-executor=overthere-winrm, osName=Windows Server 2008}, project='null'}
76 [workflow] beginExecuteNodeStep(vmServer): NodeDispatch: com.dtolabs.rundeck.execution.ExecutionItemFactory$4@48b98610
77 [overthere-winrm:vmServer.company.com] dir D:\ant
78 [overthere-winrm:vmServer.company.com] ConnectionOptions[ port --> 5985 79 os --> WINDOWS 80 username --> ad.firstname.lastname@US.GLOBAL.COMPANY.COM 81 address --> vmServer.company.com 82 winrmEnableHttps --> false 83 winrmKerberosAddPortToSpn --> false 84 winrmKerberosDebug --> false 85 connectionType --> WINRM 86 connectionTimeoutMillis --> 15000 87 winrmKerberosUseHttpSpn --> false 88 password --> **** 89 ]
90
91 Volume in drive D is Data
92 Volume Serial Number is AC99-CB07
93
94 Directory of D:\ant
95
96 01/03/2014 04:41 PM .
97 01/03/2014 04:41 PM ..
98 01/03/2014 04:35 PM bin
99 01/03/2014 04:36 PM docs 100 01/03/2014 04:36 PM etc
101 01/03/2014 04:41 PM 126 INSTALL
102 01/03/2014 04:41 PM 17,191 KEYS 103 01/03/2014 04:36 PM lib
104 01/03/2014 04:41 PM 11,766 LICENSE
105 01/03/2014 04:41 PM 3,356 LICENSE.dom
106 01/03/2014 04:41 PM 677 LICENSE.sax
107 01/03/2014 04:41 PM 2,698 LICENSE.xerces
108 01/03/2014 04:41 PM 747 NOTICE
109 01/03/2014 04:41 PM 2,657 README
110 01/03/2014 04:41 PM 289 TODO 111 01/03/2014 04:41 PM 18,478 welcome.html 112 01/03/2014 04:41 PM 109,297 WHATSNEW 113 11 File(s) 167,282 bytes
114 6 Dir(s) 24,790,601,728 bytes free
115 [workflow] finishExecuteNodeStep(vmServer): NodeDispatch: Succeeded 116 3: Workflow step finished, result: Dispatch successful (1 nodes)
117 [workflow] Finish step: 3,NodeDispatch
118
119 [workflow] Begin step: 4,NodeDispatch
120 4: Workflow step executing: com.dtolabs.rundeck.execution.ExecutionItemFactory$4@19f7bd7b
121 preparing for sequential execution on 1 nodes
122 Executing command on node: vmServer, NodeEntryImpl{tags=[esm, windows, build, all], attributes={osFamily=windows, tags=all, build, esm, windows, osArch=x86_64, osVersion=2008, hostname=vmServer.company.com, type=Node, username=ad.firstname.lastname@us.global.company.com, description=Build1, winrm-password-option=option.winrmPassword, winrm-auth-type=kerberos, nodename=vmServer, node-executor=overthere-winrm, osName=Windows Server 2008}, project='null'}
123 [workflow] beginExecuteNodeStep(vmServer): NodeDispatch: com.dtolabs.rundeck.execution.ExecutionItemFactory$4@19f7bd7b
124 [overthere-winrm:vmServer.company.com] dir D:\ESMStaging
125 [overthere-winrm:vmServer.company.com] ConnectionOptions[ port --> 5985 126 os --> WINDOWS 127 username --> ad.firstname.lastname@US.GLOBAL.COMPANY.COM 128 address --> vmServer.company.com 129 winrmEnableHttps --> false 130 winrmKerberosAddPortToSpn --> false 131 winrmKerberosDebug --> false 132 connectionType --> WINRM 133 connectionTimeoutMillis --> 15000 134 winrmKerberosUseHttpSpn --> false 135 password --> **** 136 ]
137
138 Volume in drive D is Data
139 Volume Serial Number is AC99-CB07
140
141 Directory of D:\ESMStaging 142
143 File Not Found
144 [overthere-winrm:vmServer.company.com] failed: exit code: 1 145 Failed: NonZeroResultCode: [overthere-winrm] result code: 1 146 [workflow] finishExecuteNodeStep(vmServer): NodeDispatch: NonZeroResultCode: [overthere-winrm] result code: 1
147 4: Workflow step finished, result: Dispatch failed on 1 nodes: [vmServer: NonZeroResultCode: [overthere-winrm] result code: 1]
148 [workflow] Finish step: 4,NodeDispatch
149 [workflow] Finish execution: rundeck-workflow-node-first: [Workflow step failures: {5=Dispatch failed on 1 nodes: [vmServer: NonZeroResultCode: [overthere-winrm] result code: 1]}, Node failures: {vmServer=[NonZeroResultCode: [overthere-winrm] result code: 1]}]
150 [Workflow step failures: {5=Dispatch failed on 1 nodes: [vmServer: NonZeroResultCode: [overthere-winrm] result code: 1]}, Node failures: {vmServer=[NonZeroResultCode: [overthere-winrm] result code: 1]}]
151 Execution failed: 61: [Workflow step failures: {4=Dispatch failed on 1 nodes: [vmServer: NonZeroResultCode: [overthere-winrm] result code: 1]}, Node failures: {vmServer=[NonZeroResultCode: [overthere-winrm] result code: 1]}]

vpartington commented 10 years ago

Hi Chad,

This is the Overthere Github repo, not the Rundeck Github repo. Please file an issue over there. No pun intended.

Regards, Vincent.