You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: Bug Reports not following this template may be closed without feedback.
Getting Help
Please use this issue template for reporting identified or suspected bugsonly. For support on configuration or troubleshooting please see Getting Help for the appropriate channels.
Describe the bug
I am trying to automate some configuration on a Cisco switch (NXOS 9.3) by using an inline script, as configurations on these switches require multiple lines to apply the configuration. Example:
configure terminal
interface loopback 0
ip address 127.0.0.2/32
exit
When using an "inline script" step targetting the switch (whose OS family is neither Unix nor Windows), the chmod +x $scriptfile command fails, preventing the job to proceed (even though the chmod bit is useless).
Bypassing this step is also not an alternative as the chmod is hardcoded in DefaultScriptFileNodeStepUtils.java.
My Rundeck detail
Rundeck version: v5.1.1-20240305
install type: rpm
OS Name/version: RHEL8
DB Type/version: postgres
To Reproduce
Steps to reproduce the behavior:
Add a non-posix node (eg. without the chmod command)
Create a job targetting this node
Add "inline script" step, and specify the interpreter explicitely (eg. run-script $scriptfile on NXOS)
Set "SCP" as the "Default File Copier" for the project
Run job
Expected behavior
The job should upload the script on the node and execute the script immediately using the given interpreter (which doesn't require the executable bit to run).
Instead, the job fails with the following error:
Syntax error while parsing 'chmod +x /scripts/1530-11418-nx-leaf7-stdn-dispatch-script.tmp.cmd'
Cmd exec error.
Failed: Unknown: Remote command failed with exit status 16
The text was updated successfully, but these errors were encountered:
Note: Bug Reports not following this template may be closed without feedback.
Getting Help
Please use this issue template for reporting identified or suspected bugs only. For support on configuration or troubleshooting please see Getting Help for the appropriate channels.
Describe the bug
I am trying to automate some configuration on a Cisco switch (NXOS 9.3) by using an inline script, as configurations on these switches require multiple lines to apply the configuration. Example:
When using an "inline script" step targetting the switch (whose OS family is neither Unix nor Windows), the
chmod +x $scriptfile
command fails, preventing the job to proceed (even though thechmod
bit is useless).Bypassing this step is also not an alternative as the
chmod
is hardcoded in DefaultScriptFileNodeStepUtils.java.My Rundeck detail
To Reproduce
Steps to reproduce the behavior:
chmod
command)run-script $scriptfile
on NXOS)Expected behavior
The job should upload the script on the node and execute the script immediately using the given interpreter (which doesn't require the executable bit to run).
Instead, the job fails with the following error:
The text was updated successfully, but these errors were encountered: