dispatch -N not working from command line

21 views
Skip to first unread message

redhot

unread,
Apr 30, 2011, 4:15:16 AM4/30/11
to rundeck...@googlegroups.com
Hi,

I noticed that the "dispatch -N" filters nodes differently while reporting v/s actual execution. This is same behavior on 1.2 and 1.3. Here is how to test-

- Created a new pro project
- Leave the resources.xml as default
- Create another resource file /var/tmp/resources.xml with following contents
- Run the dispatch command to first query with -- dispatch -VL -I '.*' -N /var/tmp/resources.xml and we get the expected results
- Run the dispatch command now to run something remotely -- dispatch -VL -I '.*' -N /var/tmp/resources.xml -- uname -a
- It only runs on localhost!

--- SNIP (resources.xml) ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project PUBLIC "-//DTO Labs Inc.//DTD Resources Document 1.0//EN" "project.dtd">
<project>
  <node name="ex-00" type="Node"
        description="Exmaple node -- 00"
osFamily="windows"
        hostname="c10598.example.com"  username="u2" tags="exapp,dev64"/>
  <node name="ex-01" type="Node"
        description="Exmaple node -- 01"
osFamily="windows"
        hostname="c10612.example.com"  username="u2" tags="exapp,dev64"/>
  <node name="ex-02" type="Node"
        description="Exmaple node -- 02"
osFamily="windows"
        hostname="c10616.example.com"  username="u2" tags="exapp,qa64"/>
  <node name="ex-03" type="Node"
        description="Exmaple node -- 03"
osFamily="windows"
        hostname="c10617.example.com"  username="u2" tags="exapp,qa64"/>
  <node name="ex-04" type="Node"
        description="Exmaple node -- 04"
osFamily="windows"
        hostname="c10618.example.com"  username="u2" tags="exapp,qa64"/>
  <node name="ex-05" type="Node"
        description="Exmaple node -- 05"
osFamily="windows"
        hostname="c10619.example.com"  username="u2" tags="exapp,qa64"/>
  <node name="ex-06" type="Node"
        description="Exmaple node -- 06"
osFamily="windows"
        hostname="c10620.example.com"  username="u2" tags="exapp,qa64"/>
  <node name="ex-07" type="Node"
        description="Exmaple node -- 07"
osFamily="windows"
        hostname="c10621.example.com"  username="u2" tags="exapp,qa64"/>
  <node name="ex-08" type="Node"
        description="Exmaple node -- 08"
osFamily="windows"
        hostname="c10632.example.com"  username="u2" tags="exapp,qa64"/>
  <node name="ex-10" type="Node"
        description="Exmaple node -- 10"
osFamily="windows"
        hostname="c10639.example.com"  username="u2" tags="exapp,qa64"/>
  <node name="ex-11" type="Node"
        description="Exmaple node -- 11"
osFamily="windows"
        hostname="c10640.example.com"  username="u2" tags="exapp,qa64"/>
</project>
--- SNIP ---

--- SNIP (console output) ---

[rundeck@c8771 tmp]$ dispatch -VL -I '.*' -N resources.xml  -p ex-1
debug: total unfiltered nodes=12
debug: applying nodeset filter... NodeSet{includes={hostname=.*, dominant=true, }}
ex-00 ex-01 ex-02 ex-03 ex-04 ex-05 ex-06 ex-07 ex-08 ex-10 ex-11 localhost

[rundeck@c8771 tmp]$ dispatch -VL -I '.*' -N resources.xml  -p ex-1 -- uname -a
Linux c8771.example.com 2.6.18-028stab070.14 #1 SMP Thu Nov 18 16:04:02 MSK 2010 x86_64 x86_64 x86_64 GNU/Linux
debug: total unfiltered nodes=12
debug: applying nodeset filter... NodeSet{includes={hostname=.*, dominant=true, }}
debug: Finished execution: DispatcherResult{status=true, results={localhost=[local node exec] result was success, resultcode: 0}}
--- SNIP ---

Am I missing some option to trigger remote execution? Thanks in advance.

Reply all
Reply to author
Forward
0 new messages