ibm_zos_core icon indicating copy to clipboard operation
ibm_zos_core copied to clipboard

[Bug] [zos_copy] [zos_fetch] ansible-core:2.17 w verbosity causes module failures -- Quick-Fix: artificially increase verbosity within module code

Open ketankelkar opened this issue 7 months ago • 0 comments

This issue is a quick fix for the following:

  • #1569

See the recreate and the affected modules in the issue linked above.

This task entails, for each module affected:

  • Manually testing/evaluating the "quick" fix to ensure no breakage at any level of verbosity.
    • ie: -v, -vv, -vvv, -vvvv as well as no verbosity.
  • Running existing regression tests
  • Adding new regression tests if possible/applicable

From the above linked issue:

Temporary Fix:

In the action plugin for zos_copy, there is a section which ignores stderr if the verbosity level is high enough. https://github.com/ansible-collections/ibm_zos_core/blob/4b9a7e9846f9c1f81898e21f7a33a3e5c2948321/plugins/action/zos_copy.py#L365

As a temporary fix, the limit for the number of verbosity may be decreased (probably to 0) to have the stderr ignored for all levels of verbosity.

It is unclear at this time what effects such a temporary fix would have in terms of masking other errors reported in stderr.

Note- The snippet identified above may not be a "quick fix" for all affected modules. We only tested the code change on a surface level.

ketankelkar avatar Jul 09 '24 20:07 ketankelkar