Debian Codegraph @

ChangeLog

raw
1 2026-07-16 S. Thiell <[email protected]>
2
3 * Version 1.10.1 released. The main changes are listed below.
4
5 * setup: install the ansible.conf.example group source example, which
6 was missing from binary packages in 1.10 (#645)
7
8 * NodeSet: fix stepped slices across multiple patterns on Python 3 (#661)
9
10 * RangeSet: fix unpickling of empty sets (#658)
11
12 * Communication: pin the pickle protocol used for gateway messages, fixing
13 tree mode across mixed Python versions with Python 3.14 (#658)
14
15 * Communication: fix TypeError when reporting channel errors (#673)
16
17 * Tree: report gateway errors received before channel setup (#674)
18
19 * Tree: fix rcopy extraction error reporting (#663)
20
21 * EngineClient: remove stream on broken pipe, fixing a possible hang with
22 the select engine (#651, #652)
23
24 * Engine: fix error handling in the EPoll and Select event loops (#662)
25
26 * conf: remove the deprecated Cray ACE group source example (#644)
27
28 * packaging: remove the unmaintained in-repo RPM spec file; RPM packaging
29 is maintained in the Fedora and EPEL repositories (#643)
30
31 * doc: refresh the installation guide (#653)
32
33 * doc: port library examples to Python 3 (#654)
34
35 * doc: coverage, accuracy and rendering improvements across man pages and
36 Sphinx docs (#648, #655, #666, #671, #675)
37
38 * doc: modernize the Sphinx build: remove stale epydoc config, enable
39 viewcode, update build requirements; animate the tree mode diagram
40 (#667, #668, #669, #670)
41
42 * tests: add bash completion tests and improve test portability and
43 reliability (#650, #664, #665)
44
45 * CI: build the documentation with warnings as errors on every change (#649)
46
47 * CI: publish releases to PyPI with a GitHub Actions workflow using
48 Trusted Publishing (#646)
49
50 2026-07-04 S. Thiell <[email protected]>
51
52 * Version 1.10 released. The main changes are listed below.
53
54 * NodeUtils: add the 'mapall' group source upcall to retrieve all group
55 mappings in a single call, greatly speeding up group resolution on slow
56 sources (#612, #613)
57
58 * NodeUtils: do not pass stdin to group source upcalls (#581)
59
60 * NodeSet, RangeSet: add a list-like index() method returning the position
61 of a node or element, the inverse of [i] (#631, #633)
62
63 * cluset, nodeset: add a --index command to output a node's position in the
64 set, the reverse of -I/--slice (#637)
65
66 * groups.conf: add mapall upcalls to the Slurm group bindings (#623)
67
68 * groups.conf: add an Ansible inventory group source example (#610)
69
70 * clush, clubak: add --axis to fold nD node sets along selected axis only,
71 as already supported by nodeset and cluset (#356)
72
73 * Display: fix line buffering on Python 3.6 (#597)
74
75 * Tree: implement TreeWorker.abort() and per-gateway abort, with gateway
76 failover fixes (#229, #566)
77
78 * Tree: fire ev_pickup only once the command can no longer be rerouted and
79 improve reroute event reporting (#594)
80
81 * Tree: fix rcopy when a remote node closes (#545)
82
83 * Tree: improve handling of MessageProcessingError (#596)
84
85 * Tree: keep tar/scp errors on stderr instead of stdout during forward
86 copy (#622)
87
88 * Tree: pass filter='fully_trusted' to tarfile.extractall() (PEP 706) (#617)
89
90 * EngineClient: properly honor the abort flag on close (#591)
91
92 * Engine: fix set_events debug logging to identify the client and stream (#630)
93
94 * Task: only terminate a task once when killed, fixing a double termination
95 (#110, #640)
96
97 * NodeUtils, Topology: emit a DeprecationWarning for set_verbosity() and the
98 topology.conf [Main] section (#226, #639)
99
100 * Gateway: fix a Python 2 syntax error (#625)
101
102 * RangeSet: accept unicode strings on Python 2 (#635)
103
104 * completion: complete copy paths and command, and short options without
105 spaces (#585, #586)
106
107 * completion: treat -b/-B and clush's other no-arg options as flags (#598, #619)
108
109 * completion: fix cluset no-arg option lists (#620)
110
111 * doc: clarify the '*' all-nodes wildcard versus the literal 'all' group
112 source (#552)
113
114 * doc: HPSF onboarding (charter, DCO, governance) and misc doc fixes
115 (#577, #604)
116
117 * setup: clean up wheel packaging metadata (#634)
118
119 * CI: add Python 3.14 to the test matrix; run the test suite with the
120 standard library unittest instead of the abandoned nosetests runner
121 (#603, #618)
122
123 2025-01-23 S. Thiell <[email protected]>
124
125 * Version 1.9.3 released. The main changes are listed below.
126
127 * Added bash completions (#563)
128
129 * Communication: sax parser: add flush() after feed() (#556)
130
131 * Additional Slurm binding options (#558 and #561)
132
133 * clush: use set instead of NodeSet for runtime progress info (#562)
134
135 * Tree: Tree: use set instead of NodeSet for gwtargets tracking (#562)
136
137 * CLI/Nodeset: omit @source: prefix for cluset -s source -L (#563) (#570)
138
139 2023-09-29 S. Thiell <[email protected]>
140
141 * Version 1.9.2 released. The main changes are listed below.
142
143 * CLI: fix line buffering with Python 3 (#528)
144
145 * clush: fix --[r]copy dest when --dest is omitted (#525)
146
147 * NodeUtils: allow null values in cluster.yaml (#533)
148
149 * Topology: check that node groups/wildcards are non-empty (#527)
150
151 * rpm: xcat.conf.example missing (#526)
152
153 2023-02-09 S. Thiell <[email protected]>
154
155 * Version 1.9.1 released. The main changes are listed below.
156
157 * clush: select proper last parsed config file (#511) (#512)
158
159 * setup.py: update download url and remove python 2.6 support (#508)
160
161 * setup.py: improvements for pip install and venv (#510)
162
163 * doc: correct typo 'sterr' (#513)
164
165 * Fix typos found with codespell (#514)
166
167 * RangeSet: support negative ranges (#515) (#518)
168
169 * RangeSet: remove duplicate intiter() definition (#519)
170
171 2022-11-25 S. Thiell <[email protected]>
172
173 * Version 1.9 released. The main changes are listed below.
174
175 * clush: add --mode support with sudo and sshpass examples (#198,#234,#423)
176
177 * clush: add same arguments '--outdir=OUTDIR' and '--errdir=ERRDIR' as
178 pssh (#470)
179
180 * clush: always close stdin stream of worker when it is not used (#478)
181
182 * clush: use daemon attribute instead of deprecated setDaemon() (#479)
183
184 * slurm.conf.example: filter out more Slurm node state flags (#469)
185
186 * NodeSet: add special notation @@source to expand group names (#468)
187
188 * RangeSet: nD folding optimization (#485)
189
190 * RangeSet: support ranges with zero padding of mixed lengths (#293, #473)
191
192 * RangeSet: add explicit intiter() method to iterate over integers (#476)
193
194 * EngineClient: EnginePort improvements, add event ev_port_start() (#481)
195
196 * Tree: fix start and bufferize early writes (#482)
197
198 * Tree: fix error with intermediate gateways (#471)
199
200 * Defaults: Introduce CLUSTERSHELL_CFGDIR (#483)
201
202 * Fix for python-3.10 (#484)
203
204 * Worker: deprecate old EventHandler method signatures (#358)
205
206 * Worker: remove old last_*() methods (#226)
207
208 * tests: misc. improvements (#110, #501, #502, 503)
209
210 2021-11-03 S. Thiell <[email protected]>
211
212 * Version 1.8.4 released. The main changes are listed below.
213
214 * RangeSetND: fix padding info when slicing using __getitem__() (#429)
215
216 * Defaults: Allow out-of-tree worker modules
217
218 * NodeUtils: allow YAML list to declare node groups (#438)
219
220 * Tree: Use default local_worker and allow overriding Defaults
221
222 * Worker/Rsh: return maxrc properly for Rsh Worker (#448)
223
224 * xCAT binding: add support for spaces in group names (#459)
225
226 * CLI/Clush: Avoid python3 error with no stdin (#460)
227
228 * CLI/Clush: use os.read() in stdin thread (#463)
229
230 * CLI/Clush: Add maxrc option to clush.conf (#451)
231
232 * CLI/Display: Add support for NO_COLOR and CLICOLOR (#428) (#432)
233
234 2019-12-01 S. Thiell <[email protected]>
235
236 * Version 1.8.3 released. The main changes are listed below.
237
238 * NodeUtils: use yaml.safe_load() instead of default loader (#417)
239
240 * Tree-mode doesn't work with multi-hop gateways (#419)
241
242 * Silent error on Python version mismatch with gateway (#388)
243
244 * clush: support --worker/-R when topology.conf is present (#386)
245
246 2019-08-12 S. Thiell <[email protected]>
247
248 * Version 1.8.2 released. The main changes are listed below.
249
250 * CLI/Display: use utf-8 (or non-ascii) encoding (#400)
251
252 * Defaults: add NodeSet's default folding axis (#401)
253
254 * EngineTimer: fix misuse of epsilon when firing timer (#399)
255
256 * xCAT group bindings: performance update (#398)
257
258 * Slurm group bindings: fix issue where job ids were used instead of user
259 names (#405)
260
261 * Doc: disable smartquotes (#402) and fix typo, %r is not for rank (#409)
262
263 * Packaging: add support for RHEL8 (#413)
264
265 2018-10-30 S. Thiell <[email protected]>
266
267 * Version 1.8.1 released. The main changes are listed below.
268
269 * Tree: support offline gateways (#260)
270
271 * CLI: added the following command line options (#336):
272 --conf to specify alternative clush.conf (clush only)
273 --groupsconf to specify alternative groups.conf (all CLIs)
274
275 * NodeSet: speed-up nodeset parsing (#370)
276
277 * EventHandler: reinstate ev_error and ev_timeout as deprecated (#377)
278
279 * nodeset/cluset CLI: allow literal new line in -S, so both -S "\n" and
280 -S $'\n' will work
281
282 * nodeset/cluset CLI: handle multiline shell arguments in options (#394)
283
284 2017-10-23 S. Thiell <[email protected]>
285
286 * Version 1.8 released.
287
288 2017-10-18 S. Thiell <[email protected]>
289
290 * 1.8 RC1 (1.7.91) release.
291
292 2017-10-14 S. Thiell <[email protected]>
293
294 * NodeSet.py: add node wildcard support (ticket #349).
295
296 2017-10-02 S. Thiell <[email protected]>
297
298 * 1.8 beta2 (1.7.82) release.
299
300 * CLI: make color output legible on dark backgrounds (#334)
301 * Event API 2.0: new ev_* method signatures (#232)
302 * CLI/Clush.py: initialize logging earlier (#348)
303 * NodeUtils: ignore YAML group files with permission error (#348)
304 * CLI/Clush.py: fix mishandled broken pipe in Python 3
305 * CLI/Nodeset: display warning on misplaced set operation (#318)
306
307 2017-09-01 S. Thiell <[email protected]>
308
309 * 1.8 beta1 (1.7.81) release.
310
311 2017-08-09 S. Thiell <[email protected]>
312
313 * Added Python 3 support (#337).
314
315 2017-07-27 S. Thiell <[email protected]>
316
317 * NodeUtils.py: fix external reverse node group upcall caching issue.
318
319 2017-06-27 S. Thiell <[email protected]>
320
321 * CLI/Clush.py: add -n as an alias of --nostdin (#333).
322
323 2017-04-29 S. Thiell <[email protected]>
324
325 * NodeSet.py: allow fully numeric node names (ticket #338).
326
327 2017-02-21 S. Thiell <[email protected]>
328
329 * Worker/Tree.py: fix defect in file copying code when destination target
330 directory is provided (ticket #332).
331
332 2016-12-20 S. Thiell <[email protected]>
333
334 * Version 1.7.3 released.
335
336 * conf/groups.conf.d: add an external group source example file for xCAT
337 static groups (xcat.conf.example).
338
339 2016-12-18 S. Thiell <[email protected]>
340
341 * Clush.py: fix sorting issue with clush -L (ticket #326).
342
343 2016-11-06 S. Thiell <[email protected]>
344
345 * cluset: add cluset command with doc to avoid a conflict with xCAT's
346 nodeset command (ticket #300).
347
348 2016-10-12 All contributors
349
350 * Change license from "CeCILL-C V1" to "LGPL v2.1 or later".
351
352 2016-10-04 S. Thiell <[email protected]>
353
354 * setup.py: remove scripts/*; use console_scripts instead.
355
356 2016-10-02 S. Thiell <[email protected]>
357
358 * Tree.py: in copy mode, do not send tar data to local targets, but only
359 remote ones; this does fix broken pipe errors (ticket #319).
360
361 * Engine.py: implement basic per worker fanout (private), allowing the use
362 of fanout=1 in tree mode (ticket #322).
363
364 2016-06-18 S. Thiell <[email protected]>
365
366 * Version 1.7.2 released.
367
368 2016-06-07 D. Martinet <[email protected]>
369
370 * Clush/Nodeset: add --pick N option (ticket #311).
371
372 2016-05-22 S. Thiell <[email protected]>
373
374 * Tree.py: fix the tracking of gateway active targets (ticket #308).
375 * EngineClient.py: handle broken pipe on write() (ticket #196).
376
377 2016-04-24 S. Thiell <[email protected]>
378
379 * NodeSet.py: allow empty string as valid argument for empty NodeSet
380 objects (ticket #294).
381
382 2016-02-28 S. Thiell <[email protected]>
383
384 * Version 1.7.1 released.
385
386 2016-02-27 S. Thiell <[email protected]>
387
388 * Worker/Tree.py: implement tree mode reverse copy using tar commands to
389 fix clush --rcopy (ticket #290).
390
391 * Communication.py: remove 76-char base64 encoding fixed length
392 restriction for tree XML payload communication. The default max length is
393 now 64K, which gives good results. The environment variable
394 'CLUSTERSHELL_GW_B64_LINE_LENGTH' is propagated to gateways and may be
395 used to override this value.
396
397 2016-02-12 S. Thiell <[email protected]>
398
399 * RangeSet.py and NodeSet.py: fix bad 0-padding handling by RangeSetND or
400 NodeSet objects in nD (ticket #286).
401
402 2016-02-09 S. Thiell <[email protected]>
403
404 * NodeSet.py: fix parser issue when brackets were used with nodeset
405 starting with a digit (ticket #284).
406
407 2015-11-30 S. Thiell <[email protected]>
408
409 * CLI/Nodeset.py: fix --output-format / -O when folding (-f) by applying
410 the provided format to each node (ticket #277).
411
412 2015-11-10 S. Thiell <[email protected]>
413
414 * Version 1.7 released.
415
416 2015-11-01 S. Thiell <[email protected]>
417
418 * Clush.py: added -P/--progress to force display of the live progress
419 indicator and display global write bandwidth when writing standard input.
420
421 2015-10-25 S. Thiell <[email protected]>
422
423 * Clush.py: added --option/-O clush.conf settings override (pull
424 request #248).
425
426 2015-10-18 S. Thiell <[email protected]>
427
428 * Clush.py: added --hostfile command line option to specify a file
429 containing single hosts, node sets or node groups (ticket #235).
430
431 2015-10-16 S. Thiell <[email protected]>
432
433 * NodeSet.py: enhancing parser to recognize nodesets with brackets having
434 leading/trailing digits like in "prod-00[01-99]" (ticket #228).
435
436 2015-08-29 S. Thiell <[email protected]>
437
438 * CLI/Nodeset.py: added --axis option to choose nD fold axis (ticket
439 #269).
440 * NodeSet.py: added fold_axis public member to NodeSetBase along with
441 expand algorithm when casting to string to choose nD fold axis (ticket
442 #269).
443
444 2015-08-28 S. Thiell <[email protected]>
445
446 * CLI/Config.py: better per-user clush.conf support. clush now also checks
447 for $XDG_CONFIG_HOME/clustershell/clush.conf and
448 $HOME/.local/etc/clustershell/clush.conf (ticket #111).
449
450 2015-08-27 S. Thiell <[email protected]>
451
452 * CLI/Nodeset.py: add --list-all / -L to list groups from all group
453 sources (ticket #266). If repeated, it has the same behavior than -l.
454
455 * NodeUtils.py: add support for built-in groups definition files based on
456 YAML. Added autodir configuration option in groups.conf to declare a
457 directory where .yaml files are automatically loaded. Example available in
458 groups.d/cluster.yaml.example. Added support for groups.conf section with
459 multiple source names separated by comma. This is also the case for
460 groups.conf.d/*.conf extensions. Also added new upcall command $SOURCE
461 variable that is replaced by calling source name before execution.
462 Finally, /etc/clustershell/groups is now deprecated and replaced by
463 /etc/clustershell/groups.d/local.cfg for new installation (ticket #258).
464
465 2015-07-07 S. Thiell <[email protected]>
466
467 * CLI/Nodeset.py: add --autostep=auto and --autostep=x% option (#161).
468
469 * NodeSet: add autostep property to allow changing the way every RangeSet of
470 a NodeSet object is displayed (eg. node[2-8/2] instead of node[2,4,6,8]).
471 Autostep value is the min number of indexes that are found at equal distance
472 of each other inside a range before NodeSet starts to use this syntax.
473
474 2015-05-18 S. Thiell <[email protected]>
475
476 * Version 1.6.92 released.
477
478 2015-04-10 S. Thiell <[email protected]>
479
480 * Tree: implement task.copy() in tree mode using temporary tar file.
481
482 2015-04-01 S. Thiell <[email protected]>
483
484 * Tree: allow local command execution on gateways by adding remote=False to
485 task.shell()/run(). In practice with this patch, we can now easily
486 execute local commands on (remote) gateways using node argument like
487 `ipmitool -H %h` to spread the load between gateways.
488
489 2015-03-24 S. Thiell <[email protected]>
490
491 * NodeSet.py: disallow opening bracket after digit (ticket #228).
492
493 2015-03-23 S. Thiell <[email protected]>
494
495 * Clush.py: Warn user of possible use of shell globbing, especially when
496 using brackets and bash without GLOBIGNORE set (ticket #225).
497 * Clush.py: Fix --diff against null content (ticket #214).
498
499 2015-03-19 S. Thiell <[email protected]>
500
501 * Task.py: Make max_retcode() return None on no-op. Until now, max_retcode()
502 returned 0 by default, so even when no command was able to finish (for
503 example, due to reached timeout). This behavior did not allow users to
504 distinguish between successful commands and such no-op.
505
506 2015-03-11 S. Thiell <[email protected]>
507
508 * Worker.py: Introduce StreamWorker as a generic worker class to manage a
509 set of streams (using one EngineClient with multiple I/O streams
510 internally). It's a concrete class that is now used in Gateway.py to
511 manage I/O from the parent host in tree propagation mode. Also changed
512 WorkerSimple (and thus WorkerPopen) to inherit from StreamWorker.
513
514 2014-05-20 S. Thiell <[email protected]>
515
516 * EngineClient.py: Code improvement to support multiple customizable I/O
517 streams per EngineClient in different mode, each being named and having
518 their own read/write buffers and attributes.
519
520 2014-04-30 A. Degremont <[email protected]>
521
522 * Clush.py: Add a 'worker' option to switch default worker (ticket #221).
523
524 2014-04-23 S. Thiell <[email protected]>
525
526 * EPoll.py: Close epoll control file descriptor when engine is released.
527
528 2014-01-26 A. Degremont <[email protected]>
529
530 * NodeUtils.py: Add group source caching expiration (ticket #98).
531
532 2014-01-16 S. Thiell <[email protected]>
533
534 * RangeSet.py: Multidimensional RangeSet support (new RangeSetND class).
535 Created RangeSetND class to manage a matrix of RangeSet objects. Folding
536 of such objects is quite complex and time consuming. A special
537 optimization is provided when only one dimension is varying. Patch by
538 [email protected] and [email protected].
539
540 * NodeSet.py: Multidimensional nodeset support. Added support of
541 RangeSetND to NodeSet. Optimized NodeSet so that 1D NodeSet objects are
542 still using RangeSet (ticket #92). Also benefiting from RangeSetND
543 optimization when only one dimension is varying. Patch by
544 [email protected] and [email protected].
545
546 2014-01-14 S. Thiell <[email protected]>
547
548 * NodeSet.py: fix and clean fromall()/@* magic and add resolver option to
549 grouplist()'s NodeSet module function.
550
551 2014-01-14 S. Thiell <[email protected]>
552
553 * NodeSet.py: Define module API to access and set group resolver used for
554 @-prefixed (eg. '@group') resolution. This is used to circumvent accessing
555 and setting NodeSet module's variable 'RESOLVER_STD_GROUP' directly, which
556 is not convenient and error prone. The new functions are
557 std_group_resolver() and set_std_group_resolver(). Updated User Guide.
558
559 * CLI/Clush.py: ignore IOError on stdin reader thread, but print a warning
560 in verbose or debug mode (ticket #201).
561
562 2014-01-06 S. Thiell <[email protected]>
563
564 * NodeSet.py: Fix internal implementation of NodeSet.contiguous(), that
565 is, as NodeSet is mutable, we should avoid using the same NodeSet instance
566 in NodeSet.contiguous() for different NodeSet values.
567
568 2013-12-17 S. Thiell <[email protected]>
569
570 * Task.py: fix task.iter_buffers() and worker.iter_buffers() to allow
571 optional argument match_keys to be an empty list for convenience. It
572 should be set to None to disable match_keys check. Also check that
573 match_keys is a true key/node sequence and not a string.
574
575 2013-11-05 S. Thiell <[email protected]>
576
577 * EngineClient.py: Hide unwanted debug messages: when aborting a task,
578 cleanup of associated resources may lead to dropped inter-task messages
579 through the EnginePort mechanism. We now only display associated warning
580 messages when debugging is enabled...
581
582 * Task.py: Fix abort() race condition.
583
584 * CLI/Clush.py: Fix a defect to allow the use of command timeout when
585 copying files (with clush -u delay -c ..., ticket #220).
586
587 2013-11-04 A. Degremont <[email protected]>
588
589 * Worker/Rsh.py: Add a Rsh worker. It is compatible with rsh clones
590 like mrsh/krsh. (ticket #216).
591 * Task.py: Add a 'worker' default option for Task object. It is used
592 in Task.shell() and Task.copy().
593
594 2012-09-13 S. Thiell <[email protected]>
595
596 * Engine.py: Allow EngineTimer with immediate fire date, that is, a fire
597 delay of 0s. Obviously not fired in time, such a timer will still be armed
598 and fired as soon as possible (ticket #200).
599
600 2012-08-27 S. Thiell <[email protected]>
601
602 * Engine.py: Fix catch-all used in case of KeyboardInterrupt exception
603 during runloop, resulting in ghost engine clients in that case and results
604 possibly not cleaned properly (ticket #199).
605
606 2012-08-01 S. Thiell <[email protected]>
607
608 * CLI/Clush.py: Fix clush_exit() side effects thanks to latest task
609 termination improvements (tickets #185).
610
611 * Task.py: Avoid termination race condition when using multiple threads
612 and calling abort()+join() from another thread (tickets #197).
613
614 2012-07-09 S. Thiell <[email protected]>
615
616 * NodeSet.py: "All nodes" extended pattern support with @* (ticket #193).
617
618 2012-04-08 S. Thiell <[email protected]>
619
620 * Version 1.6 released.
621
622 * doc/guide: Add ClusterShell User and Programming Guide LaTeX source to
623 repository.
624
625 2012-04-07 S. Thiell <[email protected]>
626
627 * doc/examples/check_nodes.py: Add simple example of event-driven script.
628
629 2012-03-31 S. Thiell <[email protected]>
630
631 * CLI/Nodeset.py: Allow -a and common nodeset operations when using -l to
632 list belonging groups (a new 1.6 feature, see ticket #162).
633
634 2012-03-29 S. Thiell <[email protected]>
635
636 * Worker/Worker.py: added documentation for
637 worker.current_[node,msg,errmsg,rc] variables (ticket #160).
638
639 * Task.py: timeout parameters better explained (ticket #157).
640
641 2012-03-28 S. Thiell <[email protected]>
642
643 * CLI/OptionParser.py: Add --diff option to enable diff display between
644 gathered outputs. Enabled in clush and clubak (ticket #176).
645
646 * CLI/Display.py: Add _print_diff() and flush() methods.
647
648 * Task.py: Initialize MsgTree instances in constructor according to
649 default values in order to allow no-op calls to buffer getters before
650 resume() (ticket #186).
651
652 2012-03-26 S. Thiell <[email protected]>
653
654 * CLI/Clush.py: Fix clush --[r]copy behavior when no source directory is
655 specified (ticket #172).
656
657 * CLI/Clush.py: Fix interactive mode gather/standard toggle error, when
658 using special character '=' (ticket #171).
659
660 * CLI/Clubak.py: Add -v/-q verbosity options (ticket #174).
661
662 2012-03-24 S. Thiell <[email protected]>
663
664 * CLI/Clubak.py: Add --interpret-keys=never,always,auto option to clubak
665 to allow a more generic usage of clubak, ie. even in cases where keys are
666 not nodeset compliant (ticket #180).
667
668 2012-03-21 S. Thiell <[email protected]>
669
670 * conf/groups.conf: Fix group cross reference issue (ticket #183), we now
671 use sed commands instead of awk ones in this default groups.conf file.
672
673 2012-03-18 S. Thiell <[email protected]>
674
675 * conf/groups.conf: Fix default source regexp for mawk (ticket #178).
676
677 * Packaging: Add groups.conf.d directory and sample files.
678
679 2012-03-17 S. Thiell <[email protected]>
680
681 * CLI/Nodeset.py: Add support for -l[ll] <nodeset(s)> to list belonging
682 groups (CLI interface to NodeSet.groups()) (ticket #162).
683
684 * NodeSet: Add groups() public method to list groups nodeset belongs to.
685
686 2012-03-15 S. Thiell <[email protected]>
687
688 * NodeUtils.py: Add groupsdir option (ticket #179).
689
690 2012-03-14 S. Thiell <[email protected]>
691
692 * CLI/Nodeset.py: Add --contiguous splitting option (ticket #173).
693
694 * NodeSet.py: Add contiguous() iterator.
695
696 * RangeSet.py: Add contiguous() iterator.
697
698 * RangeSet.py: Allow slice object in fromone() constructor.
699
700 2012-02-26 S. Thiell <[email protected]>
701
702 * Gateway.py: Improved logging facility, configurable through
703 CLUSTERSHELL_GW_LOG_DIR and CLUSTERSHELL_GW_LOG_LEVEL environment
704 variables from the root node.
705
706 * Communication.py: Messages are now transferred in xml payload instead of
707 'output' attribute for improved handling of multi-lines messages in
708 StdOutMessage and StdErrMessage.
709
710 2012-02-24 S. Thiell <[email protected]>
711
712 * Worker/EngineClient.py: Fix gateway write performance issue, as seen on a
713 very large cluster with a no-grooming test case and lots of small messages
714 sent, by calling os.write() as soon as possible (might safely fail if not
715 ready as we are in non-blocking mode).
716
717 * NodeSet.py: Internal parsing optimization by adding a "should copy
718 RangeSet object?" flag to NodeSetBase constructor in order to save useless
719 but slightly costly RangeSet.copy() calls.
720
721 * NodeSet.py: Small rangeset parsing optimization on single node string
722 parsing code.
723
724 2012-02-19 S. Thiell <[email protected]>
725
726 * NodeSet.py: Add NodeSet.nsiter(), a fast iterator on nodes as NodeSet
727 objects to avoid object-to-string-to-object conversion in some cases when
728 using __iter__() -- like in PropagationTreeRouter.dispatch().
729
730 2012-02-15 S. Thiell <[email protected]>
731
732 * Clush.py: Add --topology <file> hidden option to enable V2 tree
733 propagation technology preview.
734
735 2012-02-01 S. Thiell <[email protected]>
736
737 * RangeSet.py: Fix RangeSet.__setstate__() for proper object unpickling
738 from older RangeSet versions. Add unpickling tests.
739
740 2012-01-28 S. Thiell <[email protected]>
741
742 * RangeSet.py: Discard AVL-tree based implementation, as we noticed that
743 built-in set is much faster. New implementation is based on built-in set,
744 and slightly changes padding and __iter__() behaviors. Padding value is
745 now accessible and settable at any time via a public variable "padding".
746 Auto-detection of padding is still available, but it is used as a
747 convenience for printing range sets. Moreover, all set-like operations are
748 now only based on integers, ignoring RangeSet's padding value. __iter__()
749 has been changed in order to iterate over sorted inner set integers,
750 instead of string items. A new method striter() is available to iterate
751 over string padding-enabled items. These changes allow us to offer a full
752 set-like API for RangeSet (new methods like isdisjoint(), pop(), etc. are
753 available according to your Python version). Also, a new constructor that
754 take any iterable of integers is available. Finally, this implementation
755 should much more faster than all previous ones, especially for large range
756 sets (ten thousand and more) with lots of holes.
757
758 2012-01-10 S. Thiell <[email protected]>
759
760 * RangeSet.py: Move RangeSet class from NodeSet.py to this new module
761 dedicated to scalable management of cluster range sets (tens of thousands
762 of disjoint ranges). Change internal algorithm used to manage ranges from
763 a list to an AVL-tree based on bintrees project's avltree implementation.
764 Got rid of expand/fold() methods that don't scale, all sets-like methods
765 have been rewritten using AVL-tree.
766
767 2012-01-04 S. Thiell <[email protected]>
768
769 * Task.py: Change behavior of shell()'s tree=None (auto) parameter: added
770 Task default parameter "auto_tree" defaulting to False and checked by
771 shell() when tree=None. This means that even with a valid topology
772 configuration file, the user has to explicitly enable tree mode for now.
773 This is for next 1.6 release and should be changed to True in version 2.0.
774
775 2011-11-28 S. Thiell <[email protected]>
776
777 * Task.py: Fix 'tree' option of shell(), which can be either True (force
778 enable tree mode), False (disable tree mode) and None (automatic).
779
780 2011-11-24 S. Thiell <[email protected]>
781
782 * CLI/Clush.py: Enable tree mode by default with grooming option.
783
784 * Worker/Tree.py: Integrate WorkerTree within ClusterShell Engine
785 framework, it will be used instead of PropagationTree.
786
787 * Engine/Engine.py: Inhibit any engine client changes when client is not
788 registered.
789
790 * Topology.py: Change DEFAULT section to Main section in topology.conf.
791 Cosmetic changes.
792
793 2011-06-09 S. Thiell <[email protected]>
794
795 * Version 1.5.1 released.
796
797 * NodeSet.py: Added workaround to allow pickling/unpickling of RangeSet
798 objects for Python 2.4 (ticket #156).
799
800 2011-06-08 S. Thiell <[email protected]>
801
802 * Version 1.5 released (Sedona release).
803
804 2011-06-07 S. Thiell <[email protected]>
805
806 * MsgTree.py: Improved MsgTree API to lighten updates of keys associated
807 to tree elements (ticket #131).
808
809 * CLI/Clubak.py: Updated for new MsgTree API and added a -F/--fast switch
810 to enable preloading of whole messages to speed up processing, but with
811 an increase of memory consumption (ticket #131).
812
813 2011-05-31 S. Thiell <[email protected]>
814
815 * NodeSet.py: Optimized NodeSet.fromlist() method by adding updaten()
816 method which is quite O(num_patterns).
817
818 2011-05-29 S. Thiell <[email protected]>
819
820 * NodeSet.py: Fixed missing autostep check in _fold() which could lead to
821 autostep not being taken into account (ticket #150).
822
823 * Worker/Ssh.py: Fix scp user option in Scp class (ticket #152).
824
825 * Engine/*.py: Internal engine design change: do not retry engine
826 eventloop on any EngineClient registration changes, so process more events
827 by chunk (should be faster) and add a loop iteration counter to work
828 around internally re-used FDs (finalize ticket #153).
829
830 2011-05-26 S. Thiell <[email protected]>
831
832 * Worker/EngineClient.py: Enable fastsubprocess module, and use file
833 descriptors instead of file objects everywhere (ticket #153).
834
835 * Worker/fastsubprocess.py: Faster, relaxed version of Python 2.6
836 subprocess.py with non blocking fd support.
837
838 2011-05-15 S. Thiell <[email protected]>
839
840 * Engine/Engine.py: Improved start_all() fanout algorithm by adding a
841 separate pending clients list.
842
843 * Created 1.5 branch.
844
845 2011-03-19 S. Thiell <[email protected]>
846
847 * Version 1.4.3 released.
848
849 * CLI/Nodeset.py: Make stdin '-' keyword work when used for -i/x/X
850 operations (ticket #148).
851
852 * CLI/Clush.py: Fixed issue when using clush -bL (missing argument) due to
853 latest 1.4.2 changes. Added tests/ClushScriptTest.py to detect that in
854 the future (ticket #147).
855
856 2011-02-15 S. Thiell <[email protected]>
857
858 * Version 1.4.2 released.
859
860 2011-03-12 S. Thiell <[email protected]>
861
862 * NodeSet.py: Fixed issues with objects copying, so got rid of copy module
863 and added optimized RangeSet.copy() and NodeSet.copy() methods (ticket
864 #146).
865
866 2011-03-09 S. Thiell <[email protected]>
867
868 * CLI/Clush.py: Added running progress indicator for --[r]copy commands.
869
870 2011-03-08 S. Thiell <[email protected]>
871
872 * CLI/Clush.py: Improved -v switch (closes ticket #100: print live node
873 output plus noderange-grouped output at the end).
874
875 * CLI/Clubak.py: Add -T,--tree message tree mode option (ticket #144).
876
877 * MsgTree.py: Class initialization variant (trace mode) to keep track of
878 old keys/nodes for each message (part of #144).
879
880 2011-03-06 S. Thiell <[email protected]>
881
882 * CLI/Clush.py: Implement clush -L (not -bL) to order output by nodename,
883 like clubak -L (ticket #141).
884
885 * CLI/Nodeset.py: Added -I/--slice command option to select node(s) by
886 index(es) or RangeSet-style slice (ticket #140).
887
888 * CLI/Nodeset.py: Remove pending limitation when using -[ixX] operations
889 with nodesets specified by -a (all) or through stdin.
890
891 * NodeSet.py: Add RangeSet.slices() method.
892
893 2011-03-05 S. Thiell <[email protected]>
894
895 * NodeSet.py: Internal changes to use slice type to represent ranges in
896 RangeSet. Changed RangeSet.add_range() 'stop' argument semantic, it is now
897 conforming to range()'s one.
898
899 * NodeSet.py: Fix issue with in-place operators returning None. Added
900 tests.
901
902 2011-02-27 S. Thiell <[email protected]>
903
904 * NodeSet.py: Fix issue when using negative index or negative slice
905 indices for RangeSet and NodeSet.
906
907 2011-02-24 S. Thiell <[email protected]>
908
909 * CLI/Nodeset.py: Add -ll and -lll extended options to list corresponding
910 group nodes, and also group node count (ticket #143).
911
912 2011-02-13 S. Thiell <[email protected]>
913
914 * Version 1.4.1 released.
915
916 2011-02-08 S. Thiell <[email protected]>
917
918 * CLI/Config.py: Add fd_max integer parameter to set the max number of
919 open files (soft limit) permitted per clush process. This will fix an
920 issue on systems where hard limit is not reasonable.
921
922 2011-02-07 S. Thiell <[email protected]>
923
924 * CLI/OptionParser.py: Add clush -E <engine> hidden option to enforce a
925 specific I/O events engine (should not be needed, but can be useful for
926 testing). Improve engine selection error handling.
927
928 2011-02-06 S. Thiell <[email protected]>
929
930 * Engine/Select.py: New select()-based engine (from H. Doreau, ticket #8).
931
932 * CLI/{Clush,Display}.py: Do not display exit code with clush when -qS is
933 specified (ticket #117).
934
935 * CLI/Clush.py: Allow clush to run without argument when stdin is not a
936 tty, by disabling ssh pseudo-tty allocation. You can now type `echo uname
937 | clush -w <nodes>` (ticket #134).
938
939 * Worker/Ssh.py: Fix issue when more than one ssh options are specified
940 with -o or in clush.conf (ticket #138).
941
942 2011-02-05 S. Thiell <[email protected]>
943
944 * CLI/Clush.py: Fix issue when executing local command with clush -b in
945 interactive mode (eg. !uname).
946
947 * Worker/Worker.py: Define new current_node, current_msg, current_errmsg
948 and current_rc Worker variables, updated at each event (last_read(),
949 last_node() and last_retcode() will be deprecated from version 2.0).
950
951 * Worker/*.py: Performance: removed _invoke() indirections when generating
952 events + local variables optimization.
953
954 * Task.py: Performance: replaced _TaskMsgTree metaclass by direct calls to
955 MsgTree methods + local variables optimization.
956
957 * Worker/Ssh.py: Local variables optimization.
958
959 * CLI/Clush.py: Do not disable internal messages gathering when using -bL
960 for proper display after Ctrl-C interruption (#133).
961
962 2011-01-26 S. Thiell <[email protected]>
963
964 * tests/config: test config-template directory created.
965
966 2011-01-17 S. Thiell <[email protected]>
967
968 * Communication.py: New module from 2.0 dev branch (author: H. Doreau).
969 * Gateway.py: New module from 2.0 dev branch (author: H. Doreau).
970 * Propagation.py: New module from 2.0 dev branch (author: H. Doreau).
971 * Topology.py: New module from 2.0 dev branch (author: H. Doreau).
972
973 2011-01-15 S. Thiell <[email protected]>
974
975 * Version 1.4 released.
976
977 * NodeSet.py: Add docstring for NodeSet string arithmetic (, ! & ^),
978 which is also called extended string pattern (trac ticket #127).
979
980 2010-12-14 S. Thiell <[email protected]>
981
982 * Version 1.4 beta 1 released.
983
984 * CLI/Display.py: In buffer header (for -b/-B without -L), print node
985 count in brackets if > 1 and enabled by configuration (trac ticket #130).
986
987 * CLI/Config.py: Add boolean node_count param (part of trac ticket #130).
988
989 2010-12-08 S. Thiell <[email protected]>
990
991 * CLI/Nodeset.py: Support nodeset --split option (trac ticket #91).
992
993 * CLI/OptionParser.py: Add --split option (part of #91).
994
995 * NodeSet.py: Avoid overflow by returning truncated results when there are
996 not enough elements in the set for RangeSet.split(n) and NodeSet.split(n).
997
998 2010-12-02 S. Thiell <[email protected]>
999
1000 * NodeSet.py: Much improved algorithm for RangeSet.add_range().
1001
1002 2010-11-30 S. Thiell <[email protected]>
1003
1004 * Worker/{Popen,Pdsh,Ssh}.py: Tell system to release associated resources
1005 with the child process on abort.
1006
1007 2010-11-30 S. Thiell <[email protected]>
1008
1009 * Worker/Popen.py: Fix stderr pipe leak (trac ticket #121).
1010 * Worker/Ssh.py: Fix stderr pipe leak (trac ticket #121).
1011 * Worker/Pdsh.py: Fix stderr pipe leak (trac ticket #121).
1012
1013 * tests/TaskRLimitsTest.py: New test.
1014
1015 2010-11-28 S. Thiell <[email protected]>
1016
1017 * NodeSet.py: Optimized NodeSet.__getitem__() (trac ticket #18).
1018
1019 2010-11-25 S. Thiell <[email protected]>
1020
1021 * NodeSet.py: Slice-optimized version of RangeSet.__getitem__().
1022
1023 2010-11-03 S. Thiell <[email protected]>
1024
1025 * CLI/Clush.py: Added --rcopy support (trac ticket #55).
1026
1027 * Task.py: Added rcopy() method (part of trac ticket #55).
1028
1029 * Worker/Pdsh.py: Support for reverse file copy (part of trac ticket #55).
1030
1031 * Worker/Ssh.py: Support for reverse file copy (part of trac ticket #55).
1032
1033 2010-11-02 S. Thiell <[email protected]>
1034
1035 * Worker/Ssh.py: Fix missing ev_start trigger when using task.copy() (trac
1036 ticket #125).
1037
1038 2010-11-01 S. Thiell <[email protected]>
1039
1040 * CLI/OptionParser.py: Make -c/--copy an option that can take several
1041 source arguments.
1042
1043 * CLI/Clush.py: Improve signal handling (trac ticket #65).
1044
1045 2010-10-25 S. Thiell <[email protected]>
1046
1047 * CLI/Clush.py: Add launched-in-background checks before enabling user
1048 interaction (fix trac ticket #114).
1049
1050 2010-10-20 S. Thiell <[email protected]>
1051
1052 * Task.py: Docstring improvements (trac tickets #120, #122).
1053
1054 2010-10-20 A. Degremont <[email protected]>
1055
1056 * NodeSet.py: Optimize NodeSetBase iteration.
1057
1058 2010-10-17 S. Thiell <[email protected]>
1059
1060 * Engine/Factory.py: Re-enable EPoll engine (closes trac ticket #56).
1061
1062 * Engine/EPoll.py: Cleanup and minor fix in the way event masks are
1063 modified.
1064
1065 * CLI/Clush.py: Changed the way of reading stdin, which is now based on
1066 blocking reads using a specified thread and thread-safe messaging with
1067 acknowledgement using a task port (part of trac ticket #56).
1068
1069 2010-10-11 S. Thiell <[email protected]>
1070
1071 * Worker/Worker.py: Add Worker.abort() base method and ensure proper
1072 implementation in all workers (trac ticket #63).
1073
1074 2010-10-10 S. Thiell <[email protected]>
1075
1076 * Worker/Worker.py: WorkerBadArgumentError exception is now
1077 deprecated, use ValueError instead. Also added exception message in
1078 each worker (trac ticket #116).
1079
1080 2010-10-01 A. Degremont <[email protected]>
1081
1082 * Task.py: Add Task.run() new method (trac ticket #119).
1083
1084 2010-09-28 S. Thiell <[email protected]>
1085
1086 * CLI/OptionParser.py: Do not allow option value starting with '-' in some
1087 cases.
1088
1089 2010-09-26 S. Thiell <[email protected]>
1090
1091 * CLI: Package created.
1092
1093 2010-09-03 S. Thiell <[email protected]>
1094
1095 * Worker/Ssh.py: Fix issue with clush -l USER by separating underlying ssh
1096 "-l USER" in two shell arguments (trac ticket #113).
1097
1098 2010-08-31 S. Thiell <[email protected]>
1099
1100 * scripts/clush.py: Live per-line gathering (-bL mode) improvements.
1101
1102 * Task.py: Fixed Task.timer() when called from another thread - it used to
1103 return None (trac ticket #112).
1104
1105 2010-08-29 S. Thiell <[email protected]>
1106
1107 * Task.py: Add docstring for timer's autoclose feature (trac ticket #109).
1108
1109 * Worker/Worker.py: Attribute 'last_errmsg' not properly initialized (trac
1110 ticket #107).
1111
1112 * setup.py: Switch to setuptools.
1113
1114 * clustershell.spec.in: Fix issue on el5 with if condition when defining
1115 python_sitelib.
1116
1117 2010-08-26 S. Thiell <[email protected]>
1118
1119 * Packaging automation engineering and improved specfile.
1120
1121 * License files converted to UTF-8.
1122
1123 2010-07-27 S. Thiell <[email protected]>
1124
1125 * Version 1.3 released.
1126
1127 2010-07-21 S. Thiell <[email protected]>
1128
1129 * Version 1.3 RC 2 released.
1130
1131 * NodeSet.py: Like in some previous version, support None as argument for
1132 most methods (trac ticket #106).
1133
1134 2010-07-16 S. Thiell <[email protected]>
1135
1136 * scripts/clush.py: Fix uncaught exceptions introduced in 1.3 RC 1 (trac
1137 ticket #105).
1138
1139 2010-07-12 S. Thiell <[email protected]>
1140
1141 * Version 1.3 RC 1 released.
1142
1143 * Task.py: Raise proper KeyError exception in Task.key_retcode(key) when
1144 key is not found in any finished workers (trac ticket #102).
1145
1146 2010-07-06 S. Thiell <[email protected]>
1147
1148 * Task.py: Added documentation for reserved set_default() and set_info()
1149 keys (trac ticket #101).
1150
1151 * scripts/clubak.py: Merge latest code display changes made on clush to
1152 clubak, including "--color={never,always,auto}" (trac ticket #89). Updated
1153 documentation accordingly.
1154
1155 2010-06-29 H. Doreau <[email protected]>
1156
1157 * Worker/Pdsh.py: removed obsolete _read() and _readerr() methods that
1158 overrode EngineClient methods without raising an EOFException when
1159 read() reads nothing (trac ticket #97).
1160
1161 2010-06-28 S. Thiell <[email protected]>
1162
1163 * scripts/clush.py: Centralized handling of exceptions raised from Main
1164 and separate Task thread because some exceptions handled only in Main
1165 thread were not caught (fix btw trac ticket #93).
1166
1167 2010-06-17 S. Thiell <[email protected]>
1168
1169 * Version 1.3 beta 6 released.
1170
1171 2010-06-16 S. Thiell <[email protected]>
1172
1173 * scripts/clush.py: Check for trailing args when using -c/--copy (trac
1174 ticket #88).
1175
1176 * NodeSet.py, NodeUtils.py: Add a way to retrieve all nodes when "all"
1177 external call is missing but "map" and "list" calls are specified (trac
1178 ticket #90).
1179
1180 * Task.py: Add handling of stderr during task.copy().
1181
1182 * Worker/Ssh.py: Add handling of stderr (when needed) during scp.
1183
1184 * scripts/clush.py: Fix display issue with clush --copy when some nodes
1185 are not reachable.
1186
1187 * Version 1.3 beta 5 released.
1188
1189 2010-06-15 S. Thiell <[email protected]>
1190
1191 * scripts/clush.py: Add --color={never,always,auto} command line option
1192 and color: {never,always,auto} config option (trac ticket #68), defaulting
1193 to `never'. Also did some code refactoring/lightening (created a Display
1194 class). Updated clush and clush.conf man pages.
1195
1196 2010-06-09 S. Thiell <[email protected]>
1197
1198 * scripts/clush.py: Automatically increase open files soft limit (trac
1199 ticket #61). Handle "Too many open files" exception.
1200
1201 * Task.py: Add excepthook and default_excepthook methods to handle
1202 uncaught exception in a Task thread. Make it compliant with sys.excepthook
1203 also.
1204
1205 2010-06-08 S. Thiell <[email protected]>
1206
1207 * Version 1.3 beta 4 released.
1208
1209 * doc/extras/vim/syntax/groupsconf.vim: Improved vim syntax file for
1210 groups.conf (trac ticket #85): now $GROUP and $NODE are keywords.
1211
1212 * scripts/clush.py: Do not wait the end of all commands when using -bL
1213 switches when possible (trac ticket #69).
1214
1215 * MsgTree.py: Added remove(match) method to remove entry from the tree.
1216
1217 * Task.py: Added flush_buffers() and flush_errors() methods.
1218
1219 * Worker/Worker.py: Added flush_buffers() and flush_errors() methods.
1220
1221 2010-05-26 S. Thiell <[email protected]>
1222
1223 * Version 1.3 beta 3 released.
1224
1225 * scripts/clush.py: Fixed issue (-g/-X group not working as expected)
1226 found in release 1.3 beta2.
1227
1228 2010-05-25 S. Thiell <[email protected]>
1229
1230 * Version 1.3 beta 2 released.
1231
1232 * scripts/clush.py: Added -G, --groupbase to strip group source prefix
1233 when using -r.
1234
1235 * scripts/clubak.py: Added -G, --groupbase to strip group source prefix
1236 when using -r.
1237
1238 * scripts/nodeset.py: Changed -N, --noprefix to -G, --groupbase to avoid
1239 conflict with clush -N.
1240
1241 * scripts/clush.py: Fixed missing support for group source (-s
1242 GROUPSOURCE) when using -a or -g GROUP.
1243
1244 * scripts/nodeset.py: Added --all, -a support (also work is -s
1245 GROUPSOURCE). Almost-silently removed -a for --autostep, I hope nobody's
1246 using it. :)
1247
1248 * Updated man pages of clush, clubak and nodeset to match latest options
1249 changes (trac #58).
1250
1251 * scripts/clubak.py: Added regroup support to clubak (trac ticket #78).
1252 Added -S to specify user settable separator string (trac ticket #62).
1253
1254 2010-05-24 S. Thiell <[email protected]>
1255
1256 * tests/NodeSetGroupTest.py: Some cleanup in tests (use setUp, tearDown)
1257 and create temporary groups test files.
1258
1259 * tests/NodeSetRegroupTest.py: Removed (tests moved to
1260 NodeSetGroupTest.py).
1261
1262 * scripts/nodeset.py: Add -N option to avoid display of group source
1263 prefix (trac ticket #79).
1264
1265 * NodeSet.py: Add noprefix boolean option to regroup() to avoid building
1266 nodegroups with group source prefixes. Added test.
1267
1268 * scripts/clush.py: Fix unhandled GroupResolverSourceError exception (part
1269 of trac ticket #74).
1270
1271 * scripts/nodeset.py: Renamed -n NAMESPACE option to -s GROUPSOURCE (or
1272 --groupsource=GROUPSOURCE). Fixed trac ticket #76 so that -f, -e or -c
1273 take -s into account. Improved error handling (trac ticket #74). Added
1274 --groupsources command to list configured group sources (trac #77).
1275
1276 2010-05-20 S. Thiell <[email protected]>
1277
1278 * tests/NodeSetRegroupTest.py: added tests for nodeset.regroup().
1279
1280 2010-05-19 S. Thiell <[email protected]>
1281
1282 * doc/extras/vim/ftdetect/clustershell.vim: renamed clush.vim to
1283 clustershell.vim.
1284
1285 * doc/extras/vim/syntax/clushconf.vim: renamed clush.vim to clushconf.vim
1286 and cleaned up old external groups keywords.
1287
1288 * doc/extras/vim/syntax/groupsconf.vim: added vim syntax file for
1289 groups.conf (trac ticket #73).
1290
1291 2010-04-08 S. Thiell <[email protected]>
1292
1293 * NodeSet.py: Added __getstate__() and __setstate__() methods to support
1294 pickling of NodeSet objects.
1295
1296 * scripts/clush.py: Add option flag -n NAMESPACE to specify groups.conf(5)
1297 namespace to use for regrouping displayed nodeset.
1298
1299 * scripts/clush.py: Add -r (--regroup) option to display default groups
1300 in nodeset when possible.
1301
1302 2010-04-07 S. Thiell <[email protected]>
1303
1304 * scripts/clush.py: Modified script to support new external "all nodes"
1305 upcall and node groups.
1306
1307 * scripts/nodeset.py: Added command flags -l (list groups), -r (used to
1308 regroup nodes in groups), and also added option flag -n to specify desired
1309 namespace.
1310
1311 * NodeSet.py: Added node group support with the help of the new NodeUtils
1312 module (trac ticket #41). Improved parser to support basic node/nodegroups
1313 arithmetic (trac ticket #44).
1314
1315 * NodeUtils.py: New module that provides binding support to external node
1316 group sources (trac ticket #43).
1317
1318 2010-03-05 S. Thiell <[email protected]>
1319
1320 * Worker/*.py: Do not forget to keep last line and generate an ev_read
1321 event when it does not contain EOL (trac ticket #66). Added tests.
1322
1323 2010-02-26 S. Thiell <[email protected]>
1324
1325 * Version 1.2 RC 1 released.
1326
1327 2010-02-25 S. Thiell <[email protected]>
1328
1329 * Important code cleaning (use absolute imports, remove some unused
1330 imports, remove duplicate code, etc. thanks to pylint).
1331
1332 2010-02-22 S. Thiell <[email protected]>
1333
1334 * scripts/nodeset.py: Change command syntax: operations are now specified
1335 inline between nodesets (trac ticket #45). Update doc and tests.
1336
1337 * scripts/clubak.py: Fix TypeError exception raised on unexpected input
1338 and accept 'node:message' line pattern (trac ticket #59).
1339
1340 * scripts/clush.py: Add -B flag (trac ticket #60) to gather with stderr.
1341
1342 * NodeSet.py: NodeSet constructor now raises a NodeSetParseError
1343 exception when unsupported type is used as input (trac ticket #53).
1344
1345 2010-02-21 S. Thiell <[email protected]>
1346
1347 * Task.py: Fix a deadlock when a task is resumed two times from another
1348 thread (raise AlreadyRunningError instead). Added test.
1349
1350 * Worker/Worker.py: Improve usage error handling for some methods (trac
1351 ticket #28), raising WorkerError when needed. Add library misusage tests.
1352
1353 2010-02-18 S. Thiell <[email protected]>
1354
1355 * scripts/clush.py: Disable MsgTree buffering when not performing
1356 any gathering of results (when -b is not used).
1357
1358 * Task.py: Allow disabling of MsgTree buffering (trac ticket #3) via
1359 'stdout_msgtree" and 'stderr_msgtree' Task default keywords, useful if we
1360 don't want MsgTree internal buffering for fully event-based scripts (eg.
1361 clush without -b). When disabled, any Task method accessing MsgTree data
1362 like iter_buffers() will raise a new exception (TaskMsgTreeError).
1363
1364 2010-02-17 S. Thiell <[email protected]>
1365
1366 * Version 1.2 beta 5 released.
1367
1368 2010-02-16 S. Thiell <[email protected]>
1369
1370 * NodeSet.py: Fix mixed-type comparisons, where, like standard set(),
1371 are allowed, instead of raising TypeError.
1372
1373 2010-02-15 S. Thiell <[email protected]>
1374
1375 * Version 1.2 beta 4 released.
1376
1377 * MsgTree.py: Added MsgTreeElem.splitlines() method as alias of lines().
1378
1379 2010-02-14 S. Thiell <[email protected]>
1380
1381 * Updated doc/man pages for latest clush changes and added clubak tool.
1382
1383 * Worker/Ssh.py: Fix Ssh worker issue where sometimes stderr buffer could
1384 not be read completely (trac ticket #50).
1385
1386 2010-02-13 S. Thiell <[email protected]>
1387
1388 * scripts/clush.py: Comply with clubak by adding -L option that allow
1389 switching to alternative line mode display (when using -b). Also, sort
1390 buffers by nodes or nodeset length like clubak (fix trac ticket #54).
1391
1392 2010-02-11 S. Thiell <[email protected]>
1393
1394 * Version 1.2 beta 3 released.
1395
1396 * scripts/clush.py: For clush --copy, when --dest is not specified, set
1397 the destination path to the source dirname path and not the source full
1398 path.
1399
1400 * scripts/clush.py: Added option --nostdin to prevent reading from
1401 standard input (fix trac ticket #49).
1402
1403 * Engine/Factory.py: Disable Engine.EPoll automatic selection as an issue
1404 has been found with clush when stdin is a plain file (<file redirections).
1405 Engine.Poll is now the default engine for all platforms. Created trac
1406 ticket #56 to follow this issue.
1407
1408 2010-02-10 S. Thiell <[email protected]>
1409
1410 * Worker/Worker.py: Added missing WorkerSimple.last_error() method. Fixed
1411 worker bad argument error exception.
1412
1413 * Worker/Ssh.py: Added command, source and dest public instance variable.
1414
1415 * Worker/Pdsh.py: Added command, source and dest public instance variable.
1416
1417 * scripts/clush.py: Due to set_info() behaviour modifications in
1418 multi-thread mode, change some set_info() for set_default() to modify
1419 task specific dictionary synchronously. Also remove splitlines() where
1420 MsgTreeElem are returned instead of whole buffer after latest MsgTree
1421 improvements.
1422
1423 * scripts/clubak.py: Added clubak utility (trac ticket #47). It provides
1424 dshbak backward-compatibility, but always try to sort buffers by nodes or
1425 nodeset. It also provides additional -L option to switch to alternative
1426 line mode display.
1427
1428 2010-02-09 S. Thiell <[email protected]>
1429
1430 * Worker.py: Updated Task/MsgTree dependencies. Added iter_node_errors()
1431 method. Added match_keys optional parameter to iter_node_buffers() and
1432 iter_node_errors(). Added WorkerSimple.error() method (read stderr).
1433 Added tests.
1434
1435 * Task.py: Updated MsgTree dependencies. Factorized most tree data's
1436 access methods.
1437
1438 * MsgTree.py: Merged Msg and _MsgTreeElem in one class MsgTreeElem. All
1439 message objects returned are now instance of MsgTreeElem. Some algorithms
1440 improvements. Renamed main MsgTree access methods: messages(), items() and
1441 walk(). Added more docstring.
1442
1443 * NodeSet.py: Modified NodeSet.__iter__() and __str__() so that nodes are
1444 now always sorted by name/pattern (eg. acluster2, bcluster1).
1445
1446 2010-02-07 S. Thiell <[email protected]>
1447
1448 * MsgTree.py: Rewrite of MsgTree module with a better API (part of trac
1449 ticket #47). Adapted library classes. Added specific tests.
1450
1451 2010-02-02 S. Thiell <[email protected]>
1452
1453 * Task.py: Add Task.key_error() and its alias node_error() methods for
1454 easy retrieving of error buffers for a specified key/node.
1455
1456 * scripts/clush.py: Fix stdout/stderr separation issue (introduced
1457 in 1.2b2) thanks to the new Task.set_default() method.
1458
1459 * Task.py: As set_info() is now dispatched through the task special port,
1460 and applied only on task.resume() when called from another thread, add two
1461 new methods default() and set_default() to synchronously manage another
1462 task specific dictionary, useful for default configuration parameters.
1463
1464 2010-02-01 S. Thiell <[email protected]>
1465
1466 * Version 1.2 beta 2 released.
1467
1468 2010-02-01 A. Degremont <[email protected]>
1469
1470 * NodeSet.py: Added __getslice__() and split() method to RangeSet.
1471 Added split() to NodeSet (trac ticket #18).
1472
1473 2010-02-01 S. Thiell <[email protected]>
1474
1475 * NodeSet.py: Added equality comparisons for RangeSet and NodeSet. Fixed
1476 a bug in NodeSet.issuperset().
1477
1478 * mkrpm.sh: Improve RPM build process and allow SRPM package to be
1479 easily rebuilt (trac ticket #51).
1480
1481 2010-01-31 S. Thiell <[email protected]>
1482
1483 * scripts/clush.py: Fix broken pipe issue (trac ticket #34).
1484
1485 * scripts/clush.py: Fix unhandled NodeSet parse error (trac ticket #36).
1486
1487 * scripts/clush.py: Display uncompleted nodes on keyboard interrupt.
1488
1489 2010-01-29 S. Thiell <[email protected]>
1490
1491 * scripts/clush.py: Return some error code when -S -u TIMEOUT is used
1492 and some command timeout occurred (trac ticket #48).
1493
1494 * scripts/clush.py: Display output messages on KeyboardInterrupt (trac
1495 ticket #22).
1496
1497 * tests/TaskThreadJoinTest.py: Added test cases for task.join().
1498
1499 * tests/TaskThreadSuspendTest.py: Added test cases for
1500 task.suspend().
1501
1502 * tests/TaskPortTest.py: Added test cases for task.port().
1503
1504 * Task.py: Improved features in multithreaded environments thanks
1505 to new port feature: abort(), suspend(), resume(), schedule(), etc.
1506 are now thread-safe (trac ticket #21).
1507
1508 * Worker/EngineClient.py: Added port feature, a way to communicate between
1509 different tasks.
1510
1511 2009-12-09 A. Degremont <[email protected]>
1512
1513 * scripts/clush.py: Add -X flag to exclude node groups.
1514 Node flags -w/-x/-g/-X can now be specified multiple times.
1515
1516 2009-12-17 S. Thiell <[email protected]>
1517
1518 * Engine/Factory.py: Add engine automatic selection mechanism (trac
1519 ticket #10).
1520
1521 * Task.py: Add task_terminate() function for convenience.
1522
1523 2009-12-15 S. Thiell <[email protected]>
1524
1525 * scripts/clush.py: Fix clush -q/--quiet issue again!
1526
1527 2009-12-09 A. Degremont <[email protected]>
1528
1529 * scripts/nodeset.py: Protect --separator from code injection and
1530 handle gracefully incorrect separator.
1531
1532 2009-12-09 S. Thiell <[email protected]>
1533
1534 * Version 1.2 beta 1 released.
1535
1536 * scripts/clush.py and library: Add -p option when using --copy to
1537 preserve file modification times and modes.
1538
1539 * scripts/clush.py: Fix clush -q/--quiet issue.
1540
1541 * scripts/nodeset.py: Add separator option to nodeset
1542 --expand with -S <string> (trac ticket #39).
1543
1544 * Worker/Pdsh.py: Added copy support for directory (automatic
1545 detection). Added non-reg tests.
1546
1547 2009-12-08 S. Thiell <[email protected]>
1548
1549 * scripts/clush.py: Added source presence check on copy.
1550
1551 2009-12-07 S. Thiell <[email protected]>
1552
1553 * Worker/Ssh.py: Added copy support for directory (automatic
1554 detection).
1555
1556 * Worker/Ssh.py: Fix Scp Popen4->subprocess.popen issue (simple
1557 quote escape not needed).
1558
1559 2009-11-10 S. Thiell <[email protected]>
1560
1561 * Version 1.2 beta 0 released. Updated doc and man pages for 1.2.
1562
1563 2009-11-09 S. Thiell <[email protected]>
1564
1565 * Engine/EPoll.py: Add stdout/stderr support (still experimental).
1566
1567 * Worker/Pdsh.py: Fix stdout/stderr support.
1568
1569 * Backport recent 1.1-branch improvements: tests code coverage, also
1570 resulting in some fixes (see 1.1 2009-10-28).
1571
1572 2009-11-09 S. Thiell <[email protected]>
1573
1574 * scripts/clush.py: Added stdout/stderr support in clush script.
1575
1576 2009-11-04 S. Thiell <[email protected]>
1577
1578 * Added optional separate stdout/stderr handling (with 1.1 Task API
1579 compat). Added some tests for that.
1580
1581 * Create a MsgTree class in MsgTree.py and remove this code from
1582 Task.py.
1583
1584 * First changes to use setUp() in test case objects.
1585
1586 2009-08-02 S. Thiell <[email protected]>
1587
1588 * clush.py: (1) remove /step in displayed nodeset when using -b (to
1589 allow copy/paste to other tools like ipmipower that doesn't support
1590 N-M/STEP ranges), (2) when command timeout is specified (-u), show
1591 nodes (on stderr) that didn't have time to fully complete, (3) flush
1592 stdio buffers before exiting. [merged from branch 1.1]
1593
1594 2009-07-29 S. Thiell <[email protected]>
1595
1596 * tests/NodeSetScriptTest.py: added unit test for scripts/nodeset.py
1597
1598 * NodeSet.py: fixed a problem with intersection_update() when used
1599 with two simple nodes (no rangeset).
1600
1601 * scripts/nodeset.py: merge -i and -X options issue fix from 1.1
1602 branch (#29)
1603
1604 2009-07-28 S. Thiell <[email protected]>
1605
1606 * scripts/clush.py: remove DeprecationWarning ignore filter (the
1607 library is now natively Python 2.6/Fedora 11 ready)
1608
1609 * Change all sets to use built in set type available since Python 2.4
1610 (the sets module is deprecated).
1611
1612 * Engine/EPoll.py: added epoll based Engine (Python 2.6+ needed)
1613
1614 * Engine/Poll.py: added _register_specific() and
1615 _unregister_specific() methods to match modified Engine base class.
1616
1617 * Engine/Engine.py: added calls to derived class's
1618 _register_specific() and _unregister_specific() instead of only
1619 _modify_specific()
1620
1621 2009-07-23 S. Thiell <[email protected]>
1622
1623 * Replaced popen2.Popen4 (deprecated) by subprocess.Popen (Python 2.4+),
1624 renaming Worker.Popen2 to Worker.Popen.
1625
1626 * clush.py: (backport for 1.1 branch) fix another command_timeout (-u)
1627 issue, now the command_timeout value is passed as the timeout value at
1628 worker level.
1629
1630 * Version 1.1 branched.
1631
1632 2009-07-22 S. Thiell <[email protected]>
1633
1634 * Version 1.1 RC 2 released.
1635
1636 * clush.py: change -u timeout behavior, if set it's now the timeout value
1637 passed to task.shell() (and not connect_timeout + command_timeout).
1638
1639 * clush.py: add -o options to pass custom ssh options (#24).
1640
1641 * Worker/Ssh.py: simple quote escape fix (trac ticket #25).
1642
1643 * Worker/Popen2.py: simple quote escape fix (trac ticket #25)
1644
1645 * clush.py: fix options issue when using -f, -u or -t.
1646
1647 2009-07-13 S. Thiell <[email protected]>
1648
1649 * Version 1.1 RC 1 released.
1650
1651 * Changed license to CeCILL-C (http://www.cecill.info).
1652
1653 * clush.py (ttyloop): (feature) added '=' special command in
1654 interactive mode to toggle output format mode (standard/gathered).
1655
1656 * Engine/Engine.py (register): (bug) register writer fd to even when
1657 set_writer_eof() has previously been called.
1658
1659 * Worker/EngineClient.py (_handle_write): (bug) don't close writer
1660 when some data remains in write buffer, even if self._weof is True.
1661
1662 2009-07-10 S. Thiell <[email protected]>
1663
1664 * clush.py (ttyloop): added a workaround to replace raw_input() which
1665 is not interruptible in Python 2.3 (issue #706406).
1666
1667 2009-07-09 S. Thiell <[email protected]>
1668
1669 * NodeSet.py (__contains__): fixed issue that could appear when
1670 padding was used, eg. "node113" in "node[030,113] didn't work.
1671
1672 2009-07-08 S. Thiell <[email protected]>
1673
1674 * Version 1.1 beta 6 released.
1675
1676 * clush.py: major improvements (added write support, better
1677 interactive mode with readline, launch task in separate thread to let
1678 the main thread blocking tty input, added Enter key press support
1679 during run, added node groups support (-a and -g) using external
1680 commands defined in clush.conf, added --copy toggle to clush to copy
1681 files to the cluster nodes, added -q option, added progress indicator
1682 when clush is called with gather option -b)
1683
1684 * Added man pages for clush and nodeset commands.
1685
1686 * doc/extras/vim (clush.vim): added vim syntax files for clush.conf
1687
1688 * Engine.py: (feature) added write support to workers
1689
1690 * Worker: (api) created a base class WorkerSimple
1691
1692 2009-04-17 S. Thiell <[email protected]>
1693
1694 * Version 1.1 beta 5 released (LUG'09 live update).
1695
1696 * Worker/Worker.py: (bug) update last_node so that user can call
1697 worker.last_node() in an ev_timeout handler callback.
1698
1699 2009-04-17 A. Degremont <[email protected]>
1700
1701 * clush.py: (feature) make use of optparse.OptionParser
1702
1703 2009-04-15 S. Thiell <[email protected]>
1704
1705 * Version 1.1 beta 4 released.
1706
1707 2009-04-14 S. Thiell <[email protected]>
1708
1709 * Engine/Engine.py (EngineBaseTimer): (bug) fixed issue in timers when
1710 invalidated two times.
1711
1712 2009-04-06 S. Thiell <[email protected]>
1713
1714 * Version 1.1 beta 3 released.
1715
1716 * Engine/Engine.py (_EngineTimerQ): (bug) fixed issue in timer
1717 invalidation.
1718
1719 2009-04-03 S. Thiell <[email protected]>
1720
1721 * Engine/Engine.py (EngineTimer): (api) added is_valid() method to
1722 check if a timer is still valid.
1723
1724 * Task.py: (api) added optional `match_keys' parameter in Task and
1725 Worker iter_buffers() and iter_retcodes() methods.
1726
1727 2009-03-26 S. Thiell <[email protected]>
1728
1729 * Version 1.1 beta 2 released.
1730
1731 2009-03-23 S. Thiell <[email protected]>
1732
1733 * Worker/Worker.py: (api) added Worker.did_timeout() method to check
1734 if a worker has timed out (useful for Popen2 workers, other use
1735 DistantWorker.num_timeout()).
1736
1737 2009-02-21 S. Thiell <[email protected]>
1738
1739 * Version 1.1 beta 1 released.
1740
1741 2009-02-20 S. Thiell <[email protected]>
1742
1743 * NodeSet.py (NodeSet): (api) added clear() method.
1744 (RangeSet): likewise.
1745
1746 * NodeSet.py (NodeSet): added workaround to allow NodeSet to be
1747 properly pickled (+inf floating number pickle bug with Python 2.4)
1748
1749 * NodeSet.py (RangeSet): (bug) don't keep a reference on internal
1750 RangeSet when creating a NodeSet from another one.
1751
1752 2009-02-16 S. Thiell <[email protected]>
1753
1754 * Version 1.1 beta 0 released.
1755
1756 * Worker/Ssh.py: (feature) new worker, based on OpenSSH, with fanout
1757 support (thus removing ClusterShell mandatory pdsh dependency).
1758
1759 * Engine/Engine.py: (feature, api) added timer and repeater support.
1760
1761 * 1.0->1.1 internal design changes.
1762
1763
1764 Copyright CEA/DAM/DIF (2009, 2010, 2011)
1765 Copying and distribution of this file, with or without modification, are
1766 permitted provided the copyright notice and this notice are preserved.