Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

dispatch -N not working from command line

#286

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">


--- 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 Create a page 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

Reported by starlatch · May 12th, 2011 @ 12:40 PM

State: resolved
Milestone: Rundeck 1.3
Assigned to: Greg Schueler Greg Schueler

Activity

  1. Greg Schueler
    Greg Schueler
    • Milestone set to Rundeck 1.3
    • Milestone order changed from 39 to 0

    May 16th, 2011 @ 09:49 AM

  2. Greg Schueler
    Greg Schueler
    • Tag set to bug
    • Assigned user set to Greg Schueler
    • Milestone order changed from 38 to 0

    June 8th, 2011 @ 08:36 AM

  3. Deleted User

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.