Commit Graph

48238 Commits (98eb810f7d3ccc6eb2a007e915ecdb88d9f2b218)
 

Author SHA1 Message Date
Sam Doran 98eb810f7d
[stable-2.9] Remove exit code from traps in tests (#72969)
Having the trap exit with a specific code will override
the exit code that caused the trap to run, which could
mask errors
(cherry picked from commit 5157a92139)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
Matt Martz ead63f2021
[stable-2.9] Fix reset_connection paramiko, winrm, psrp (#72688) (#72926)
* Ensure we only reset the connection when one has been previously established. Fixes #65812

* Ensure psrp doesn't trace

* winrm too

(cherry picked from commit a3b6485073)

Co-authored-by: Matt Martz <matt@sivel.net>
5 years ago
Matt Martz c32371db56
[stable-2.9] Fix async interpreter parsing (#72636) (#72924)
* Fix async interpreter parsing. Fixes #70690
* Target localhost instead of remote host
* Don't forget inventory
* Address shellcheck issue
(cherry picked from commit 83764ad)

Co-authored-by: Matt Martz <matt@sivel.net>
5 years ago
Matt Clay cdcd2ed49a
Support venv in ansible-test virtualenv scripts (#73164)
* ansible-test - prefer venv over virtualenv on Python 3 (#73000)

Also pin virtualenv to 16.7.10 for older Mac OS X systems. This was the version being installed
anway with the previous constraint (<20).

On systems with Python 3, now prefer venv over virtualenv. Test to see if venv is functional since
some systems have a non-functional venv installation (such as Debian).

(cherry picked from commit 850a77f639)
(cherry picked from commit a48b3d2089)

* Make the new ansible-test venv behavior opt-in

Co-authored-by: Sam Doooran <sdoran@redhat.com>
5 years ago
Felix Fontein 0f65b901f7
docker_image: always push, also when tagging is not necessary
Backport of 117f132213 (#73066)
5 years ago
Sam Doran 95f65b9249
[stable-2.9] Fix string/bytestring comparsion in m_u.basic (#70439) (#73130)
Change:
- module_utils.basic.is_special_selinux_path() used a string ==
  bytestring comparison which returned False and made Ansible think that
  certain filesystems aren't, in fact, special-cased, when they should
  be. Ensure both sides of the == are bytestrings.

Test Plan:
- Added `copy` integration tests for this case.

Tickets:
- Fixes #70244

Signed-off-by: Rick Elrod <rick@elrod.me>.
(cherry picked from commit 688cd8657b)

Co-authored-by: Rick Elrod <rick@elrod.me>
5 years ago
Sam Doran b1f732d9f1 [stable-2.9] Update azure pipelines container
(cherry picked from commit 0eb1e22cd9)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
Sam Doooran bb7c0326d8 [stable-2.9] Constrain pexpect and ptyprocess (#73109)
The recent update of ptyprocess to 0.7.0 is incompatible with Python 2.6 and
is causing test failures.

* Add setup_pexpect role to expect test
(cherry picked from commit 003a9e890d)

Co-authored-by: Sam Doooran <sdoran@redhat.com>
5 years ago
Matt Clay 17effffad6
[stable-2.9] Add coverage exporting to ansible-test (#72982)
* Add `--venv-system-site-packages` to ansible-test.

(cherry picked from commit 934d6b235b)

Backport of https://github.com/ansible/ansible/pull/65615

* [stable-2.9] Add coverage exporting to ansible-test

A new `--export` option for `ansible-test coverage combine` allows multi-step aggregation of code coverage for CI pipelines..

(cherry picked from commit fa2be89cd4)

Backport of https://github.com/ansible/ansible/pull/72563
5 years ago
Matt Clay ee181545da [stable-2.9] Update Azure Pipelines scripts and config. (#72986)
* Increase fetch depth to reduce the frequency of full test runs for out-of-date PRs.
* Update scripts to match those which will be used in collections.
(cherry picked from commit 3274e02fd8)

Co-authored-by: Matt Clay <mclay@redhat.com>
5 years ago
Rick Elrod 8815b638ed Update Ansible release version to v2.9.16.post0. 5 years ago
Rick Elrod 10cb8d8788 New release v2.9.16 5 years ago
Rick Elrod 0b13ccacb6 Update Ansible release version to v2.9.16rc1.post0. 5 years ago
Rick Elrod f9b89d9627 New release v2.9.16rc1 5 years ago
Brian Coca c4844e992c
make collection callbacks follow normal flow (#59932) (#72228)
* make collection callbacks follow normal flow (#59932)

make collections whitelist follow normal flow

* fixes missing set_options call and adhoc and stdout processing rules
* avoid dupes
* fixed to handle redirects
* also updated tests with new and more accurate skip message
* fix callback tests for envs with cowsay installed
* lots MOAR comments on why the code is as it is, some todos to refactor in future

Co-authored-by: Matt Davis <nitzmahone@users.noreply.github.com>
(cherry picked from commit 5ec53f9db8)

* fixed bad merge

* hack in redirected names

* ensure we run additional calblacks
5 years ago
Egor Margineanu c2ca8317b7
Fix AIX networks facts when nestat is either missing or has incorrect permissions (#72516) (#72714)
* Added check for none on netstat_path variable

* Added changelog

(cherry picked from commit e879f12fb9)
5 years ago
Brian Coca ce52e6738c
remove redundant remote_user for local setting (#72508)
* remove redundant remote_user for local setting

  local action plugin already does and this also should fix
  fork/thread issue by removing use of pwd library

  fixes #59642

(cherry picked from commit 488b9d6c35)

* ensure local exposes correct user (#72543)

* ensure local exposes correct user

  avoid corner case in which delegation relied on
  playcontext fallback which was removed

  fixes #72541

(cherry picked from commit aa4d53ccdf)
5 years ago
Jordan Borean ff364b6541
Disable win_rds* tests in CI (#72890) 5 years ago
Matt Clay 7c8b05b221
[stable-2.9] Remove shippable.yml. (#72883)
(cherry picked from commit 711064a073)

Co-authored-by: Matt Clay <matt@mystile.com>
5 years ago
Nilashish Chakraborty ceea695163
[stable-2.9] Escalate priv before setting terminal (#72673)
* Try to escalate before on_open_shell to work around ios (#63571)

(cherry picked from commit 0cd2ad5880)

Add changelog

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
Co-authored-by: Nathaniel Case <ncase@redhat.com>
5 years ago
Bill Peck 1706b71141
Fix virt module to support list_vms with a status of paused (#72056)
The docs state to use paused but the check_choice module only
accepts pause which doesn't list paused vm's.
5 years ago
Rick Elrod 8eaa7423d4
[2.9] [cloud_init_data_facts tests] fix for centos8 (#72886)
Change:
- `udev` is provided by `systemd-udev`, which our `state=present` check
  doesn't match. For now, work around this so we don't end up trying to
  upgrade all of systemd.
- In the future, we should discuss if the `yum` module does the right
  thing here.

Test Plan:
- Locally in docker
- CI

Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
ShwetaliBerad 48d61848e9
cherry pick for issue ansible-collections/azure#161 from ansible-collections/azure for v2.9 (#71756) 5 years ago
Sam Doran 10cc55c908
[stable-2.9] systemd - fix issue with capbpf and newer kernel (#72337) (#72348)
A bug existed in systemd 245 that did not properly handle unknown kernel
capabilities gracefully. This resulted in incomplete output when querying
for the service status. It is possible to get service status by other means.
This PR works around this issue by getting service status using other commands
in the event of a failure due to this bug.
(cherry picked from commit db84e2c989)

Co-authored-by: Sam Doran <sdoran@redhat.com>

* [stable-2.9] systemd - use list-unit-files rather than list-units (#72363)

list-unit-files will return all files on the system. list-units omits those
that are disabled.

Co-authored-by: Ken Dreyer <ktdreyer@ktdreyer.com>
(cherry picked from commit d6115887fa)

* systemd - account for templated unit files when searching for service (#72702)

Related to issue #71528 and PR #72337

Co-authored-by: Martin Polden <mpolden@mpolden.no>
(cherry picked from commit a788ea0132)
5 years ago
Sam Doran cc47d9cb41
[stable-2.9] wait_for - ignore psutil related errors (#72401) (#72407)
When enumerating connections with psutil, catch and ignore errors to avoid returning a stack trace.

Co-authored-by:  Matt Martz <matt@sivel.net>
(cherry picked from commit fb09fd2a23)
5 years ago
Sam Doran d12e82b94c
[stable-2.9] ansible-test - skip installing PowerShell sanity test reqs if they are already installed (#72423) (#72425)
(cherry picked from commit 809d5fc398)

Co-authored-by: Jordan Borean <jborean93@gmail.com>
5 years ago
Amin Vakil 67108d8679
[stable-2.9] iptables: Reorder comment postition (#71496) (#72551) 5 years ago
Benoît Knecht 23e6e7db85
lvol: Fix idempotency when size uses %VG or %PVS (#72569)
Change the behavior when using %VG or %PVS to make the `size_requested` an even
modulus of the VG's physical extents by rounding down.

This makes the usage of %VG or %PVS idempotent when the calculated
`size_requested` does not end on a physical extent boundary.

Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: JuddTracy-DAS <38507478+JuddTracy-DAS@users.noreply.github.com>
5 years ago
Jordan Borean 1e228e157a
ansible-galaxy - source deps from all servers and not just parent - 2.9 (#72683)
(cherry picked from commit fb092a82a1)

* Slight tweak to galaxy source selection (#72685)
(cherry picked from commit 18e5628b19)
5 years ago
Mark Chappell 2cd72a98de
Backport amazon.aws/211 - use fail_json_aws instead of fail_json (already trying to pass exception) (#72772) 5 years ago
Felix Fontein aa471096de
[2.9] Fix missing ansible.builtin FQCNs in hardcoded action names (#72458)
* Fix missing ansible.builtin FQCNs in hardcoded action names (#71824)

* Make sure hard-coded action names also check for FQCN.
* Use _add_internal_fqcn() to avoid hardcoded lists and typoes.

(cherry picked from commit da60525610)

ci_complete

* Replace some more FQCNs.

(cherry picked from commit 72302dd611)

* Fix another case which was already fixed in stable-2.10.
5 years ago
Felix Fontein f67b4e7695
ansible-doc: export has_action when --json is used (#72359) (#72416)
* ansible-doc: export has_action when --json is used.
* Remove docuri and now_data, which were not used resp. ignored in format_plugin_doc and the functions it calls anyway.
* Add function _combine_plugin_doc.

(cherry picked from commit 4fb336cef1)
5 years ago
Sam Doran 74ec5ab6b5
[stable-2.9] pause - do not hang if run in the background (#72065) (#72606)
* Consolidate logic for determining whether or not session is interactive
  into a single function, is_interactive()
* Increase test coverage

I wasn't able to find a good way of simulating running a backgrounded test with CI since the
whole test is essentially run not in a TTY, which is similar enough to cause the new is_interactive()
function to always return false.
(cherry picked from commit 4b8cb6582b)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
Sam Doran ddf44ddd46
[stable-2.9] AnsibleModule.set_mode_if_different: handle symlink is in a sticky directory (#45198) (#72862)
* file: add symlink is in a sticky directory tests
* file: handle symlink in a sticky directory

The builtins import was removed since it was unused, but it is now needed.
(cherry picked from commit b464d18fd1)

Co-authored-by: Pilou <pierre-louis.bonicoli@libregerbil.fr>
Co-Authored-By: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
5 years ago
Felix Fontein 9ba34dec35
ansible-test sanity: fix UnicodeDecodeError for `--python 2.7 --docker` (#72623) (#72866)
* Store target paths as unicode.

* Add changelog fragment.

(cherry picked from commit f94ba68d8f)
5 years ago
Nathaniel Case a4ba6ace01
Update ssh connection play_context alongside network_cli's (#72185)
Backport of https://github.com/ansible-collections/ansible.netcommon/pull/135

* Fix iosxr tests
5 years ago
Felix Fontein 903f2e267b Improve ansible-test classifications for collections (#72353)
(cherry picked from commit 64a809d2b6)
5 years ago
Matt Clay 2c66c6297c [stable-2.9] Use AZP config for integration-aliases test.
No changelog entry since this test is limited to the ansible/ansible repo.

Backport of https://github.com/ansible/ansible/pull/72842
5 years ago
Matt Clay 0b54f3e1ba [stable-2.9] Fix Azure Pipelines change detection. (#72824)
(cherry picked from commit 08842cd6bb)

Co-authored-by: Matt Clay <mclay@redhat.com>
5 years ago
Rick Elrod 82ba44871a
fix resource name in aws_codepipeline too (#72825)
Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Matt Clay 87662c5d59 Fix resource name. 5 years ago
Matt Clay fa3be76ff3 [stable-2.9] Fix CI schedule. 5 years ago
Matt Clay f328c0e259 Fix resource name length. 5 years ago
Matt Davis e10c0d11ff
update build badge for AZP (#72807) (#72811)
(cherry picked from commit d567a553a9)
5 years ago
Matt Clay 23cbd2a8f1 [stable-2.9] Azure Pipelines configuration. 5 years ago
Rick Elrod d92820c2d5
[centos6] update container for EOL (#72797)
* [centos6] update container for EOL

Change:
- Reference:
  https://lists.centos.org/pipermail/centos-devel/2020-December/056208.html
- Bump centos6 container to 1.25.0

Test Plan:
- ci_complete

Signed-off-by: Rick Elrod <rick@elrod.me>

* update EPEL 6 too which is now archived

Signed-off-by: Rick Elrod <rick@elrod.me>

* bump to 1.26.0

Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Sam Doran 0515895aa7
[stable-2.9] Pull images from Quay to avoid Docker Hub limits (#72698)
* Pull image from Quay to avoid Dockerhub limits

CI tests are failing in certain situations due to the new Docker Hub limits on anonymous pulls. Switch
to pulling an equivalent image from Quay.io.

* Use correct layer SHAs

* Use an image with enough older shas to do the test correctly

* Use images we control on Quay for testing

* Use correct SHA for new images

* Use images from a single repo in Quay but with tags

* Use correct nginx image

* Use correct tags in docker-registry test

* Fix incorrect image name in debug message

* Use our busybox image

* Little more alpine image cleanup
5 years ago
Jordan Borean c90eea843b
Add RHEL 7.9 (#72558) - 2.9 (#72567)
* Add RHEL 7.9 - ci_complete (#72558)

(cherry picked from commit d451433e5d)

* Added changelog for RHEL 7.9 (#72572)

(cherry picked from commit bdd0c48837)
5 years ago
Rick Elrod a6f5060464
[zypper_repository test] Use repo that doesn't 404 (#72780)
Change:
- The repo we were testing with no longer seems to exist. Point to one
  that does.

Test Plan:
- local test in docker
- CI

Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Sam Doran f6635e3804 [stable-2.9] - ansible-test - add cryptography constraint for cffi (#72761)
The recently released version of cffi fails to install on systems with an older version of gcc. In
our case, this in the CentOS 6 test image. There is a fix but it has not yet been released.

https://foss.heptapod.net/pypy/cffi/-/issues/480
5 years ago