我正在使用Rundeck v2.5.1,我正在尝试配置一个在本地执行的作业.该作业运行内联脚本,该脚本运行另一个脚本.当我运行作业(作为管理员)时,似乎Rundeck不运行任何内联脚本.这是作业的输出:
com.dtolabs.rundeck.core.NodesetEmptyException: No matched nodes: MultiNodeSelector{nodenames=[localhost]} at com.dtolabs.rundeck.core.execution.workflow.NodeFirstWorkflowStrategy.validateNodeSet(NodeFirstWorkflowStrategy.java:341) at com.dtolabs.rundeck.core.execution.workflow.NodeFirstWorkflowStrategy.executeWorkflowImpl(NodeFirstWorkflowStrategy.java:84) at com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowStrategy.executeWorkflow(BaseWorkflowStrategy.java:182) at com.dtolabs.rundeck.core.execution.WorkflowExecutionServiceThread.run(WorkflowExecutionServiceThread.java:55) Exception: class com.dtolabs.rundeck.core.NodesetEmptyException: No matched nodes: MultiNodeSelector{nodenames=[localhost]} No matched nodes: MultiNodeSelector{nodenames=[localhost]}
另外,这是admin.aclpolicy(/etc/rundeck/admin.aclpolicy)
description: Admin,all access. context: project: '.*' # all projects for: resource: - allow: '*' # allow read/create all kinds adhoc: - allow: '*' # allow read/running/killing adhoc jobs job: - allow: '*' # allow read/write/delete/run/kill of all jobs node: - allow: '*' # allow read/run for all nodes by: group: admin --- description: Admin,all access. context: application: 'rundeck' for: resource: - allow: '*' # allow create of projects project: - allow: '*' # allow view/admin of all projects storage: - allow: '*' # allow read/create/update/delete for all /keys/* storage content by: group: admin
Rundeck正在VPC中的EC2实例上运行.该实例正在运行ubuntu 14.04.2 lts.通过ssh连接到实例后,我可以成功地卷曲Rundeck.
$curl -I -L localhost:4440 HTTP/1.1 302 Found Set-Cookie: JSESSIONID=s1uqcqv0n9h0p4t49m8j2sxx;Path=/ Expires: Thu,01 Jan 1970 00:00:00 GMT Location: http://localhost:4440/user/login;jsessionid=s1uqcqv0n9h0p4t49m8j2sxx Content-Length: 0 Server: Jetty(7.6.0.v20120127) HTTP/1.1 200 OK Content-Language: en-US Content-Type: text/html;charset=UTF-8 Content-Length: 5260 Server: Jetty(7.6.0.v20120127)
我一直在这里和其他团体/地方环顾四周,但我真的找不到任何与我正在经历的东西和Rundeck版本相匹配的东西.
有没有人使用Rundeck 2.5.1之前看到过这种类型的错误/知道如何让这个工作运行?
< 3
MIKEY
解决方法
我刚刚遇到了同样的问题.我通过启用它来工作
Include Server Node: Yes
在项目配置下的主资源模型源中.