Comments (12)
@dw Thanks it's working fine and here are some results that might be of your interest:
With Mitogen
TASK [Gathering Facts] ***************************************************************************************************************************************
12:51:45 I mitogen.ctx.ssh.common.example.com.sudo.root: stdout: exc: 'DistributionFiles' object has no attribute 'parse_distribution_file_Archlinux'
ansible-playbook -i common.example.com, common.yml 8.59s user 2.84s system 13% cpu 1:22.70 total
It stuck at gathering facts for few seconds and then shows message and after that work fine, can you please work on this to improve a bit
Without mitogen
ansible-playbook -i common.example.com, common.yml 28.44s user 7.70s system 10% cpu 5:48.91 total```
from mitogen.
@dw I second @MartinNowak. It didn't install properly
from mitogen.
I've put it on PyPI as a one-off for testing. The problem with it being on PyPI is that it tends to generate tons of bug reports from people who think the software is ready when it is not (I've seen this before :) ).
from mitogen.
Aah, I see I didn't read the bug report correctly -- this isn't about PyPI, it was about setup.py :) Well that is fixed now too. Sorry!
from mitogen.
Thanks for trying it out, and these results already look good! Can you tell me please,
- how much latency exists between the host machine and the target? (Just ping it to find out)
- what is the OS of the target machine
- what version of Ansible are you using (I want to fix that ugly exception text!)
- how many steps were executed/skipped/etc? (Final line of output from Ansible)
Most likely the reason for stalling during gather_facts is because the link is quite high latency, and that is a bug with the current importer, however it could also be some other issue.
from mitogen.
Please also re-install the extension, I fixed a nasty bug where it leaves temporary directories everywhere in /tmp on the target machine :/
from mitogen.
@dw Thanks again!
- how much latency exists between the host machine and the target? (Just ping it to find out)
PING common.example.com (52.10.90.15): 56 data bytes
64 bytes from 52.20.90.15: icmp_seq=0 ttl=41 time=362.409 ms
64 bytes from 52.10.90.15: icmp_seq=1 ttl=41 time=384.681 ms
64 bytes from 52.10.90.15: icmp_seq=2 ttl=41 time=302.482 ms
64 bytes from 52.10.90.15: icmp_seq=3 ttl=41 time=322.624 ms
64 bytes from 52.10.90.15: icmp_seq=4 ttl=41 time=340.901 ms
64 bytes from 52.10.90.15: icmp_seq=5 ttl=41 time=259.983 ms
- what is the OS of the target machine
sh Ubuntu 14.04.5 LTS
- what version of Ansible are you using (I want to fix that ugly exception text!)
ansible 2.4.3.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/Users/arbab/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Library/Python/2.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.10 (default, Jul 15 2017, 17:16:57) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]
- how many steps were executed/skipped/etc? (Final line of output from Ansible)
common.example.com : ok=37 changed=1 unreachable=0 failed=0
I have re-install the extension using:
pip install -U git+https://github.com/dw/mitogen.git
Is it OK or I need to uninstall and install again?
from mitogen.
Nope, the command you used is fine. pip install -U forces 'upgrade', which means de/reinstall
from mitogen.
@dw can you please explain bit about this message:
12:51:45 I mitogen.ctx.ssh.common.example.com.sudo.root: stdout: exc: 'DistributionFiles' object has no attribute 'parse_distribution_file_Archlinux'
Thanks
from mitogen.
It is a bug in the setup module that previously went unreported by Ansible, because the setup module continued to exit successfully, and stdout output was otherwise discarded by Ansible.
Mitogen logs stdout output by default, so there are probably many more cases of buggy modules logging junk to the stdout. Therefore I will need to handle this somehow, probably by hiding stdio output except when "ansible-playbook -v" is used, or similar
from mitogen.
@dw mitogen
is production ready? I have fleet of Ubuntu servers ~100 that we are managing through ansible. Can I use it in production. Please recommend. Thanks
from mitogen.
@arbabnazar I would be extremely careful about deploying it for the time being, without thoroughly testing every playbook you have in a staging environment beforehand, with the same variables as would be used in production. Ansible simply has too many moving parts to be sure I haven't missed anything. My big worries are around options like delegate_to, and some internals that are overridden that accept a username that does not appear to be needed any more.
The result is that it's possible that some commands may run as the wrong user or on the wrong host, which could be disastrous This code is less than a week old. It's worth remembering that just 3 hours ago, it was spamming temp directories all over the target machine!
Note that I am available for consulting work, and if this would be of significant benefit to you in production, feel free to drop me an e-mail on [email protected] to discuss. Otherwise, please just wait a few months, the 'experimental' label will eventually be dropped :)
from mitogen.
Related Issues (20)
- Python 3.12 support HOT 25
- Mitogen broken after ansible security patch for "unsafe variables" HOT 16
- Error when trying to unpickle data (cannot unpickle 'ansible.utils.unsafe_proxy'/'AnsibleUnsafeText') HOT 5
- tox.ini: add-apt-repository requires software-properties-common, apt update is unnecessary HOT 1
- ansible.legecy.dnf leave rpmdb locks open HOT 2
- bug mitogen version 0.3.4 with running ansible 2.15 or 2.16 HOT 1
- The attribute 'remote_user' of the object 'connection._play_context' contains the variable name instead of its value. HOT 2
- wait_for_connection times out when using Ansible with mitogen on standard Rocky 8.9 AWS images
- mitogen.utils.cast() can silently fail to cast string subtypes (e.g. AnsibleUnsafeText)
- Test files, documentation source and others missing from source packages
- tests.ansible.tests.MockLinuxPolicyTest is always skipped
- Ansible 9 (ansible-core 2.16) support HOT 1
- DeprecationWarning: 'pkgutil.find_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
- Tests pass, but it takes sereral manual retries HOT 1
- Tests are slow to run, 15-20 minutes for individual jobs, 40-60 minutes overall
- Play fails if temp directory is deleted mid-play HOT 7
- EpollPoller registers with mask EPOLLIN, but filters as if also expecting EPOLLHUP
- mitogen.core.Broker ignores poller_class argument
- Hosts added by `add_host` module don't respect `ansible_host_key_checking` variable HOT 5
- Test suite plays with `hosts: localhost` are not run HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mitogen.