Use mtl init to initialize the environment for mtl. Creates a workspace in current working directory.
mtl init Default values are: --name $(hostname) --dir $(pwd)
| [workflow] Begin execution: rundeck-workflow-node-first context: null | |
| preparing for sequential execution on 1 nodes | |
| Executing command on node: db1.prod.guitars, NodeEntryImpl{tags=[], attributes={osFamily=unix, tags=, username=db1, nodename=db1.prod.guitars, hostname=192.168.50.22, node-executor=mtl-exec, ssh-keypath=/var/lib/rundeck/.ssh/id_rsa, osName=Linux}, project='null'} | |
| NodeSet: MultiNodeSelector{nodenames=[db1.prod.guitars]} | |
| Workflow: com.dtolabs.rundeck.core.execution.workflow.StepFirstWorkflowStrategy$stepFirstWrapper@6c6599db | |
| data context: {node={tags=, username=db1, os-version=, description=, name=db1.prod.guitars, os-arch=, node-executor=mtl-exec, hostname=192.168.50.22, os-name=Linux, ssh-keypath=/var/lib/rundeck/.ssh/id_rsa, os-family=unix}, job={id=c5ac9500-7d80-4891-bcda-ca9723dadd7b, project=prod, loglevel=DEBUG, username=admin, user.name=admin, name=blar, serverUUID=null, group=null, url=http://192.168.50.3:4440/project/prod/execution/follow/9, serverUrl=http://192.168.50.3:4440/, execid=9 |
| java.lang.NullPointerException: Cannot get property 'dataContext' on null object | |
| at rundeck.services.ExecutionService.createJobReferenceContext(ExecutionService.groovy:1661) | |
| at rundeck.services.WorkflowService$_createStateForWorkflow_closure1.doCall(WorkflowService.groovy:111) | |
| at rundeck.services.WorkflowService.createStateForWorkflow(WorkflowService.groovy:94) | |
| at rundeck.services.WorkflowService$_createStateForWorkflow_closure1.doCall(WorkflowService.groovy:117) | |
| at rundeck.services.WorkflowService.createStateForWorkflow(WorkflowService.groovy:94) | |
| at rundeck.services.WorkflowService.createStateForWorkflow(WorkflowService.groovy:76) | |
| at rundeck.services.WorkflowService.createWorkflowStateListenerForExecution(WorkflowService.groovy:134) | |
| at rundeck.services.ExecutionService.executeAsyncBegin(ExecutionService.groovy:617) | |
| at rundeck.quartzjobs.ExecutionJob.executeCommand(ExecutionJob.groovy:258) |
| [vagrant@rundeck ~]$ cat /var/log/rundeck/service.log | |
| Starting rundeckd: [ OK ] | |
| WARNING: HTTPS is not enabled, specify -Drundeck.ssl.config=/var/lib/rundeck/server/config/ssl.properties to enable. | |
| 2014-01-26 01:25:25.404:INFO:oejs.Server:jetty-7.6.0.v20120127 | |
| 2014-01-26 01:25:27.483:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet | |
| 2014-01-26 01:25:28.977:INFO:/:Initializing Spring root WebApplicationContext | |
| INFO BootStrap: using rdeck.base config property: /var/lib/rundeck | |
| INFO BootStrap: loaded configuration: /etc/rundeck/framework.properties | |
| INFO BootStrap: RSS feeds disabled | |
| 2014-01-26 01:25:47.037:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/var/lib/rundeck/exp/webapp/},/var/lib/rundeck/exp/webapp |
| <joblist> | |
| <job> | |
| <id>6c322f98-5967-42a2-93ba-f37021b661b1</id> | |
| <loglevel>INFO</loglevel> | |
| <sequence keepgoing='false' strategy='node-first'> | |
| <command> | |
| <scriptargs /> | |
| <script><![CDATA[#!/usr/bin/env bash | |
| env|grep RD_NODE|sort]]></script> |
| 12/21/13 12:33:39 PM =========================================================== | |
| -- Counters -------------------------------------------------------------------- | |
| com.simplifyops.rundeck.plugin.resources.RightscaleAPIRequest.authentication | |
| count = 2 | |
| com.simplifyops.rundeck.plugin.resources.RightscaleAPIRequest.request.fail | |
| count = 0 | |
| com.simplifyops.rundeck.plugin.resources.RightscaleAPIRequest.request.success | |
| count = 1818 |
| Node get(String href, Map params) { | |
| if (null == href) throw new IllegalAccessException("href cannot be null") | |
| if (!href.endsWith('.xml')) { | |
| href= href+'.xml' | |
| } | |
| System.out.println("DEBUG: RightscaleAPIRequest.RestClient: Getting resource by href: ${href}") | |
| /** | |
| * Request the servers data as XML | |
| */ | |
| def request = href as Rest; |
| --- | |
| description: Allow read access for projects. | |
| context: | |
| application: 'rundeck' | |
| for: | |
| resource: | |
| - allow: [read] | |
| project: | |
| - allow: [read] |
| # framework.properties - | |
| # | |
| # $Id: framework.properties.template 2128 2010-08-17 21:29:24Z ahonor $ | |
| # | |
| # ---------------------------------------------------------------- | |
| # Installation locations | |
| # ---------------------------------------------------------------- | |
| # |
| bartholemew: | |
| description: Webapp node | |
| hostname: bartholemew | |
| nodename: bartholemew | |
| tags: 'redis_server,tagA,tagB' | |
| username: greg | |
| app_role: redis_server | |
| app-port: 550 | |
| https-port: 553 |