linux – Rundeck 2.5.1 – 本地执行的作业没有匹配的节点

我正在使用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

在项目配置下的主资源模型源中.

相关文章

insmod和modprobe加-f参数导致Invalid module format错误 这...
将ArchLinux安装到U盘 几个月前入门Arch的时候上网搜了不少安...
1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...