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

Change to prompting from workers in ansible-core 2.15 affecting libssh connection plugin #522

Open
sivel opened this issue Mar 2, 2023 · 0 comments

Comments

@sivel
Copy link

sivel commented Mar 2, 2023

SUMMARY

In ansible/ansible#79886 we have begun the work to no longer allow workers to inherit stdio file descriptors.

This specifically impacts the libssh connection plugin as it uses stdin to prompt for accepting host keys.

Accessing self._new_stdin from a connection plugin will raise a deprecation warning stating that it will be removed in ansible-core 2.19.

See this change to the paramiko connection plugin for details of how to prompt in 2.15+: ansible/ansible@b981a9d#diff-625ed4f344522e63d018922b9869c9890ea0ef8e331005b34005507236551d54

Since this collection supports more than just the latest version, it may require 2 implementations of MyAddPolicy guarded by version comparison.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

plugins/connection/libssh.py

ANSIBLE VERSION

COLLECTION VERSION

CONFIGURATION

OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant