mitogen/docs/changelog.rst

629 lines
26 KiB
ReStructuredText
Raw Normal View History

2018-04-27 00:33:07 +00:00
.. _changelog:
2018-07-09 01:42:50 +00:00
Release Notes
=============
2018-04-27 00:33:07 +00:00
2018-07-09 01:42:50 +00:00
.. raw:: html
<style>
div#release-notes h2 {
border-bottom: 1px dotted #c0c0c0;
margin-top: 40px;
}
</style>
.. _known_issues:
2018-11-01 20:44:42 +00:00
Known Issues
------------
Mitogen For Ansible
~~~~~~~~~~~~~~~~~~~
* The Ansible 2.7 `reboot
<https://docs.ansible.com/ansible/latest/modules/reboot_module.html>`_ module
may require a ``pre_reboot_delay`` on systemd hosts, as insufficient time
exists for the reboot command's exit status to be reported before necessary
processes are torn down.
* On OS X when a SSH password is specified and the default connection type of
``smart`` is used, Ansible may select the Paramiko plug-in rather than
Mitogen. If you specify a password on OS X, ensure ``connection: ssh``
appears in your playbook, ``ansible.cfg``, or as ``-c ssh`` on the
command-line.
* The ``raw`` action executes as a regular Mitogen connection, which requires
Python on the target, precluding its use for installing Python. This will be
addressed in a future 0.2 release. For now, simply mix Mitogen and vanilla
Ansible strategies in your playbook:
.. code-block:: yaml
- hosts: web-servers
strategy: linear
tasks:
- name: Install Python if necessary.
raw: test -e /usr/bin/python || apt install -y python-minimal
- hosts: web-servers
strategy: mitogen_linear
roles:
- nginx
- initech_app
- y2k_fix
.. * When running with ``-vvv``, log messages will be printed to the console
*after* the Ansible run completes, as connection multiplexer shutdown only
begins after Ansible exits. This is due to a lack of suitable shutdown hook
in Ansible, and is fairly harmless, albeit cosmetically annoying. A future
release may include a solution.
.. * Configurations will break that rely on the `hashbang argument splitting
behaviour <https://github.com/ansible/ansible/issues/15635>`_ of the
``ansible_python_interpreter`` setting, contrary to the Ansible
documentation. This will be addressed in a future 0.2 release.
* Performance does not scale linearly with target count. This requires
significant additional work, as major bottlenecks exist in the surrounding
Ansible code. Performance-related bug reports for any scenario remain
welcome with open arms.
* Performance on Python 3 is significantly worse than on Python 2. While this
has not yet been investigated, at least some of the regression appears to be
part of the core library, and should therefore be straightforward to fix as
part of 0.2.x.
* *Module Replacer* style Ansible modules are not supported.
* Actions are single-threaded for each `(host, user account)` combination,
including actions that execute on the local machine. Playbooks may experience
slowdown compared to vanilla Ansible if they employ long-running
``local_action`` or ``delegate_to`` tasks delegating many target hosts to a
single machine and user account.
* Connection Delegation remains in preview and has bugs around how it infers
connections. Connection establishment will remain single-threaded for the 0.2
series, however connection inference bugs will be addressed in a future 0.2
release.
* Connection Delegation does not support automatic tunnelling of SSH-dependent
actions, such as the ``synchronize`` module. This will be addressed in the
0.3 series.
Core Library
~~~~~~~~~~~~
* Serialization is still based on :mod:`pickle`. While there is high confidence
remote code execution is impossible in Mitogen's configuration, an untrusted
context may at least trigger disproportionately high memory usage injecting
small messages (*"billion laughs attack"*). Replacement is an important
future priority, but not critical for an initial release.
* Child processes are not reliably reaped, leading to a pileup of zombie
processes when a program makes many short-lived connections in a single
invocation. This does not impact Mitogen for Ansible, however it limits the
usefulness of the core library. A future 0.2 release will address it.
* Some races remain around :class:`mitogen.core.Broker <Broker>` destruction,
disconnection and corresponding file descriptor closure. These are only
problematic in situations where child process reaping is also problematic.
* The `fakessh` component does not shut down correctly and requires flow
control added to the design. While minimal fixes are possible, due to the
absence of flow control the original design is functionally incomplete.
* The multi-threaded :ref:`service` remains in a state of design flux and
should be considered obsolete, despite heavy use in Mitogen for Ansible. A
future replacement may be integrated more tightly with, or entirely replace
the RPC dispatcher on the main thread.
* Documentation is in a state of disrepair. This will be improved over the 0.2
series.
2018-10-23 22:24:34 +00:00
v0.2.4 (2018-??-??)
------------------
Mitogen for Ansible
~~~~~~~~~~~~~~~~~~~
Enhancements
^^^^^^^^^^^^
2018-11-01 20:55:47 +00:00
* `#76 <https://github.com/dw/mitogen/issues/76>`_,
`#351 <https://github.com/dw/mitogen/issues/351>`_: disconnect propagation
has improved, allowing Ansible to cancel waits for responses from targets
that where abruptly disconnected. This increases the chance a task will fail
2018-11-01 15:14:25 +00:00
gracefully, rather than hanging due to the connection being severed, for
example because of network failure or EC2 instance maintenance.
2018-10-29 19:45:43 +00:00
* `#369 <https://github.com/dw/mitogen/issues/369>`_: :meth:`Connection.reset`
is implemented, allowing `meta: reset_connection
<https://docs.ansible.com/ansible/latest/modules/meta_module.html>`_ to shut
down the remote interpreter as expected, and improving support for the
`reboot
<https://docs.ansible.com/ansible/latest/modules/reboot_module.html>`_
module.
2018-10-23 22:24:34 +00:00
Fixes
^^^^^
2018-10-30 15:02:46 +00:00
* `#334 <https://github.com/dw/mitogen/issues/334>`_: the SSH method
2018-10-30 15:24:50 +00:00
tilde-expands private key paths using Ansible's logic. Previously Mitogen
passed the path unmodified to SSH, which would expand it using
:func:`os.getpwent`.
2018-10-30 15:02:46 +00:00
2018-10-30 15:24:50 +00:00
This differs from :func:`os.path.expanduser`, which prefers the ``HOME``
environment variable if it is set, causing behaviour to diverge when Ansible
was invoked using sudo without appropriate flags to cause the ``HOME``
environment variable to be reset to match the target account.
2018-10-30 15:02:46 +00:00
2018-11-01 20:25:19 +00:00
* `#370 <https://github.com/dw/mitogen/issues/370>`_: the Ansible
`reboot <https://docs.ansible.com/ansible/latest/modules/reboot_module.html>`_
module is supported.
2018-10-30 22:41:28 +00:00
* `#373 <https://github.com/dw/mitogen/issues/373>`_: the LXC and LXD methods
now print a useful hint when Python fails to start, as no useful error is
normally logged to the console by these tools.
2018-11-01 15:06:18 +00:00
* `#400 <https://github.com/dw/mitogen/issues/400>`_: work around a threading
bug in the AWX display callback when running with high verbosity setting.
2018-10-31 00:52:06 +00:00
* `#409 <https://github.com/dw/mitogen/issues/409>`_: the setns method was
2018-10-31 12:44:25 +00:00
silently broken due to missing tests. Basic coverage was added to prevent a
recurrence.
* `#409 <https://github.com/dw/mitogen/issues/409>`_: the LXC and LXD methods
support ``mitogen_lxc_path`` and ``mitogen_lxc_attach`` variables to control
the location of third pary utilities.
2018-10-31 00:52:06 +00:00
2018-10-31 16:05:08 +00:00
* `#410 <https://github.com/dw/mitogen/issues/410>`_: the sudo method supports
the SELinux ``--type`` and ``--role`` options.
2018-10-30 15:02:46 +00:00
2018-10-23 22:24:34 +00:00
Core Library
~~~~~~~~~~~~
* `#76 <https://github.com/dw/mitogen/issues/76>`_: routing maintains the set
of destination context ID ever received on each stream, and when
disconnection occurs, propagates ``DEL_ROUTE`` messages downwards towards
every stream that ever communicated with a disappearing peer, rather than
simply toward parents.
2018-10-30 15:24:50 +00:00
Conversations between nodes in any level of the tree receive ``DEL_ROUTE``
messages when a participant disconnects, allowing receivers to be woken with
:class:`mitogen.core.ChannelError` to signal the connection has broken, even
when one participant is not a parent of the other.
2018-10-23 22:24:34 +00:00
2018-10-30 10:55:26 +00:00
* `#405 <https://github.com/dw/mitogen/issues/405>`_: if a message is rejected
due to being too large, and it has a ``reply_to`` set, a dead message is
returned to the sender. This ensures function calls exceeding the configured
maximum size crash rather than hang.
* `#411 <https://github.com/dw/mitogen/issues/411>`_: the SSH method typed
2018-10-30 15:24:50 +00:00
"``y``" rather than the requisite "``yes``" when `check_host_keys="accept"`
was configured. This would lead to connection timeouts due to the hung
response.
2018-10-30 10:24:53 +00:00
* `16ca111e <https://github.com/dw/mitogen/commit/16ca111e>`_: handle OpenSSH
7.5 permission denied prompts when ``~/.ssh/config`` rewrites are present.
2018-10-26 12:59:06 +00:00
* `9ec360c2 <https://github.com/dw/mitogen/commit/9ec360c2>`_: a new
:meth:`mitogen.core.Broker.defer_sync` utility function is provided.
2018-10-23 22:24:34 +00:00
2018-10-30 15:02:46 +00:00
Thanks!
~~~~~~~
Mitogen would not be possible without the support of users. A huge thanks for
bug reports, features and fixes in this release contributed by
2018-11-01 20:55:47 +00:00
`Berend De Schouwer <https://github.com/berenddeschouwer>`_,
2018-10-31 00:52:06 +00:00
`Brian Candler <https://github.com/candlerb>`_,
2018-10-31 16:05:08 +00:00
`Guy Knights <https://github.com/knightsg>`_,
2018-11-01 15:06:18 +00:00
`Jiří Vávra <https://github.com/Houbovo>`_,
2018-11-01 20:25:19 +00:00
`Jonathan Rosser <https://github.com/jrosser>`_,
`Mehdi <https://github.com/mehdisat7>`_, and
`Mohammed Naser <https://github.com/mnaser/>`_.
2018-10-30 15:02:46 +00:00
2018-10-23 15:14:07 +00:00
v0.2.3 (2018-10-23)
-------------------
Mitogen for Ansible
~~~~~~~~~~~~~~~~~~~
Enhancements
^^^^^^^^^^^^
2018-08-11 17:31:08 +00:00
2018-10-23 15:14:07 +00:00
* `#315 <https://github.com/dw/mitogen/pull/315>`_,
`#392 <https://github.com/dw/mitogen/issues/392>`_: Ansible 2.6 and 2.7 are
supported.
2018-08-19 21:42:56 +00:00
* `#321 <https://github.com/dw/mitogen/issues/321>`_,
`#336 <https://github.com/dw/mitogen/issues/336>`_: temporary file handling
2018-08-20 12:40:48 +00:00
was simplified, undoing earlier damage caused by compatibility fixes,
improving 2.6 compatibility, and avoiding two network roundtrips for every
related action
(`assemble <http://docs.ansible.com/ansible/latest/modules/assemble_module.html>`_,
`aws_s3 <http://docs.ansible.com/ansible/latest/modules/aws_s3_module.html>`_,
`copy <http://docs.ansible.com/ansible/latest/modules/copy_module.html>`_,
`patch <http://docs.ansible.com/ansible/latest/modules/patch_module.html>`_,
`script <http://docs.ansible.com/ansible/latest/modules/script_module.html>`_,
`template <http://docs.ansible.com/ansible/latest/modules/template_module.html>`_,
`unarchive <http://docs.ansible.com/ansible/latest/modules/unarchive_module.html>`_,
`uri <http://docs.ansible.com/ansible/latest/modules/uri_module.html>`_). See
:ref:`ansible_tempfiles` for a complete description.
* `#376 <https://github.com/dw/mitogen/pull/376>`_,
`#377 <https://github.com/dw/mitogen/pull/377>`_: the ``kubectl`` connection
2018-09-19 18:52:14 +00:00
type is now supported. Contributed by Yannig Perré.
* `084c0ac0 <https://github.com/dw/mitogen/commit/084c0ac0>`_: avoid a
roundtrip in
`copy <http://docs.ansible.com/ansible/latest/modules/copy_module.html>`_ and
`template <http://docs.ansible.com/ansible/latest/modules/template_module.html>`_
due to an unfortunate default.
* `7458dfae <https://github.com/dw/mitogen/commit/7458dfae>`_: avoid a
roundtrip when transferring files smaller than 124KiB. Copy and template
actions are now 2-RTT, reducing runtime for a 20-iteration template loop over
a 250 ms link from 30 seconds to 10 seconds compared to v0.2.2, down from 120
seconds compared to vanilla.
2018-09-09 23:44:12 +00:00
* `#337 <https://github.com/dw/mitogen/issues/337>`_: To avoid a scaling
2018-09-10 01:30:25 +00:00
limitation, a PTY is no longer allocated for an SSH connection unless the
configuration specifies a password.
2018-09-09 23:44:12 +00:00
* `d62e6e2a <https://github.com/dw/mitogen/commit/d62e6e2a>`_: many-target
runs executed the dependency scanner redundantly due to missing
synchronization, wasting significant runtime in the connection multiplexer.
In one case work was reduced by 95%, which may manifest as faster runs.
2018-09-07 21:53:26 +00:00
* `5189408e <https://github.com/dw/mitogen/commit/5189408e>`_: threads are
cooperatively scheduled, minimizing `GIL
<https://en.wikipedia.org/wiki/Global_interpreter_lock>`_ contention, and
2018-09-09 22:51:48 +00:00
reducing context switching by around 90%. This manifests as an overall
improvement, but is easily noticeable on short many-target runs, where
startup overhead dominates runtime.
2018-09-07 21:53:26 +00:00
* The `faulthandler <https://faulthandler.readthedocs.io/>`_ module is
automatically activated if it is installed, simplifying debugging of hangs.
2018-09-10 18:25:31 +00:00
See :ref:`diagnosing-hangs` for details.
* The ``MITOGEN_DUMP_THREAD_STACKS`` environment variable's value now indicates
the number of seconds between stack dumps. See :ref:`diagnosing-hangs` for
2018-09-10 18:25:31 +00:00
details.
2018-09-07 21:53:26 +00:00
Fixes
^^^^^
* `#251 <https://github.com/dw/mitogen/issues/251>`_,
`#340 <https://github.com/dw/mitogen/issues/340>`_: Connection Delegation
could establish connections to the wrong target when ``delegate_to:`` is
present.
* `#291 <https://github.com/dw/mitogen/issues/291>`_: when Mitogen had
previously been installed using ``pip`` or ``setuptools``, the globally
installed version could conflict with a newer version bundled with an
extension that had been installed using the documented steps. Now the bundled
library always overrides over any system-installed copy.
2018-08-20 13:23:30 +00:00
* `#324 <https://github.com/dw/mitogen/issues/324>`_: plays with a
`custom module_utils <https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-module-utils-path>`_
would fail due to fallout from the Python 3 port and related tests being
disabled.
2018-08-11 13:56:13 +00:00
2018-08-20 18:32:14 +00:00
* `#331 <https://github.com/dw/mitogen/issues/331>`_: the connection
multiplexer subprocess always exits before the main Ansible process, ensuring
logs generated by it do not overwrite the user's prompt when ``-vvv`` is
enabled.
2018-08-11 13:56:13 +00:00
* `#332 <https://github.com/dw/mitogen/issues/332>`_: support a new
2018-08-20 13:23:30 +00:00
:func:`sys.excepthook`-based module exit mechanism added in Ansible 2.6.
2018-08-11 13:56:13 +00:00
* `#338 <https://github.com/dw/mitogen/issues/338>`_: compatibility: changes to
``/etc/environment`` and ``~/.pam_environment`` made by a task are reflected
in the runtime environment of subsequent tasks. See
:ref:`ansible_process_env` for a complete description.
2018-08-11 13:56:13 +00:00
2018-08-13 10:33:14 +00:00
* `#343 <https://github.com/dw/mitogen/issues/343>`_: the sudo ``--login``
option is supported.
* `#344 <https://github.com/dw/mitogen/issues/344>`_: connections no longer
2018-08-20 13:23:30 +00:00
fail when the controller's login username contains slashes.
* `#345 <https://github.com/dw/mitogen/issues/345>`_: the ``IdentitiesOnly
2018-08-20 13:23:30 +00:00
yes`` option is no longer supplied to OpenSSH by default, better matching
Ansible's behaviour.
2018-09-08 21:19:37 +00:00
* `#355 <https://github.com/dw/mitogen/issues/355>`_: tasks configured to run
2018-09-09 22:51:48 +00:00
in an isolated forked subprocess were forked from the wrong parent context.
This meant built-in modules overridden via a custom ``module_utils`` search
path may not have had any effect.
2018-09-08 21:19:37 +00:00
2018-09-11 17:37:34 +00:00
* `#362 <https://github.com/dw/mitogen/issues/362>`_: to work around a slow
algorithm in the :mod:`subprocess` module, the maximum number of open files
in processes running on the target is capped to 512, reducing the work
required to start a subprocess by >2000x in default CentOS configurations.
2018-10-23 14:34:06 +00:00
* `#397 <https://github.com/dw/mitogen/issues/397>`_: recent Mitogen master
versions could fail to clean up temporary directories in a number of
circumstances, and newer Ansibles moved to using :mod:`atexit` to effect
temporary directory cleanup in some circumstances.
2018-10-02 23:47:13 +00:00
* `b9112a9c <https://github.com/dw/mitogen/commit/b9112a9c>`_,
`2c287801 <https://github.com/dw/mitogen/commit/2c287801>`_: OpenSSH 7.5
permission denied prompts are now recognized. Contributed by Alex Willmer.
2018-08-11 17:31:08 +00:00
* A missing check caused an exception traceback to appear when using the
``ansible`` command-line tool with a missing or misspelled module name.
2018-08-21 10:52:34 +00:00
* Ansible since >=2.7 began importing :mod:`__main__` from
:mod:`ansible.module_utils.basic`, causing an error during execution, due to
the controller being configured to refuse network imports outside the
2018-08-11 17:31:08 +00:00
``ansible.*`` namespace. Update the target implementation to construct a stub
2018-08-21 10:52:34 +00:00
:mod:`__main__` module to satisfy the otherwise seemingly vestigial import.
2018-08-11 13:56:13 +00:00
Core Library
~~~~~~~~~~~~
2018-09-09 22:51:48 +00:00
* A new :class:`mitogen.parent.CallChain` class abstracts safe pipelining of
related function calls to a target context, cancelling the chain if an
exception occurs.
2018-09-07 21:23:08 +00:00
* `#305 <https://github.com/dw/mitogen/issues/305>`_: fix a long-standing minor
2018-09-09 22:51:48 +00:00
race relating to the logging framework, where *no route for Message..*
would frequently appear during startup.
2018-09-07 21:23:08 +00:00
2018-08-11 17:31:08 +00:00
* `#313 <https://github.com/dw/mitogen/issues/313>`_:
2018-09-09 22:51:48 +00:00
:meth:`mitogen.parent.Context.call` was documented as capable of accepting
static methods. While possible on Python 2.x the result is ugly, and in every
case it should be trivial to replace with a classmethod. The documentation
was fixed.
2018-08-11 17:31:08 +00:00
2018-09-07 20:09:41 +00:00
* `#337 <https://github.com/dw/mitogen/issues/337>`_: to avoid a scaling
2018-09-10 01:30:25 +00:00
limitation, a PTY is no longer allocated for each OpenSSH client if it can be
avoided. PTYs are only allocated if a password is supplied, or when
2018-09-09 23:41:52 +00:00
`host_key_checking=accept`. This is since Linux has a default of 4096 PTYs
(``kernel.pty.max``), while OS X has a default of 127 and an absolute maximum
of 999 (``kern.tty.ptmx_max``).
2018-09-07 20:09:41 +00:00
2018-08-11 13:56:13 +00:00
* `#339 <https://github.com/dw/mitogen/issues/339>`_: the LXD connection method
was erroneously executing LXC Classic commands.
* `#345 <https://github.com/dw/mitogen/issues/345>`_: the SSH connection method
allows optionally disabling ``IdentitiesOnly yes``.
* `#356 <https://github.com/dw/mitogen/issues/356>`_: if the master Python
process does not have :data:`sys.executable` set, the default Python
interpreter used for new children on the local machine defaults to
``"/usr/bin/python"``.
2018-10-01 19:21:29 +00:00
* `#366 <https://github.com/dw/mitogen/issues/366>`_,
`#380 <https://github.com/dw/mitogen/issues/380>`_: attempts by children to
import :mod:`__main__` where the main program module lacks an execution guard
are refused, and an error is logged. This prevents a common and highly
confusing error when prototyping new scripts.
2018-09-19 18:52:14 +00:00
* `#371 <https://github.com/dw/mitogen/pull/371>`_: the LXC connection method
uses a more compatible method to establish an non-interactive session.
Contributed by Brian Candler.
2018-08-21 10:52:34 +00:00
* `af2ded66 <https://github.com/dw/mitogen/commit/af2ded66>`_: add
:func:`mitogen.fork.on_fork` to allow non-Mitogen managed process forks to
clean up Mitogen resources in the child.
* `d6784242 <https://github.com/dw/mitogen/commit/d6784242>`_: the setns method
always resets ``HOME``, ``SHELL``, ``LOGNAME`` and ``USER`` environment
variables to an account in the target container, defaulting to ``root``.
2018-08-11 17:31:08 +00:00
2018-09-07 20:32:35 +00:00
* `830966bf <https://github.com/dw/mitogen/commit/830966bf>`_: the UNIX
listener no longer crashes if the peer process disappears in the middle of
connection setup.
2018-08-11 13:56:13 +00:00
Thanks!
~~~~~~~
Mitogen would not be possible without the support of users. A huge thanks for
2018-10-02 23:50:44 +00:00
bug reports, features and fixes in this release contributed by
2018-08-11 13:56:13 +00:00
`Alex Russu <https://github.com/alexrussu>`_,
2018-10-02 23:47:13 +00:00
`Alex Willmer <https://github.com/moreati>`_,
`atoom <https://github.com/atoom>`_,
2018-09-08 19:52:53 +00:00
`Berend De Schouwer <https://github.com/berenddeschouwer>`_,
2018-09-19 18:52:14 +00:00
`Brian Candler <https://github.com/candlerb>`_,
2018-08-13 10:33:14 +00:00
`Dan Quackenbush <https://github.com/danquack>`_,
`dsgnr <https://github.com/dsgnr>`_,
2018-08-11 17:31:08 +00:00
`Jesse London <https://github.com/jesteria>`_,
2018-10-01 19:21:29 +00:00
`John McGrath <https://github.com/jmcgrath207>`_,
2018-08-20 18:32:14 +00:00
`Jonathan Rosser <https://github.com/jrosser>`_,
2018-09-08 19:52:53 +00:00
`Josh Smift <https://github.com/jbscare>`_,
2018-08-13 10:33:14 +00:00
`Luca Nunzi <https://github.com/0xlc>`_,
2018-10-23 14:34:06 +00:00
`Orion Poplawski <https://github.com/opoplawski>`_,
2018-09-08 19:52:53 +00:00
`Peter V. Saveliev <https://github.com/svinota>`_,
2018-08-13 10:33:14 +00:00
`Pierre-Henry Muller <https://github.com/pierrehenrymuller>`_,
2018-09-08 19:52:53 +00:00
`Pierre-Louis Bonicoli <https://github.com/jesteria>`_,
`Prateek Jain <https://github.com/prateekj201>`_,
2018-10-01 19:21:29 +00:00
`RedheatWei <https://github.com/RedheatWei>`_,
2018-09-10 01:17:01 +00:00
`Rick Box <https://github.com/boxrick>`_,
2018-10-23 14:34:06 +00:00
`nikitakazantsev12 <https://github.com/nikitakazantsev12>`_,
2018-09-19 18:52:14 +00:00
`Tawana Musewe <https://github.com/tbtmuse>`_,
`Timo Beckers <https://github.com/ti-mo>`_, and
`Yannig Perré <https://github.com/yannig>`_.
2018-08-11 13:56:13 +00:00
2018-07-27 06:37:12 +00:00
v0.2.2 (2018-07-26)
2018-07-13 14:05:51 +00:00
-------------------
2018-07-17 20:33:50 +00:00
Mitogen for Ansible
~~~~~~~~~~~~~~~~~~~
2018-07-24 05:13:13 +00:00
* `#291 <https://github.com/dw/mitogen/issues/291>`_: ``ansible_*_interpreter``
variables are parsed using a restrictive shell-like syntax, supporting a
common idiom where ``ansible_python_interpreter`` is set to ``/usr/bin/env
python``.
2018-07-17 22:50:21 +00:00
* `#299 <https://github.com/dw/mitogen/issues/299>`_: fix the ``network_cli``
2018-07-24 05:13:13 +00:00
connection type when the Mitogen strategy is active. Mitogen cannot help
network device connections, however it should still be possible to use device
connections while Mitogen is active.
2018-07-23 21:01:27 +00:00
2018-07-24 05:13:13 +00:00
* `#301 <https://github.com/dw/mitogen/pull/301>`_: variables like ``$HOME`` in
the ``remote_tmp`` setting are evaluated correctly.
2018-07-17 20:33:50 +00:00
2018-07-27 01:39:22 +00:00
* `#303 <https://github.com/dw/mitogen/pull/303>`_: the :ref:`doas` become method
2018-07-24 05:13:13 +00:00
is supported. Contributed by `Mike Walker
2018-07-23 21:01:27 +00:00
<https://github.com/napkindrawing>`_.
* `#309 <https://github.com/dw/mitogen/issues/309>`_: fix a regression to
process environment cleanup, caused by the change in v0.2.1 to run local
tasks with the correct environment.
* `#317 <https://github.com/dw/mitogen/issues/317>`_: respect the verbosity
2018-07-27 01:58:49 +00:00
setting when writing to Ansible's ``log_path``, if it is enabled. Child log
filtering was also incorrect, causing the master to needlessly wake many
times. This nets a 3.5% runtime improvement running against the local
2018-07-23 21:01:27 +00:00
machine.
2018-07-27 07:18:45 +00:00
* The ``mitogen_ssh_debug_level`` variable is supported, permitting SSH debug
output to be included in Mitogen's ``-vvv`` output when both are specified.
2018-07-17 20:33:50 +00:00
Core Library
~~~~~~~~~~~~
2018-07-17 22:50:21 +00:00
* `#291 <https://github.com/dw/mitogen/issues/291>`_: the ``python_path``
2018-07-27 01:39:22 +00:00
parameter may specify an argument vector prefix rather than a string program
path.
* `#300 <https://github.com/dw/mitogen/issues/300>`_: the broker could crash on
OS X during shutdown due to scheduled `kqueue
<https://www.freebsd.org/cgi/man.cgi?query=kevent>`_ filter changes for
descriptors that were closed before the IO loop resumes. As a temporary
workaround, kqueue's bulk change feature is not used.
2018-07-17 22:50:21 +00:00
2018-07-27 01:39:22 +00:00
* `#303 <https://github.com/dw/mitogen/pull/303>`_: the :ref:`doas` become method
2018-07-23 21:01:27 +00:00
is now supported. Contributed by `Mike Walker
<https://github.com/napkindrawing>`_.
2018-07-13 14:05:51 +00:00
2018-07-17 22:50:21 +00:00
* `#307 <https://github.com/dw/mitogen/issues/307>`_: SSH login banner output
2018-07-17 20:33:50 +00:00
containing the word 'password' is no longer confused for a password prompt.
* `#319 <https://github.com/dw/mitogen/issues/319>`_: SSH connections would
fail immediately on Windows Subsystem for Linux, due to use of `TCSAFLUSH`
with :func:`termios.tcsetattr`. The flag is omitted if WSL is detected.
2018-07-27 01:58:49 +00:00
* `#320 <https://github.com/dw/mitogen/issues/320>`_: The OS X poller
could spuriously wake up due to ignoring an error bit set on events returned
by the kernel, manifesting as a failure to read from an unrelated descriptor.
* `#342 <https://github.com/dw/mitogen/issues/342>`_: The ``network_cli``
connection type would fail due to a missing internal SSH plugin method.
2018-07-27 01:58:49 +00:00
* Standard IO forwarding accidentally configured the replacement ``stdout`` and
``stderr`` write descriptors as non-blocking, causing subprocesses that
generate more output than kernel buffer space existed to throw errors. The
write ends are now configured as blocking.
* When :func:`mitogen.core.enable_profiling` is active, :mod:`mitogen.service`
2018-07-27 01:58:49 +00:00
threads are profiled just like other threads.
2018-07-27 07:18:45 +00:00
* The ``ssh_debug_level`` parameter is supported, permitting SSH debug output
to be redirected to a Mitogen logger when specified.
2018-07-27 02:15:57 +00:00
* Debug logs containing command lines are printed with the minimal quoting and
escaping required.
2018-07-13 14:05:51 +00:00
2018-07-24 05:13:13 +00:00
Thanks!
~~~~~~~
Mitogen would not be possible without the support of users. A huge thanks for
the bug reports and pull requests in this release contributed by
2018-07-27 01:39:22 +00:00
`Alex Russu <https://github.com/alexrussu>`_,
2018-07-27 01:58:49 +00:00
`Andy Freeland <https://github.com/rouge8>`_,
2018-07-24 05:13:13 +00:00
`Ayaz Ahmed Khan <https://github.com/ayaz>`_,
`Colin McCarthy <https://github.com/colin-mccarthy>`_,
`Dan Quackenbush <https://github.com/danquack>`_,
2018-07-27 01:39:22 +00:00
`Duane Zamrok <https://github.com/dewthefifth>`_,
`Gonzalo Servat <https://github.com/gservat>`_,
2018-07-27 01:58:49 +00:00
`Guy Knights <https://github.com/knightsg>`_,
2018-07-27 01:39:22 +00:00
`Josh Smift <https://github.com/jbscare>`_,
`Mark Janssen <https://github.com/sigio>`_,
`Mike Walker <https://github.com/napkindrawing>`_,
2018-10-23 14:34:06 +00:00
`Orion Poplawski <https://github.com/opoplawski>`_,
`falbanese <https://github.com/falbanese>`_,
2018-07-27 01:39:22 +00:00
`Tawana Musewe <https://github.com/tbtmuse>`_, and
`Zach Swanson <https://github.com/zswanson>`_.
2018-07-24 05:13:13 +00:00
2018-07-10 19:56:29 +00:00
v0.2.1 (2018-07-10)
-------------------
Mitogen for Ansible
~~~~~~~~~~~~~~~~~~~
* `#297 <https://github.com/dw/mitogen/issues/297>`_: compatibility: local
actions set their working directory to that of their defining playbook, and
inherit a process environment as if they were executed as a subprocess of the
forked task worker.
2018-07-09 16:43:28 +00:00
v0.2.0 (2018-07-09)
2018-07-09 01:42:50 +00:00
-------------------
Mitogen 0.2.x is the inaugural feature-frozen branch eligible for fixes only,
except for problem areas listed as in-scope below. While stable from a
development perspective, it should still be considered "beta" at least for the
initial releases.
**In Scope**
* Python 3.x performance improvements
* Subprocess reaping improvements
* Major documentation improvements
* PyPI/packaging improvements
* Test suite improvements
* Replacement CI system to handle every supported OS
* Minor deviations from vanilla Ansible behaviour
2018-07-09 02:40:17 +00:00
* Ansible ``raw`` action support
2018-07-09 01:42:50 +00:00
The goal is a *tick/tock* model where even-numbered series are a maturation of
the previous unstable series, and unstable series are released on PyPI with
``--pre`` enabled. The API and user visible behaviour should remain unchanged
within a stable series.
Mitogen for Ansible
~~~~~~~~~~~~~~~~~~~
2018-10-23 15:14:07 +00:00
* Support for Ansible 2.3 - 2.7.x and any mixture of Python 2.6, 2.7 or 3.6 on
2018-07-09 01:42:50 +00:00
controller and target nodes.
* Drop-in support for many Ansible connection types.
* Preview of Connection Delegation feature.
* Built-in file transfer compatible with connection delegation.
Core Library
~~~~~~~~~~~~
* Synchronous connection establishment via OpenSSH, sudo, su, Docker, LXC and
FreeBSD Jails, local subprocesses and :func:`os.fork`. Parallel connection
setup is possible using multiple threads. Connections may be used from one or
many threads after establishment.
* UNIX masters and children, with Linux, MacOS, FreeBSD, NetBSD, OpenBSD and
Windows Subsystem for Linux explicitly supported.
* Automatic tests covering Python 2.6, 2.7 and 3.6 on Linux only.