Commit Graph

1105 Commits (6b9881804602256d08f5b938d3746fa2a5a8c735)
 

Author SHA1 Message Date
dw bd9d9e3600
Merge pull request #234 from dw/dmw
Fix one Latch race, one huge leak around fork
6 years ago
David Wilson c0ced6d04a core: fix monster fork FD leak
_sockets only refers to the idle sockets list, it doesn't refer to every
socket currently in use by a Latch, for example, the 2*16 used by e.g.
Ansible's sleeping service pool.
6 years ago
David Wilson 7316c08237 core: fix _tls_init() race.
The GIL could be lost between the check for an empty list and popping a
socket off the list. Previously _tls_init (per its name) used per-thread
storage, hence the bug.
6 years ago
David Wilson 79fd35092b docs: more links 6 years ago
David Wilson fdac4ecce8 setns: typos 6 years ago
dw 617f84432d
Merge pull request #233 from dw/dmw
Dmw
6 years ago
David Wilson 65e6a44fe7 docs: add links. 6 years ago
David Wilson e93ac2f3a7 debug: implement some basic helpers to debugger. 6 years ago
David Wilson baa4e75526 tests: tidy up thread_pileup for use as a toy benchmark. 6 years ago
David Wilson 90f7b4baea ansible: stub plugin documentation. 6 years ago
David Wilson c85a5b6446 ansible: make call timing more readable 6 years ago
David Wilson 29f6c46e97 docs: add file transfer safety section. 6 years ago
David Wilson bba2a42e44 ansible: add mitogen_sudo method, split out connection subclasses.
Slowly moving towards real implementations in those files.
6 years ago
David Wilson 0a9126c510 ansible: connection plugins missing from previous commit. 6 years ago
David Wilson b61c291faf examples: import mitogen-fuse.py. 6 years ago
dw 0d9d3cfe7b
Merge pull request #232 from dw/dmw
Better error messages, support username in setns
6 years ago
David Wilson 7c5bbc5168 setns: support changing user.
To match existing third party plugin.
6 years ago
David Wilson 947d35649c parent: note exception machine's hostname.
For dumb situations where user (i.e. me) is trying to fix a problem in
the wrong place.
6 years ago
dw b99b4eb048
Merge pull request #231 from dw/dmw
Many file transfer improvements, docs improvements.
6 years ago
David Wilson 003f30b5a9 issue #226: test fixes. 6 years ago
David Wilson 6edb3f165d ansible: avoid a race during shutdown. 6 years ago
David Wilson 780b63520f issue #226: don't attempt to fchmod() a pathname 6 years ago
David Wilson 58d8f60f57 docs: better connection type docs 6 years ago
David Wilson 219a202a82 issue #226: ansible: file transfer improvements
* put_data() supports setting mode and times.
* put_file() refuses to copy non-regular files (sockets, FIFOs).
* put_file() saves one RTT for <32KiB files by using put_data() and
  embedding file content in argument list.
* FileService returns dict with size/mode/owner/group/mtime/atime.
* FileService refuses to copy non-regular files.
* transfer_file() preserves file mode.
* transfer_file() preserves atime/mtime.
* transfer_file() optionally preserves ownership.
* transfer_file() optionally calls fsync().
* transfer_file() uses unique temporary file name to avoid conflicting
  with parallel transfers.
* transfer_file() ensures temporary file is deleted on any error.
* write_path() writes to a temporary file and deletes it on failure.
* write_path() uses unique temporary file name to avoid conflicting
  with parallel transfers.
* write_path() supports setting symbolic owner/group.
* write_path() optionally calls fsync().
* write_path() supports setting symbolic mode/mtime/atime.

Closes #226, #227, #229
6 years ago
dw 8beb6d339b
Merge pull request #225 from willmerae/setup-import-os
setup: Add missing os import
6 years ago
dw 956e39fd66
Merge pull request #228 from dw/dmw
setns method
6 years ago
David Wilson e8b4c4e683 issue #223: implement setns connection type
machinectl does not support any sensible form of pipe to the child
process, so it is necessary to bypass it when talking to a systemd
container (see systemd/systemd#8850).

This can also form the basis for issue #223, where the post-fork
namespace switching dance required to connect to the Pythonless
container will be the same.
6 years ago
Alex Willmer fbcb789f3f setup: Add missing os import 6 years ago
David Wilson b5be0fd65b ansible: log _get_file() timings. 6 years ago
David Wilson 95039eea11 ansible: make key_from_kwargs() 10x faster
It was half the cost of the service call
6 years ago
dw 0ee4ddcec1
Merge pull request #224 from dw/dmw
docs: links to Ansible docs
6 years ago
David Wilson 79c2d6c289 docs: links to Ansible docs 6 years ago
dw ae7ad88c93
Merge pull request #222 from dw/dmw
FreeBSD Jail support
6 years ago
David Wilson 098995539d ansible: implement FreeBSD jail support. 6 years ago
David Wilson 3196b6e7f7 Add FreeBSD jail support. 6 years ago
dw be7db7918f
Merge pull request #221 from dw/dmw
docs: typo
6 years ago
David Wilson d8e71799e7 docs: typo 6 years ago
dw 475b160fd7
Merge pull request #220 from dw/dmw
Docker fixes, logging improvements, LXC support
6 years ago
David Wilson b1563cd8c1 ansible: hijack lxd connections too. 6 years ago
David Wilson 131bc768c7 ansible: implement LXC support. 6 years ago
David Wilson b3d352c601 Add lxc container support. 6 years ago
David Wilson 1be03eb458 parent: change create_child interface.
To allow for additional arguments.
6 years ago
David Wilson 1fc7df5be5 Move canonical library version to __init__.py. 6 years ago
David Wilson 6fb3a76e68 master: annotate LogForwarder messages.
mitogen/master.py:
    Annotate forwarded log entries with their original source, logger
    name, and message.

ansible:
    mark stderr in red with -vvv

    Tempting to make this appaer 100% of the time, but some crappy
    bashrcs may cause lots of junk to be printed.
6 years ago
David Wilson 9d0949eb99 docker: fixes & add username parameter. 6 years ago
David Wilson 823dea4bd0 docs: link ChangeLog. 6 years ago
dw 09473da3e0
Merge pull request #219 from dw/dmw
Doc updates, connection delegation v1.
6 years ago
David Wilson 4893889a88 ansible: remove vestiges of old/wrong sudo_exe source. 6 years ago
David Wilson 02ce332b26 docs: show become_user example for connection delegation. 6 years ago
David Wilson 39f5aa76ae docs: add initial ChangeLog. 6 years ago