ansible.posix icon indicating copy to clipboard operation
ansible.posix copied to clipboard

_new_stdin is deprecated, needs to be removed from synchronize module

Open jnm27 opened this issue 2 years ago • 8 comments

SUMMARY

Getting this deprecation warning in the log; pretty sure it's coming from the synchronize module.

[DEPRECATION WARNING]: The connection's stdin object is deprecated. Call display.prompt_until(msg) instead. This feature will be removed in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ISSUE TYPE
  • Bug Report
COMPONENT NAME

synchronize.py

ANSIBLE VERSION
ansible [core 2.15.0]
  python version = 3.11.2 (main, Feb 17 2023, 09:28:16) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/usr/bin/python3.11)
  jinja version = 3.1.2
COLLECTION VERSION
ansible.posix 1.5.4
CONFIGURATION

OS / ENVIRONMENT
STEPS TO REPRODUCE

EXPECTED RESULTS

No deprecation warnings

ACTUAL RESULTS

Deprecation warnings


jnm27 avatar May 26 '23 04:05 jnm27

Confirm it comes from the synchronize module (got it with command ansible regulateur -m synchronize -a "src=/home/edavid/workshop/liquidprompt/ dest=/tmp/liquidprompt/" )

I get the deprecation warning on a ssh connexion, not for localhost.

erwdavid avatar May 30 '23 07:05 erwdavid

I also confirm this warning on ansible core 2.15.1 and ansible.posix 1.5.4.

heitorPB avatar Jul 07 '23 18:07 heitorPB

@maxamillion Can you take a look at the fix in https://github.com/ansible-collections/ansible.posix/pull/421? Not sure why I was getting different errors in CI, if it's just flaky or related in some way to my patch. I'll rerun them again.

s-hertel avatar Jul 13 '23 13:07 s-hertel

I am also seeing this on ansible core 2.15.2 and ansible.posix 1.5.4

[DEPRECATION WARNING]: DEFAULT_GATHER_TIMEOUT option, the module_defaults keyword is a more generic version and can apply to all calls to the M(ansible.builtin.gather_facts) or M(ansible.builtin.setup) actions,
use module_defaults instead. This feature will be removed from ansible-core in version 2.18. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

donnieelmore avatar Aug 04 '23 15:08 donnieelmore

Still present here in ansible-core 2.15.3 (ansible.posix 1.5.4): [DEPRECATION WARNING]: The connection's stdin object is deprecated. Call display.prompt_until(msg) instead. This feature will be removed in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

valli-org avatar Sep 17 '23 07:09 valli-org

Apparently https://github.com/ansible-collections/ansible.posix/pull/421 fixes this. Who can review it to get merged?

heitorPB avatar Sep 18 '23 12:09 heitorPB

Present in 2.15.5

[DEPRECATION WARNING]: The connection's stdin object is deprecated. Call display.prompt_until(msg) instead. This feature will be removed in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

fredbcode avatar Oct 30 '23 15:10 fredbcode

I saw a merged fix, there is a plan to release soon ?

fredbcode avatar Jun 07 '24 08:06 fredbcode