Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to connect to SuSE Enterprise 11 machines #576

Closed
dw opened this Issue Apr 3, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@dw
Copy link
Owner

commented Apr 3, 2019

Found on Reddit:

[WARNING]: 
[mux  9060] 18:45:22.005307 W mitogen: mitogen.service.Pool(0x7efeb0a6c450, size=32, th='mitogen.service.Pool.7efeb0a6c450.worker-0'): call error: Message(0, 1, 0, 110, 1000, "\x80\x02X'\x00\x00\x00ansible_mitogen.services.ContextServiceq\x01X\x03"..643): exceptions.TypeError: _connect() keywords must be strings
  File "<stdin>", line 3107, in _dispatch_one
  File "master:/home/dmw/src/mitogen/ansible_mitogen/target.py", line 380, in init_child
    _fork_parent = econtext.router.fork()
  File "master:/home/dmw/src/mitogen/mitogen/parent.py", line 2178, in fork
    return self.connect(u'fork', **kwargs)
  File "master:/home/dmw/src/mitogen/mitogen/parent.py", line 2147, in connect
    **mitogen.core.Kwargs(kwargs))


[WARNING]: 
[task 9094] 18:45:22.006520 W ansible_mitogen.connection: Connection failed; stack configuration was:
({u'kwargs': {u'check_host_keys': u'ignore',
              u'compression': True,
              u'connect_timeout': 10,
              u'hostname': u'sles11',
              u'identities_only': False,
              u'identity_file': None,
              u'password': [secret],
              u'port': None,
              u'python_path': [u'/usr/bin/python'],
              u'ssh_args': [u'-o',
                            u'UserKnownHostsFile=/dev/null',
                            u'-o',
                            u'ForwardAgent=yes',
                            u'-o',
                            u'ControlMaster=auto',
                            u'-o',
                            u'ControlPersist=60s'],
              u'ssh_debug_level': None,
              u'ssh_path': u'ssh',
              u'username': u'dmw'},
  u'method': u'ssh'},)

Root cause: version check in mitogen.core.Kwargs assumed unicode keyword args were available since Python 2.6.0, but they're only available since 2.6.5.

@dw dw changed the title doesnt work with SLES 11 Fails to connect to SuSE Enterprise 11 machines Apr 3, 2019

@dw dw transferred this issue from another repository Apr 3, 2019

dw added a commit that referenced this issue Apr 3, 2019

issue #576: fix Kwargs minor version check.
Unicode kwargs were introduced in Python 2.6.5, not 2.6.0.

dw added a commit that referenced this issue Apr 3, 2019

Merge remote-tracking branch 'origin/issue576'
* origin/issue576:
  issue #576: fix Kwargs minor version check.

@dw dw closed this Apr 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.