rundeck / docs

Rundeck documentation
https://github.com/rundeck/rundeck
68 stars 144 forks source link

Execution fails on new installation project with script resource model source #315

Closed kristian-lesko closed 4 years ago

kristian-lesko commented 7 years ago

Issue type: Bug report My Rundeck detail

Expected Behavior When Rundeck is installed and a project is defined with a script Resource Model Source, we expect it to be able to run a job in this project right away, loading the execution nodes from the resource model source.

Actual Behavior When a job is executed in a project after setup as described above, the execution fails with the following error:

com.dtolabs.rundeck.core.NodesetEmptyException: No matched nodes: NodeSet{includes={name=sample-node, dominant=false, }} at com.dtolabs.rundeck.core.execution.workflow.NodeFirstWorkflowExecutor.validateNodeSet(NodeFirstWorkflowExecutor.java:350) at com.dtolabs.rundeck.core.execution.workflow.NodeFirstWorkflowExecutor.executeWorkflowImpl(NodeFirstWorkflowExecutor.java:88) at com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowExecutor.executeWorkflow(BaseWorkflowExecutor.java:317) at com.dtolabs.rundeck.core.execution.WorkflowExecutionServiceThread.run(WorkflowExecutionServiceThread.java:55) Exception: class com.dtolabs.rundeck.core.NodesetEmptyException: No matched nodes: NodeSet{includes={name=sample-node, dominant=false, }} No matched nodes: NodeSet{includes={name=sample-node, dominant=false, }}

However, it seems that even though this execution fails, the nodes are loaded from the script source properly, and the second execution works as expected.

How to reproduce Behavior

fdevans commented 4 years ago

Somehow this bug got buried in our Docs project. If this is still an issue on the current version of Rundeck please feel free to open a new issue in the rundeck/rundeck project.