Debian Codegraph @

doc/sphinx/release.rst

raw
1 .. highlight:: console
2
3 Release Notes
4 =============
5
6 Version 1.10
7 ------------
8
9 We are very pleased to announce the release of ClusterShell 1.10, the first
10 release made as a project of the `High Performance Software Foundation (HPSF)`_. It comes
11 with faster group resolution on slow sources, a more reliable tree mode,
12 new ``clush`` and ``clubak`` options, and refreshed project governance. We
13 would like to thank everyone who contributed to this release in one way or
14 another.
15
16 Version 1.10.1
17 ^^^^^^^^^^^^^^
18
19 This version contains bug fixes and packaging improvements over 1.10:
20
21 * The :ref:`Ansible inventory group source example <group-ansible-bindings>`
22 file ``ansible.conf.example`` is now installed by ``setup.py``, making it
23 available in binary packages (pip, distributions). In 1.10, it was only
24 shipped in the source distribution.
25
26 * Tree mode now works across mixed Python versions again: Python 3.14
27 changed the default pickle protocol, so the protocol used for gateway
28 messages is now pinned. Gateway error reporting was also improved.
29
30 * Fixed error handling in the engine event loops, including a possible hang
31 when writing to a closed command stream (broken pipe).
32
33 * Fixed stepped slices across multiple patterns in ``NodeSet`` and
34 unpickling of empty ``RangeSet`` objects.
35
36 * The deprecated Cray ACE group source example was removed.
37
38 * The unmaintained RPM spec file was removed from the source tree; RPM
39 packaging for Fedora and EPEL is maintained in Fedora dist-git. See the
40 Building section in the README.
41
42 * Documentation: refreshed installation guide, library examples ported to
43 Python 3, an animated tree mode propagation diagram, and many accuracy
44 and coverage improvements across the man pages and this documentation.
45
46 * Releases are now built and published to PyPI by a GitHub Actions workflow
47 using `Trusted Publishing`_, and the documentation is built with warnings
48 as errors on every change.
49
50 For more details, please have a look at `GitHub Issues for 1.10.1 milestone`_.
51
52 Main changes in 1.10
53 ^^^^^^^^^^^^^^^^^^^^^
54
55 Python support
56 """"""""""""""
57
58 ClusterShell 1.10 is regularly tested with Python 3.7 to 3.14 and still runs
59 on Python 3.6 (for example on RHEL 8). See :ref:`install-requirements`.
60
61 .. note:: ClusterShell 1.10 keeps best-effort, untested support for Python 2.7
62 for legacy HPC system environments. The 1.10 series is expected to be the
63 **last to support Python 2** — ClusterShell 1.11 will require Python 3.
64 Upgrading to Python 3 is strongly recommended, as Python 2 reached end of
65 life in 2020.
66
67 Deprecations
68 """"""""""""
69
70 * ``NodeUtils.set_verbosity()`` and the ``[Main]`` section of ``topology.conf``
71 are deprecated and now emit a ``DeprecationWarning``; they will be removed in
72 a future release.
73
74 Group sources
75 """""""""""""
76
77 * A new **mapall** group source upcall can return all group-to-nodes mappings
78 in a single call. On slow sources, where resolving groups one by one is
79 expensive, this can dramatically speed up group resolution: ClusterShell issues
80 a single upcall instead of one **list** call followed by one **map** call per
81 group. See :ref:`group-sources-upcalls` and :ref:`group-external-caching`.
82
83 * The bundled :ref:`Slurm group bindings <group-slurm-bindings>` now use
84 ``mapall`` so that partitions, reservations, node states, jobs, users,
85 accounts and QOS are each resolved with a single Slurm query.
86
87 * A new :ref:`Ansible inventory group source example <group-ansible-bindings>`
88 is provided, resolving every group from an ``ansible-inventory`` dump with a
89 single ``mapall`` upcall.
90
91 * Group source upcalls are no longer fed the standard input of the calling
92 process, preventing upcall commands from accidentally consuming stdin.
93
94 Node sets
95 """""""""
96
97 * The :class:`.NodeSet` and :class:`.RangeSet` classes gain a list-like
98 ``index()`` method returning the zero-based position of a node or element
99 (the inverse of indexing, with optional ``start``/``stop`` bounds), raising
100 ``ValueError`` when it is not present, like ``list.index()``.
101
102 * :ref:`nodeset-tool` and :ref:`cluset-tool` expose this with a new ``--index``
103 command, the reverse of slicing (``-I/--slice``): it prints the position of a
104 node within the (ordered) set.
105
106 clush and clubak
107 """"""""""""""""
108
109 * :ref:`clush-tool` and :ref:`clubak-tool` now also support the ``--axis``
110 option (already available in ``nodeset`` and ``cluset``) to choose which
111 dimension(s) are folded when displaying multidimensional node sets. The fold
112 axis can also be set permanently with the ``fold_axis`` option in the
113 :ref:`library defaults <defaults-config>` (``defaults.conf``); see
114 :ref:`clush-axis`. This is handy for example to disengage some nD folding when
115 working with Slurm.
116
117 * Fixed output line buffering on Python 3.6.
118
119 Tree mode
120 """""""""
121
122 Tree mode, which uses gateways to reach very large clusters at scale, received
123 a round of reliability fixes:
124
125 * Implemented a general ``TreeWorker.abort()`` along with per-gateway abort, so
126 a worker can be cancelled cleanly and a failing gateway no longer blocks the
127 whole command; gateway failover was fixed accordingly.
128
129 * ``ev_pickup`` now fires only once a command can no longer be rerouted, with
130 proper pairing with ``ev_hup`` and clearer reroute event reporting (shown
131 in ``clush`` and quietable with ``-q``).
132
133 * Fixed reverse copy (``--rcopy``) when a remote node closes, so extraction
134 finishes locally without impacting the other nodes.
135
136 * During a forward copy, ``tar``/``scp`` errors are now kept on the standard
137 error stream instead of being merged into the standard output.
138
139 * Improved handling of ``MessageProcessingError`` with clearer diagnostics.
140
141 * ``EngineClient`` now properly honors the abort flag on close.
142
143 Bash completion
144 """""""""""""""
145
146 * Complete local file paths for ``clush --copy``, and complete a command once
147 a target is set.
148
149 * Handle short options written without a space, such as ``clush -wfoo``.
150
151 * Treat ``-b``/``-B`` and the other no-argument options of ``clush`` and
152 ``cluset`` as flags during completion.
153
154 Project and packaging
155 """""""""""""""""""""
156
157 * ClusterShell joined the `High Performance Software Foundation (HPSF)`_. This release ships the
158 project charter, a DCO contribution policy, governance, code of conduct and
159 security policy as part of the HPSF onboarding.
160
161 * Continuous integration now covers Python 3.14, and the test suite runs with
162 the standard library ``unittest`` (it no longer requires the abandoned *nose*
163 test runner).
164
165 * Packaging metadata was cleaned up so ClusterShell publishes a proper
166 pure-Python wheel on PyPI.
167
168 For more details, please have a look at `GitHub Issues for 1.10 milestone`_.
169
170
171 Version 1.9
172 -----------
173
174 We are pleased to announce the availability of this new release, which comes
175 with some exciting new features and improvements. We would like to thank
176 everyone who participated in this release in a way or another.
177
178
179 Version 1.9.3
180 ^^^^^^^^^^^^^
181
182 This version contains various performance improvements over 1.9.2, notably in
183 tree mode, and introduces bash completion for command line tools.
184
185 * Added bash completions for :ref:`clush-tool`,
186 :ref:`nodeset-tool`/:ref:`cluset-tool`
187
188 Demonstration of bash completions:
189
190 .. asciinema:: 699526
191
192 * :ref:`Slurm group bindings <group-slurm-bindings>`: additional Slurm group
193 source definitions have been included to enhance Slurm interaction
194 capabilities (added ``slurmaccount``, ``slurmqos`` and ``slurmresv``).
195
196 * :ref:`clush-tool` now uses ``set`` instead of :class:`.NodeSet` for runtime
197 progress information which improves performance.
198
199 * Updated :ref:`tree mode <clush-tree>` to use ``set`` instead of
200 :class:`.NodeSet` for gateway tracking, optimizing performance for large
201 clusters.
202
203 For more details, please have a look at `GitHub Issues for 1.9.3 milestone`_.
204
205 .. warning:: While we are making our best effort to maintain Python 2
206 compatibility in ClusterShell 1.9.x, we no longer run tests for Python 2.
207 Therefore, functionality on Python 2 is not guaranteed and may break without
208 notice. For the best experience and continued support, it is strongly
209 recommended to use Python 3.
210
211 .. note:: ClusterShell 1.9.3 has been tested with Python versions 3.6 to 3.13.
212
213 Version 1.9.2
214 ^^^^^^^^^^^^^
215
216 This version contains a few bug fixes and improvements over 1.9.1:
217
218 * :ref:`clush-tool`: and :ref:`clubak-tool`: We fixed the line-buffered
219 output with recent versions of Python 3 for the standard output and
220 standard error streams. A welcome consequence of this change is that
221 non-printable characters will now be displayed as �.
222
223 * :ref:`clush-tool`: When multiple files or directories are specified as
224 arguments with ``--[r]copy``, and ``--dest`` is omitted, use each
225 argument's dirname for each destination, instead of the dirname of the
226 first argument only.
227
228 * In YAML configuration files used for :ref:`group-file-based`, a valid
229 YAML null value (for example: ``null`` or ``~``) is now interpreted as
230 an empty node set.
231
232 * Router and destination node sets defined in
233 :ref:`topology.conf <clush-tree-enabling>` may use
234 :ref:`nodeset-groups` and :ref:`node-wildcards` but any route
235 definition with an empty node set will now be ignored.
236
237 For more details, please have a look at `GitHub Issues for 1.9.2 milestone`_.
238
239 Version 1.9.1
240 ^^^^^^^^^^^^^
241
242 This version contains a few bug fixes and improvements over 1.9, mostly
243 affecting packaging:
244
245 * Allow ``clustershell`` to be installed as user in a ``venv`` using
246 ``pip install`` or using ``pip install --user`` with man pages. Root
247 installation using pip is now discouraged. If done, ``/usr/local`` is
248 likely to be used as the install prefix. See :ref:`install-python` for
249 more information.
250
251 * :ref:`clush-tool`: ``$CFGDIR`` was broken if ``/etc/clustershell`` did not
252 exist
253
254 * Add support for negative ranges in :class:`.RangeSet`.
255
256 For more details, please have a look at `GitHub Issues for 1.9.1 milestone`_.
257
258 Main changes in 1.9
259 ^^^^^^^^^^^^^^^^^^^
260
261 Python support
262 """"""""""""""
263
264 .. warning:: Support for Python 2.6 has been dropped in this version.
265 Upgrading to Python 3 is highly recommended as Python 2 reached end of
266 life in 2020. See :ref:`install-requirements`.
267
268 clush
269 """""
270
271 * :ref:`clush-tool` has now support for :ref:`clush-modes` to support more
272 authentication use cases. A run mode has pre-defined
273 :ref:`clush.conf <clush-config>` settings with a given name, and can then
274 be activated with ``--mode=MODE``. We also added the new options
275 ``command_prefix`` and ``password_prompt`` (see
276 :ref:`clush.conf <clush-config>`). Two examples of run modes are included
277 and can be easily enabled:
278
279 * :ref:`password-based ssh authentication with sshpass <clush-sshpass>`
280
281 * :ref:`sudo password forwarding over stdin <clush-sudo>`
282
283 .. note:: ``clush.conf`` comes with a new variable
284 :ref:`confdir <clush-config>` to specify where to look for run mode
285 configuration files. If you upgrade from 1.8.4 and want to use run modes,
286 make sure ``confdir`` is present in your ``clush.conf``.
287
288 * :ref:`clush-tool`: add arguments ``--outdir=OUTDIR`` and
289 ``--errdir=ERRDIR``; similar to *pssh(1)*, it allows to save the standard
290 output (stdout) and/or error (stderr) of all remote commands to local
291 files. See :ref:`clush-outdir`.
292
293 Node sets and node groups
294 """""""""""""""""""""""""
295
296 .. warning:: To support mixed-length 0-padding ranges, version 1.9 introduces
297 changes in :class:`.RangeSet`'s API that might break existing code. If you
298 use :class:`.RangeSet` directly, see below for more information.
299
300 * :class:`.NodeSet`, :class:`.RangeSet` and :class:`.RangeSetND` objects now
301 support sets with mixed length zero padding, meaning you can safely mix
302 ranges like ``2-3``, ``03-09`` and ``005-123``.
303 The following example with :ref:`nodeset-tool` shows that not only ``01``
304 and ``001`` are now seen as separate indexes, but it is also possible to mix
305 non-padded indexes like ``1`` with zero-padded indexes::
306
307 $ nodeset --fold node001 node1 node01
308 node[1,01,001]
309
310 See ``nodeset``'s :ref:`zero padding <nodeset-zeropadding>` for more examples.
311
312 :class:`.RangeSet` now internally manages indexes as strings with the zero
313 padding included. Prior to v1.9, indexes were stored as integers and zero
314 padding was a simple display feature of fixed length per :class:`.RangeSet`
315 object. If you are using this class directly in your code, please see the
316 :ref:`class-RangeSet` in the Programming Guide section for portability
317 recommendations (especially the new method :meth:`.RangeSet.intiter()`).
318
319 .. note:: The :class:`.NodeSet` class API has NOT changed so as long as you do
320 not use :class:`.RangeSet` directly, you may safely upgrade to 1.9.
321
322 * :ref:`nodeset-rawgroupnames`: the **@@** operator may be used in any node
323 set expression to manipulate group names as a node set::
324
325 $ nodeset -l -s rack
326 @rack:J1
327 @rack:J2
328 @rack:J3
329 $ nodeset -f @@rack
330 J[1-3]
331
332 * :class:`.RangeSet`: multidimensional folding performance optimization,
333 useful for "xnames" on HPE Cray EX supercomputers that encode up to 5
334 dimensions.
335
336 * :ref:`Slurm group bindings <group-slurm-bindings>`: filter out more Slurm
337 node state flags
338
339 Configuration
340 """""""""""""
341
342 * Introduce ``$CLUSTERSHELL_CFGDIR`` as an alternate location for
343 configuration files; useful on a cluster where ClusterShell is provided
344 as a user-facing tool installed on a shared file system (see
345 :ref:`clush-config`, :ref:`groups_config_conf` and :ref:`defaults-config`).
346
347 Tree mode
348 """""""""
349
350 * Fix start by implementing a proper asynchronous start for :class:`.TreeWorker`,
351 which is now only triggered when the engine actually starts.
352
353 * Fix error with intermediate gateways
354
355 For more details, please have a look at `GitHub Issues for 1.9 milestone`_.
356
357
358 Version 1.8
359 -----------
360
361 This adaptive major release is now compatible with both Python 2 and Python 3.
362
363 We hope this release will help you manage your clusters, server farms or cloud
364 farms! Special thanks to the many of you that have sent us feedback on GitHub!
365
366 .. warning:: Support for Python 2.5 and below has been dropped in this version.
367
368 Version 1.8.4
369 ^^^^^^^^^^^^^
370
371 This version contains a few bug fixes and improvements:
372
373 * allow out-of-tree worker modules
374
375 * use default local_worker and allow overriding :ref:`defaults-config` (tree mode)
376
377 * return maxrc properly in the case of the Rsh Worker
378
379 * :ref:`clush-tool`: improve stdin support with Python 3
380
381 * :ref:`clush-tool`: add maxrc option to :ref:`clush.conf <clush-config>`
382
383 * :ref:`clush-tool`: add support for NO_COLOR and CLICOLOR
384
385 For more details, please have a look at `GitHub Issues for 1.8.4 milestone`_.
386
387
388 Version 1.8.3
389 ^^^^^^^^^^^^^
390
391 This version contains a few bug fixes and improvements, mostly affecting the
392 :ref:`tree mode <clush-tree>`:
393
394 * propagate ``CLUSTERSHELL_GW_PYTHON_EXECUTABLE`` environment variable to
395 remote gateways (see :ref:`clush-tree-python`)
396
397 * fix defect to properly close gateway channel when worker has aborted
398
399 * improve error reporting from gateways
400
401 * :ref:`clush-tool`: now properly handles ``--worker=ssh`` when
402 :ref:`topology.conf <clush-tree-enabling>` is present to explicitly disable
403 :ref:`tree mode <clush-tree>`
404
405 * use safe yaml load variant to avoid warning from :class:`.YAMLGroupLoader`
406
407
408 For more details, please have a look at `GitHub Issues for 1.8.3 milestone`_.
409
410 We also added a Python support matrix for the main Linux distributions.
411
412
413 Version 1.8.2
414 ^^^^^^^^^^^^^
415
416 This version contains a few minor fixes:
417
418 * :ref:`clush-tool`: support UTF-8 string encoding with
419 :ref:`--diff <clush-diff>`
420
421 * in some cases, :ref:`timers <configuring-a-timer>` were too fast due to an
422 issue in :class:`.EngineTimer`
423
424 * fix issue in the :ref:`Slurm group bindings <group-slurm-bindings>` where job
425 ids were used instead of user names
426
427 * performance update for :ref:`xCAT group bindings <group-xcat-bindings>`
428
429 For more details, please have a look at `GitHub Issues for 1.8.2 milestone`_.
430
431 Python support
432 """"""""""""""
433
434 Version 1.8.2 adds support for Python 3.7.
435
436 .. note:: This version still supports Python 2.6 and thus also RHEL/CentOS
437 6, but please note that ClusterShell 1.9 is expected to require at least
438 Python 2.7.
439
440 OS support
441 """"""""""
442
443 Version 1.8.2 adds support for RHEL 8/CentOS 8 and Fedora 31+, where only the
444 Python 3 package is provided. The ``clustershell`` packages will be made
445 available in EPEL-8 as soon as possible.
446
447 No packaging changes were made to ``clustershell`` in RHEL/CentOS 6 or 7.
448
449
450 Version 1.8.1
451 ^^^^^^^^^^^^^
452
453 This update contains a few bug fixes and some performance improvements of the
454 :class:`.NodeSet` class.
455
456 The :ref:`tree mode <clush-tree>` has been fixed to properly support offline
457 gateways.
458
459 We added the following command line options:
460
461 * ``--conf`` to specify alternative clush.conf (clush only)
462
463 * ``--groupsconf`` to specify alternative groups.conf (all CLIs)
464
465 In :class:`.EventHandler`, we reinstated :meth:`.EventHandler.ev_error`: and
466 :meth:`.EventHandler.ev_error`: (as deprecated) for compatibility purposes.
467 Please see below for more details about important :class:`.EventHandler`
468 changes in 1.8.
469
470 Finally, :ref:`cluset <cluset-tool>`/:ref:`nodeset <nodeset-tool>` have been
471 improved by adding support for:
472
473 * literal new line in ``-S``
474
475 * multiline shell variables in options
476
477 For more details, please have a look at `GitHub Issues for 1.8.1 milestone`_.
478
479 Main changes in 1.8
480 ^^^^^^^^^^^^^^^^^^^
481
482 For more details, please have a look at `GitHub Issues for 1.8 milestone`_.
483
484 CLI (command line interface)
485 """"""""""""""""""""""""""""
486
487 If you use the :ref:`clush <clush-tool>` or
488 :ref:`cluset <cluset-tool>`/:ref:`nodeset <nodeset-tool>` tools, there are no
489 major changes since 1.7, though a few bug fixes and improvements have been
490 done:
491
492 * It is now possible to work with numeric node names with cluset/nodeset::
493
494 $ nodeset --fold 6704 6705 r931 r930
495 [6704-6705],r[930-931]
496
497 $ squeue -h -o '%i' -u $USER | cluset -f
498 [680240-680245,680310]
499
500 As a reminder, cluset/nodeset has always had an option to switch to numerical
501 cluster ranges (only), using ``-R/--rangeset``::
502
503 $ squeue -h -o '%i' -u $USER | cluset -f -R
504 680240-680245,680310
505
506 * Node group configuration is now loaded and processed only when required.
507 This is actually an improvement of the :class:`.NodeSet` class that the
508 tools readily benefit. This should improve both usability and performance.
509
510 * YAML group files are now ignored for users that don't have the permission
511 to read them (see :ref:`group-file-based` for more info about group files).
512
513 * :ref:`clush <clush-tool>` now use slightly different colors that are legible
514 on dark backgrounds.
515
516 * :ref:`clush-tree`:
517
518 + Better detection of the Python executable, and, if needed, we added a new
519 environment variable to override it, see :ref:`clush-tree-python`.
520
521 + You must use the same major version of Python on the gateways and the root
522 node.
523
524 .. highlight:: python
525
526 Python library
527 """"""""""""""
528
529 If you're a developer and use the ClusterShell Python library, please read
530 below.
531
532 Python 3 support
533 ++++++++++++++++
534
535 Starting in 1.8, the library can also be used with Python 3. The code is
536 compatible with both Python 2 and 3 at the same time. To make it possible,
537 we performed a full code refactoring (without changing the behavior).
538
539 .. note:: When using Python 3, we recommend Python 3.4 or any more recent
540 version.
541
542 Improved Event API
543 ++++++++++++++++++
544
545 We've made some changes to :class:`.EventHandler`, a class that defines a
546 simple interface to handle events generated by :class:`.Worker`,
547 :class:`.EventTimer` and :class:`.EventPort` objects.
548
549 Please note that all programs already based on :class:`.EventHandler` should
550 work with this new version of ClusterShell without any code change (backward
551 API compatibility across 1.x versions is enforced). We use object
552 *introspection*, the ability to determine the type of an object at runtime,
553 to make the Event API evolve smoothly. We do still recommend to change your
554 code as soon as possible as we'll break backward compatibility in the future
555 major release 2.0.
556
557 The signatures of the following :class:`.EventHandler` methods **changed** in
558 1.8:
559
560 * :meth:`.EventHandler.ev_pickup`: new ``node`` argument
561 * :meth:`.EventHandler.ev_read`: new ``node``, ``sname`` and ``msg`` arguments
562 * :meth:`.EventHandler.ev_hup`: new ``node``, ``rc`` argument
563 * :meth:`.EventHandler.ev_close`: new ``timedout`` argument
564
565 Both old and new signatures are supported in 1.8. The old signatures will
566 be deprecated in a future 1.x release and **removed** in version 2.0.
567
568 The new methods aims to be more convenient to use by avoiding the need of
569 accessing context-specific :class:`.Worker` attributes like
570 ``worker.current_node`` (replaced with the ``node`` argument in that case).
571
572 Also, please note that the following :class:`.EventHandler` methods will be
573 removed in 2.0:
574
575 * ``EventHandler.ev_error()``: its use should be replaced with
576 :meth:`.EventHandler.ev_read` by comparing the stream name ``sname``
577 with :attr:`.Worker.SNAME_STDERR`, like in the example below::
578
579 class MyEventHandler(EventHandler):
580
581 def ev_read(self, worker, node, sname, msg):
582 if sname == worker.SNAME_STDERR:
583 print('error from %s: %s' % (node, msg))
584
585 * ``EventHandler.ev_timeout()``: its use should be replaced with
586 :meth:`.EventHandler.ev_close` by checking for the new ``timedout``
587 argument, which is set to ``True`` when a timeout occurred.
588
589 We recommend developers to start using the improved :mod:`.Event` API now.
590 Please don't forget to update your packaging requirements to use ClusterShell
591 1.8 or later.
592
593 Task and standard input (stdin)
594 +++++++++++++++++++++++++++++++
595
596 :meth:`.Task.shell` and :meth:`.Task.run` have a new ``stdin`` boolean
597 argument which if set to ``False`` prevents the use of stdin by sending
598 EOF at first read, like if it is connected to /dev/null.
599
600 If not specified, its value is managed by the :ref:`defaults-config`.
601 Its default value in :class:`.Defaults` is set to ``True`` for backward
602 compatibility, but could change in a future major release.
603
604 If your program doesn't plan to listen to stdin, it is recommended to set
605 ``stdin=False`` when calling these two methods.
606
607 .. highlight:: console
608
609 Packaging changes
610 """""""""""""""""
611
612 We recommend that package maintainers use separate subpackages for Python 2
613 and Python 3, to install ClusterShell modules and related command line tools.
614 The Python 2 and Python 3 stacks should be fully installable in parallel.
615
616 For the RPM packaging, there is now two subpackages
617 ``python2-clustershell`` and ``python3-clustershell`` (or
618 ``python34-clustershell`` in EPEL), each providing
619 the library and tools for the corresponding version of Python.
620
621 The ``clustershell`` package includes the common configuration files and
622 documentation and requires ``python2-clustershell``, mainly because
623 Python 2 is still the default interpreter on most operating systems.
624
625 ``vim-clustershell`` was confusing so we removed it and added the vim
626 extensions to the main ``clustershell`` subpackage.
627
628 Version 1.8 should be readily available as RPMs in the following
629 distributions or RPM repositories:
630
631 * EPEL 6 and 7
632 * Fedora 26 and 27
633 * openSUSE Factory and Leap
634
635 On a supported environment, you can expect a smooth upgrade from version 1.6+.
636
637 We also expect the packaging to be updated for Debian.
638
639 Version 1.7
640 -----------
641
642 It's just a small version bump from the well-known 1.6 version, but
643 ClusterShell 1.7 comes with some nice new features that we hope you'll enjoy!
644 Most of these features have already been tested on some very large Linux
645 production systems.
646
647 Version 1.7 and possible future minor versions 1.7.x are compatible with
648 Python 2.4 up to Python 2.7 (for example: from RedHat EL5 to EL7). Upgrade
649 from version 1.6 to 1.7 should be painless and is fully supported.
650
651
652 Version 1.7.3
653 ^^^^^^^^^^^^^
654
655 This update contains a few bug fixes and some interesting performance
656 improvements. This is also the first release published under the
657 GNU Lesser General Public License, version 2.1 or later (`LGPL v2.1+`_).
658 Previous releases were published under the `CeCILL-C V1`_.
659
660 Quite a bit of work has been done on the *fanout* of processes that the library
661 uses to execute commands. We implemenented a basic per-worker *fanout* to fix
662 the broken behaviour in tree mode. Thanks to this, it is now possible to use
663 fanout=1 with gateways. The :ref:`documentation <clush-tree-fanout>` has also
664 been clarified.
665
666 An issue that led to broken pipe errors but also affected performance has been
667 fixed in :ref:`tree mode <clush-tree>` when copying files.
668
669 An issue with :ref:`clush-tool` -L where nodes weren't always properly sorted
670 has been fixed.
671
672 The performance of :class:`.MsgTree`, the class used by the library to
673 aggregate identical command outputs, has been improved. We have seen up to 75%
674 speed improvement in some cases.
675
676 Finally, a :ref:`cluset <cluset-tool>` command has been added to avoid a
677 conflict with `xCAT`_ nodeset command. It is the same command as
678 :ref:`nodeset-tool`.
679
680 For more details, please have a look at `GitHub Issues for 1.7.3 milestone`_.
681
682 ClusterShell 1.7.3 is compatible with Python 2.4 up to Python 2.7 (for
683 example: from RedHat EL5 to EL7). Upgrades from versions 1.6 or 1.7 are
684 supported.
685
686 Version 1.7.2
687 ^^^^^^^^^^^^^
688
689 This minor version fixes a defect in :ref:`tree mode <clush-tree>` that led
690 to broken pipe errors or unwanted backtraces.
691
692 The :class:`.NodeSet` class now supports the empty string as input. In
693 practice, you may now safely reuse the output of a
694 :ref:`nodeset <nodeset-tool>` command as input argument for another
695 :ref:`nodeset <nodeset-tool>` command, even if the result is an empty string.
696
697 A new option ``--pick`` is available for :ref:`clush <clush-pick>` and
698 :ref:`nodeset <nodeset-pick>` to pick N node(s) at random from the resulting
699 node set.
700
701 For more details, please have a look at `GitHub Issues for 1.7.2 milestone`_.
702
703 ClusterShell 1.7.2 is compatible with Python 2.4 up to Python 2.7 (for
704 example: from RedHat EL5 to EL7). Upgrades from versions 1.6 or 1.7 are
705 supported.
706
707 Version 1.7.1
708 ^^^^^^^^^^^^^
709
710 This minor version contains a few bug fixes, mostly related to
711 :ref:`guide-NodeSet`.
712
713 This version also contains bug fixes and performance improvements in tree
714 propagation mode.
715
716 For more details, please have a look at `GitHub Issues for 1.7.1 milestone`_.
717
718 ClusterShell 1.7.1 is compatible with Python 2.4 up to Python 2.7 (for
719 example: from RedHat EL5 to EL7). Upgrades from versions 1.6 or 1.7 are
720 supported.
721
722 Main changes in 1.7
723 ^^^^^^^^^^^^^^^^^^^
724
725 This new version comes with a refreshed documentation, based on the Sphinx
726 documentation generator, available on https://clustershell.readthedocs.io.
727
728 The main new features of version 1.7 are described below.
729
730 Multidimensional nodesets
731 """""""""""""""""""""""""
732
733 The :class:`.NodeSet` class and :ref:`nodeset <nodeset-tool>` command-line
734 have been improved to support multidimentional node sets with folding
735 capability. The use of nD naming scheme is sometimes used to map node names to
736 physical location like ``name-<rack>-<position>`` or node position within the
737 cluster interconnect network topology.
738
739 A first example of 3D nodeset expansion is a good way to start::
740
741 $ nodeset -e gpu-[1,3]-[4-5]-[0-6/2]
742 gpu-1-4-0 gpu-1-4-2 gpu-1-4-4 gpu-1-4-6 gpu-1-5-0 gpu-1-5-2 gpu-1-5-4
743 gpu-1-5-6 gpu-3-4-0 gpu-3-4-2 gpu-3-4-4 gpu-3-4-6 gpu-3-5-0 gpu-3-5-2
744 gpu-3-5-4 gpu-3-5-6
745
746 You've probably noticed the ``/2`` notation of the last dimension. It's called
747 a step and behaves as one would expect, and is fully supported with nD
748 nodesets.
749
750 All other :ref:`nodeset <nodeset-tool>` commands and options are supported
751 with nD nodesets. For example, it's always useful to have a quick way to count
752 the number of nodes in a nodeset::
753
754 $ nodeset -c gpu-[1,3]-[4-5]-[0-6/2]
755 16
756
757 Then to show the most interesting new capability of the underlying
758 :class:`.NodeSet` class in version 1.7, a folding example is probably
759 appropriate::
760
761 $ nodeset -f compute-1-[1-34] compute-2-[1-34]
762 compute-[1-2]-[1-34]
763
764 In the above example, nodeset will try to find a very compact nodesets
765 representation whenever possible. ClusterShell is probably the first and only
766 cluster tool capable of doing such complex nodeset folding.
767
768 Attention, as not all cluster tools are supporting this kind of complex
769 nodesets, even for nodeset expansion, we added an ``--axis`` option to select
770 to fold along some desired dimension::
771
772 $ nodeset --axis 2 -f compute-[1-2]-[1-34]
773 compute-1-[1-34],compute-2-[1-34]
774
775 The last dimension can also be selected using ``-1``::
776
777 $ nodeset --axis -1 -f compute-[1-2]-[1-34]
778 compute-1-[1-34],compute-2-[1-34]
779
780 All set-like operations are also supported with several dimensions, for
781 example *difference* (``-x``)::
782
783 $ nodeset -f c-[1-10]-[1-44] -x c-[5-10]-[1-34]
784 c-[1-4]-[1-44],c-[5-10]-[35-44]
785
786 Hard to follow? Don't worry, ClusterShell does it for you!
787
788 File-based node groups
789 """"""""""""""""""""""
790
791 Cluster node groups have been a great success of previous version of
792 ClusterShell and are now widely adopted. So we worked on improving it even
793 more for version 1.7.
794
795 For those of you who use the file ``/etc/clustershell/group`` to describe
796 node groups, that is still supported in 1.7 and upgrade from your 1.6 setup
797 should work just fine. However, for new 1.7 installations, we have put this
798 file in a different location by default::
799
800 $ vim /etc/clustershell/groups.d/local.cfg
801
802 Especially if you're starting a new setup, you have also the choice to switch
803 to a more advanced groups YAML configuration file that can define multiple
804 *sources* in a single file (equivalent to separate namespaces for node
805 groups). The YAML format possibly allows you to edit the file content with
806 YAML tools but it's also a file format convenient to edit just using the vim
807 editor. To enable the example file, you need to rename it first as it needs to
808 have the **.yaml** extension::
809
810 $ cd /etc/clustershell/groups.d
811 $ mv cluster.yaml.example cluster.yaml
812
813 You can make the first dictionary found on this file (named *roles*) to be the
814 **default** source by changing ``default: local`` to ``default: roles`` in
815 ``/etc/clustershell/groups.conf`` (main config file for groups).
816
817 For more info about the YAML group files, please see :ref:`group-file-based`.
818
819 Please also see :ref:`node groups configuration <groups-config>` for node
820 groups configuration in general.
821
822 nodeset -L/--list-all option
823 """"""""""""""""""""""""""""
824
825 Additionally, the :ref:`nodeset <nodeset-tool>` command also has a new option
826 ``-L`` or ``--list-all`` to list groups from all sources (``-l`` only lists
827 groups from the **default** source). This can be useful when configuring
828 ClusterShell and/or troubleshooting node group sources::
829
830 $ nodeset -LL
831 @adm example0
832 @all example[2,4-5,32-159]
833 @compute example[32-159]
834 @gpu example[156-159]
835 @io example[2,4-5]
836 @racks:new example[4-5,156-159]
837 @racks:old example[0,2,32-159]
838 @racks:rack1 example[0,2]
839 @racks:rack2 example[4-5]
840 @racks:rack3 example[32-159]
841 @racks:rack4 example[156-159]
842 @cpu:hsw example[64-159]
843 @cpu:ivy example[32-63]
844
845 Special group @*
846 """"""""""""""""
847
848 The special group syntax ``@*`` (or ``@source:*`` if using explicit source
849 selection) has been added and can be used in configuration files or with
850 command line tools. This special group is always available for file-based node
851 groups (return the content of the **all** group, or all groups from the source
852 otherwise). For external sources, it is available when either the **all**
853 upcall is defined or both **map** and **list** upcalls are defined. The all
854 special group is also used by ``clush -a`` and ``nodeset -a``. For example,
855 the two following commands are equivalent::
856
857 $ nodeset -a -f
858 example[2,4-5,32-159]
859
860 $ nodeset -f @*
861 example[2,4-5,32-159]
862
863 Exec worker
864 """""""""""
865
866 Version 1.7 introduces a new generic execution worker named
867 :class:`.ExecWorker` as the new base class for most exec()-based worker
868 classes. In practice with :ref:`clush-tool`, you can now specify the worker in
869 command line using ``--worker`` or ``-R`` and use **exec**. It also supports
870 special placeholders for the node (**%h**) or rank (**%n**). For example, the
871 following command will execute *ping* commands in parallel, each with a
872 different host from hosts *cs01*, etc. to *cs05* as argument and then
873 aggregate the results::
874
875 $ clush -R exec -w cs[01-05] -bL 'ping -c1 %h >/dev/null && echo ok'
876 cs[01-04]: ok
877 clush: cs05: exited with exit code 1
878
879 This feature allows the system administrator to use non cluster-aware tools in
880 a more efficient way. You may also want to explicitly set the fanout (using
881 ``-f``) to limit the number of parallel local commands launched.
882
883 Please see also :ref:`clush worker selection <clush-worker>`.
884
885 Rsh worker
886 """"""""""
887
888 Version 1.7 adds support for ``rsh`` or any of its variants like ``krsh`` or
889 ``mrsh``.
890 ``rsh`` and ``ssh`` also share a lot of common mechanisms. Worker Rsh was
891 added moving a lot of Worker Ssh code into it.
892
893 For ``clush``, please see :ref:`clush worker selection <clush-worker>` to
894 enable ``rsh``.
895
896 To use ``rsh`` by default instead of ``ssh`` at the library level, install the
897 provided example file named ``defaults.conf-rsh`` to
898 ``/etc/clustershell/defaults.conf``.
899
900 Tree Propagation Mode
901 """""""""""""""""""""
902
903 The ClusterShell Tree Mode allows you to send commands to target nodes through
904 a set of predefined gateways (using ssh by default). It can be useful to
905 access servers that are behind some other servers like bastion hosts, or to
906 scale on very large clusters when the flat mode (eg. sliding window of ssh
907 commands) is not enough anymore.
908
909 The tree mode is now :ref:`documented <clush-tree>`, it has been improved and
910 is enabled by default when a ``topology.conf`` file is found. While it is still
911 a work in progress, the tree mode is known to work pretty well when all gateways
912 are online. We'll continue to improve it and make it more robust in the next
913 versions.
914
915 Configuration files
916 """""""""""""""""""
917
918 When ``$CLUSTERSHELL_CFGDIR`` or ``$XDG_CONFIG_HOME`` are defined,
919 ClusterShell will use them to search for additional configuration files.
920
921 If ``$CLUSTERSHELL_CFGDIR`` is not defined, the global configuration files will
922 be searched for in `/etc/clustershell`
923
924 PIP user installation support
925 """""""""""""""""""""""""""""
926
927 ClusterShell 1.7 is now fully compatible with PIP and supports user
928 configuration files::
929
930 $ pip install --user clustershell
931
932 Please see :ref:`install-pip-user`.
933
934 .. _GitHub Issues for 1.7.1 milestone: https://github.com/cea-hpc/clustershell/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A1.7.1
935 .. _GitHub Issues for 1.7.2 milestone: https://github.com/cea-hpc/clustershell/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A1.7.2
936 .. _GitHub Issues for 1.7.3 milestone: https://github.com/cea-hpc/clustershell/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A1.7.3
937 .. _GitHub Issues for 1.8 milestone: https://github.com/cea-hpc/clustershell/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A1.8
938 .. _GitHub Issues for 1.8.1 milestone: https://github.com/cea-hpc/clustershell/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A1.8.1
939 .. _GitHub Issues for 1.8.2 milestone: https://github.com/cea-hpc/clustershell/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A1.8.2
940 .. _GitHub Issues for 1.8.3 milestone: https://github.com/cea-hpc/clustershell/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A1.8.3
941 .. _GitHub Issues for 1.8.4 milestone: https://github.com/cea-hpc/clustershell/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A1.8.4
942 .. _GitHub Issues for 1.9 milestone: https://github.com/cea-hpc/clustershell/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A1.9
943 .. _GitHub Issues for 1.9.1 milestone: https://github.com/cea-hpc/clustershell/issues?q=milestone%3A1.9.1
944 .. _GitHub Issues for 1.9.2 milestone: https://github.com/cea-hpc/clustershell/issues?q=milestone%3A1.9.2
945 .. _GitHub Issues for 1.9.3 milestone: https://github.com/cea-hpc/clustershell/issues?q=milestone%3A1.9.3
946 .. _GitHub Issues for 1.10 milestone: https://github.com/clustershell/clustershell/issues?q=milestone%3A1.10
947 .. _GitHub Issues for 1.10.1 milestone: https://github.com/clustershell/clustershell/issues?q=milestone%3A1.10.1
948 .. _Trusted Publishing: https://docs.pypi.org/trusted-publishers/
949 .. _High Performance Software Foundation (HPSF): https://hpsf.io/
950 .. _LGPL v2.1+: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
951 .. _CeCILL-C V1: http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html
952 .. _xCAT: https://xcat.org/