ansible/test
Rick Elrod 7d64aebdd3 [become] Fix solaris permissions regression
Change:
- Regression introduced in #70785
- When macOS chmod ACL syntax is used, Solaris-derived chmods return
  with a status of 5. This is also used for our sshpass handling,
  because sshpass will return 5 on auth failure. This means on Solaris,
  we incorrectly assume auth failure when we reach this branch of logic
  and try to run chmod with macOS syntax.
- We now wrap this specific use of chmod in an exception handler that
  looks for AnsibleAuthenticationFailure and skips over it. This adds
  another authentication attempt (something we normally avoid to prevent
  account lockout), but seems better than the regression of not allowing
  other fallbacks to be used.
- Without this patch, if setfacl fails on Solaris (and sshpass is used),
  we do not try common_remote_group or world-readable tmpdir fallbacks.

Test Plan:
- New unit

Signed-off-by: Rick Elrod <rick@elrod.me>
2021-04-19 20:28:57 -05:00
..
ansible_test
integration Deprecate Py2.6 support for target nodes (#74165) 2021-04-16 11:42:29 -05:00
lib/ansible_test Split out module/module_utils unit test execution. 2021-04-19 15:44:58 -07:00
sanity [conditional] Remove support for bare variables (#74208) 2021-04-13 11:12:10 -04:00
support Overhaul ansible-test container management. 2021-04-12 12:40:36 -07:00
units [become] Fix solaris permissions regression 2021-04-19 20:28:57 -05:00
utils/shippable module compat for py3.8+ controller (#73423) 2021-02-10 21:32:59 -08:00