summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* EOL 2.11 docs (#79355)stable-2.11Sandra McCann2022-11-102-2/+2
|
* Remove scheduled CI runs.Matt Clay2022-11-071-9/+0
| | | | The ansible-core 2.11 release has reached EOL with the release of ansible-core 2.14.
* [2.11] Log `runme.sh` execution in integration tests (#79285)Sviatoslav Sydorenko2022-11-036-9/+6
| | | | | | | | | | | | | | | | * Log `runme.sh` execution in integration tests (#79263) * Log `runme.sh` execution in integration tests This patch adds `set -x` where it's missing in the integration tests. It also enables `pipefail` in `runme.sh` scripts that use pipes. * Add a change note for PR #79263 (cherry picked from commit 6674c43edd203d1241507c4d857f555a7c844c18) * Delete a bad PR #79263 change note (cherry picked from commit 9cfb3f73e8d7f910e226de3aebe6f9b9b18327ec)
* [stable-2.11] Restrict `wheel` below v0.38.0 under Pythons < 3.7 (#79187)Sviatoslav Sydorenko2022-10-244-0/+5
| | | | | | | | | | | | | | | | | * Restrict `wheel` below v0.38.0 under Pythons < 3.7 * Add a change note for PR #79187 * Update changelogs/fragments/79187--wheel-0.38.0.yml Co-authored-by: Matt Clay <matt@mystile.com> * Use constraints file when installing wheel. Co-authored-by: Matt Clay <matt@mystile.com>. (cherry picked from commit a76bbb18a5a80cda0d9683677aa8d5cd8a2e6093) Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
* [stable-2.11] Don't request repo updates when only testing modes (#78843) ↵Matt Martz2022-09-211-0/+5
| | | | | | | (#78852) (cherry picked from commit 2542048) Co-authored-by: Matt Martz <matt@sivel.net>
* [stable-2.11] Filter AWS test AMI selection on any Fedora-Cloud-Base image ↵Matt Martz2022-08-301-1/+1
| | | | | | | (#78669) (#78671) (cherry picked from commit 046c59d) Co-authored-by: Matt Martz <matt@sivel.net>
* Fail fast in stuck `ansible-galaxy-collection` (#78629)Sviatoslav Sydorenko2022-08-301-1/+12
| | | | | | | | | | | | This specific integration test gets stuck periodically causing the Galaxy jobs to be killed on timeout wasting an hour of runtime. The module that gets stuck waiting on Pulp is an in-test one, called `setup_collections`. When it works, the task is complete in around 70 seconds but when it doesn't, it just freezes the whole play. This patch attempts to make it fail faster by putting a reasonable timeout value of 2 minutes. (cherry picked from commit f1c56e988dbbb769b34a3c80baa40c916b4d0c88)
* Fix pytest collection during test_host partial run (#78596)Sviatoslav Sydorenko2022-08-301-0/+0
| | | | | | | | | | | | | Sometimes pytest errors out with an `ImportError` during its tests collection stage when a Python package/directory containing the test module does not have an `__init__.py` in it. This is being observed under Python 3.9 and higher. The patch provides a workaround for this problem but does not address the root cause which is currently unknown. Ref: https://github.com/ansible/ansible/pull/78585#issuecomment-1220885431 (cherry picked from commit beb70daf14bc14acad076b34dca39a3ca6b633bb)
* Skip paramiko test on failing platforms. (#78642)Matt Clay2022-08-252-0/+9
| | | | | The paramiko install fails due to the new bcrypt 4.0.0 release. The test is being skipped on the affected platforms since ansible-core 2.11 will reach end-of-life in November.
* [stable-2.11] Fix file integration test chattr/lsattr check. (#78614) (#78620)Matt Clay2022-08-221-0/+2
| | | | | | | On BusyBox systems such as Alpine, chattr on a tmpfs fails with a status of 0 and output only on stderr. This change updates the test to not assume output on stdout. (cherry picked from commit 2e536c0afb9008884a0f12e8e650541e0ead76c9)
* Fix version switcher for Japanese docs (#78545)Sandra McCann2022-08-192-2/+365
| | | | | | | | | * Fix version switcher for Japanese docs (#78432) (cherry picked from commit 660aceaa777b8847648908e8c978a0518f44cef4) * update version to match branch * fix merge change
* [2.11-only] Prepare Alpine signing keys for installs from edge (#78311)Sviatoslav Sydorenko2022-07-202-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a note on installing faketime on Alpine in CI (cherry picked from commit d7e3c765be89ae3d155c00198c12dedf14d65816) * Add note about libuser being unavailable @ Alpine * Prepare Alpine signing keys for installs from edge Before this patch, the Ansible Core CI Alpine image integrated into this branch only had old package signing keys pre-installed. On July 14, 2022, Apline has rotated their RSA keys to the new 4096-bit ones[1]. This resulted in older unprepared systems being unable to verify package downloads, causing the following in the logs: ERROR: http://dl-cdn.alpinelinux.org/alpine/edge/community: UNTRUSTED signature This patch updates the system-trusted keys by upgrading the `alpine-keys` package to the latest version. With the change, the old package installs succeed again. In particular, this concerns the `faketime` and `libuser` packages that are used in `group` and `setup_cron` integration tests. This change is only applied to ansible-core 2.11 since all the newer release streams have an updated version of the Alpine container that does not need this hack. [1]: https://www.alpinelinux.org/posts/Alpine-edge-signing-keys-rotated.html
* [stable-2.11] Update AZP test container to 3.0.0. (#78024)Matt Clay2022-06-091-1/+1
| | | | (cherry picked from commit 1321d6ecd5d34c9a90d526e4852bfc469bfae4a9)
* [stable-2.11] yum: fix parsing of check-update with subsequent empty lines ↵Martin Krizek2022-06-073-26/+34
| | | | | | | | | | | | | (#75452) Rather than adding further complexity to the regex, preprocess the output to remove any empty lines. Now the only purpose of the regex is to fix wrapped lines. Fixes #70949 (cherry picked from commit 51f2f1ac5ee1416f097587ff81b721b3ccc36971) Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
* Update Ansible release version to v2.11.12.post0. (#77880)jamesmarshall242022-05-231-1/+1
|
* New release v2.11.12 (#77862)v2.11.12jamesmarshall242022-05-234-4/+18
|
* Update Ansible release version to v2.11.12rc1.post0. (#77812)Dimitri Savineau2022-05-161-1/+1
|
* New release v2.11.12rc1 (#77811)v2.11.12rc1Dimitri Savineau2022-05-164-1/+38
|
* update version switcher to include 2.13 (#77786) (#77797)Sandra McCann2022-05-131-2/+2
| | | (cherry picked from commit f5642cea28299857fd11aa77307f7ee04ef1edb3)
* dont rely on path to set config defs for plugins (#77659) (#77696)Brian Coca2022-05-114-4/+21
| | | (cherry picked from commit a3cc6a581ef191faf1c9ec102d1c116c4c2a8778)
* Prevent losing unsafe from lookups (#77609) (#77652)Martin Krizek2022-05-094-3/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a bug which under certain conditions results in data returned from lookups not being marked as unsafe. Each time Templar.do_template is invoked a new AnsibleContext is created and stored effectively at two places: 1) as an instance variable in templar_obj.cur_context 2) as a local variable called new_context in do_template method of Templar Due to custom functionality in Ansible's Context that allows for nested templating it is possible that during resolving variable's value template/do_template method is called recursively again, again creating a new context. At that point the problem manifests itself because as mentioned in 1) above the context is overwriten on the templar object which means that any subsequent calls to _lookup will use the new context to mark it as unsafe which is now different to the local new_context which is used for testing for unsafe property. The solution to the problem appears to be to restore the original context inside do_template and also to eliminate the local variable new_context to prevent problems in the future. It appears that we don't have a better way of storing the context other than as some form of global variable and so this appears to be the "best" solution possible at this point. Hopefully data tagging will be the solution here. For more examples see unit and integration tests included in this patch. Fixes #77535 (cherry picked from commit 3980eb8c09d170a861351f8aff4a1aa1a8cbb626)
* Remove FreeBSD 11.4 from CI since it is EOL.Matt Clay2022-05-051-4/+0
| | | | Bootstrapping fails due to missing packages.
* Update Ansible release version to v2.11.11.post0. (#77632)Christian Adams2022-04-251-1/+1
|
* New release v2.11.11 (#77627)v2.11.11Christian Adams2022-04-254-4/+23
|
* ansible-test - Fix rstcheck compatibility issues.Matt Clay2022-04-196-3/+26
|
* Update Ansible release version to v2.11.11rc1.post0. (#77558)jamesmarshall242022-04-181-1/+1
|
* New release v2.11.11rc1 (#77542)v2.11.11rc1jamesmarshall242022-04-184-1/+38
|
* Pin antsibull to 0.42.0 (#77539) (#77540)Sandra McCann2022-04-141-2/+2
| | | (cherry picked from commit fbc75020508605d713355835e7cbbeda576379e4)
* SID - Use literal UPN value when attempting a user to SID lookup (#77334) ↵Jordan Borean2022-04-132-4/+2
| | | | | (#77347) (cherry picked from commit ff184b0815cdbf7dc222fd9d7b0cfaa93d5fe03c)
* winrm - ensure callers PATH for kinit is set (#77401) (#77402)Jordan Borean2022-04-133-3/+9
| | | | | | | | | * winrm - ensure callers PATH for kinit is set * Fix unit test expectations * Fix type annotation (cherry picked from commit 60b4200bc6fee69384da990bb7884f58577fc724)
* Backport #76801 (#77295)Tong He2022-04-131-4/+1
|
* Update Ansible release version to v2.11.10.post0. (#77379)jamesmarshall242022-03-281-1/+1
|
* New release v2.11.10 (#77373)v2.11.10jamesmarshall242022-03-284-4/+18
|
* Update Ansible release version to v2.11.10rc1.post0. (#77331)jamesmarshall242022-03-211-1/+1
|
* New release v2.11.10rc1 (#77328)v2.11.10rc1jamesmarshall242022-03-214-1/+52
|
* [2.11 backport] use same timeout for galaxy api interactions (#77088) (#77143)Elijah DeLee2022-03-153-6/+13
| | | | | | | | | | | | | | | | | | | * use same timeout for galaxy api interactions (#77088) Also, bump the default. A number of people have reported problems with this 20 second timeout for a couple of years on https://github.com/ansible/galaxy/issues/2302 It is mentioned in the issue that resolving dns can sometimes take up to 30 seconds, and that this timeout includes dns resolution. Includes a changelog message * fix type hint Co-authored-by: Matt Clay <matt@mystile.com> Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com> Co-authored-by: Matt Clay <matt@mystile.com>
* [2.11] Fix collection redirects for filter and test plugins (#77210) (#77228)Sloane Hertel2022-03-155-36/+101
| | | | | | | | | | | | | | * Fix collection redirects for filter and test plugins (#77210) * Fix collection redirects for jinja2 filters/tests * Handle recursive redirects Co-authored-by: Matt Martz <matt@sivel.net> (cherry picked from commit 8063643b4cec51a72377da5f3fa354d3ff9e737a) * The error message is only capitalized on 2.13. Make test more flexible. (cherry picked from commit 734777ef05b8c200f45336a8b9b41f9f9af597c1)
* [2.11] ansible-galaxy collection verify - display new files/dirs as ↵Sloane Hertel2022-03-153-1/+50
| | | | | | | | | | | modified content (#77129) * Fix 'ansible-galaxy collection verify' to report files/directories not listed in the FILES.json (cherry picked from commit a1d467dbb21e00cdb0ed38baf0e43e583185dc59) * changelog (cherry picked from commit 3d49d6f69ec1afa2234a21a1f9cd273d55cb6597)
* [stable-2.11] Use full python package for ansiballz cache filenames (#77090) ↵Matt Martz2022-03-155-1/+29
| | | | | | | | | | | | | | (#77126) * [stable-2.11] Use full python package for ansiballz cache filenames (#77090) * Use full python package for ansiballz cache filenames * Be a little more explicit about test goals (cherry picked from commit 8cbe143) Co-authored-by: Matt Martz <matt@sivel.net> * linting
* ansible-test - Fix cloud plugin traceback.Matt Clay2022-03-112-0/+5
|
* Update Ansible release version to v2.11.9.post0. (#77162)Christian Adams2022-03-011-1/+1
|
* [stable-2.11] Update setup_pexpect to prefer pip user installs.Matt Clay2022-02-281-0/+9
| | | | | | | This works around issues on RHEL 7.9 when an old version of pexpect is installed from an OS package. (cherry picked from commit 27fe26edbf57a39a11de7dea14dc60d4a6b1384e) Co-authored-by: Matt Clay <matt@mystile.com>
* New release v2.11.9 (#77157)v2.11.9Christian Adams2022-02-284-4/+18
|
* Update Ansible release version to v2.11.9rc1.post0. (#77130)Christian Adams2022-02-231-1/+1
|
* New release v2.11.9rc1 (#77123)v2.11.9rc1Christian Adams2022-02-234-1/+89
| | | Signed-off-by: Christian M. Adams <chadams@redhat.com>
* [stable-2.11] ansible-test - Use `--forked` instead of `--boxed`Matt Clay2022-02-223-1/+4
| | | | | | | The `--boxed` option is deprecated.. (cherry picked from commit eaeec8a65c4bf9066c5a2c180ec11872f84e6b67) Co-authored-by: Matt Clay <matt@mystile.com>
* ansible-test - Omit pyopenssl for sanity tests.Matt Clay2022-02-222-2/+7
|
* ansible-test - Add MarkupSafe constraint.Matt Clay2022-02-212-0/+4
| | | | | | | | Installation of MarkupSafe 2.1.0 and later require setuptools 39.2 or later, or a recent version of pip which supports installation using a wheel. Some systems will not have new enough versions of pip and/or setuptools, especially virtual environments -- including those created by ansible-test.
* [stable-2.11] Use --no-deps when installing amazon.aws and not testing ↵Sloane Hertel2022-02-213-5/+6
| | | | | | | | dependencies (#77091) (cherry picked from commit 88bfb7193e729578a570e3c73becfc6613f512da) Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
* [stable-2.11] ansible-test - Use quay.io containers in plugins..Matt Clay2022-02-173-2/+5
| | | | | | (cherry picked from commit c27fd777f4d82fc1eefaa20114cf1f76b7ce1bee) Co-authored-by: Matt Clay <matt@mystile.com>