dispatch -N not working from command line
Reported by starlatch | May 12th, 2011 @ 12:40 PM | in Rundeck 1.3 (closed)
I am opening this as a bug that has been confirmed by Noah Campbell over IRC discussion. Here is the link that describes the issue on rundeck newsgroup-
https://groups.google.com/d/topic/rundeck-discuss/fBXkt4wefms/discu...
--- SNIP ---
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">
<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"/>
--- 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 ---
Here is the
Comments and changes to this ticket
-
Greg Schueler May 16th, 2011 @ 09:49 AM
- Milestone set to Rundeck 1.3
- Milestone order changed from 39 to 0
-
Greg Schueler June 8th, 2011 @ 08:36 AM
- Tag set to bug
- Assigned user set to Greg Schueler
- Milestone order changed from 38 to 0
-
Deleted User June 9th, 2011 @ 11:32 AM
- State changed from new to resolved
(from [5217919f93228f7593d1fcbceb033cfa12111e4b]) Fix -N option for dispatch [#286 state:resolved] https://github.com/dtolabs/rundeck/commit/5217919f93228f7593d1fcbce...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues
People watching this ticket
Tags
Referenced by
- 286 dispatch -N not working from command line (from [5217919f93228f7593d1fcbceb033cfa12111e4b]) Fix -N ...