Commit Graph

51578 Commits (8d37ea6e4bc3547dbdf82ae77e50e196ea1f409b)
 

Author SHA1 Message Date
Matt Clay 8d37ea6e4b Remove scheduled CI runs.
The ansible-core 2.11 release has reached EOL with the release of ansible-core 2.14.
3 years ago
Sviatoslav Sydorenko de7fe7814a
[2.11] Log `runme.sh` execution in integration tests (#79285)
* 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 6674c43edd)

* Delete a bad PR #79263 change note

(cherry picked from commit 9cfb3f73e8)
3 years ago
Sviatoslav Sydorenko e7b39bd1bd [stable-2.11] Restrict `wheel` below v0.38.0 under Pythons < 3.7 (#79187)
* 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 a76bbb18a5)

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
3 years ago
Matt Martz 19b56e7f32
[stable-2.11] Don't request repo updates when only testing modes (#78843) (#78852)
(cherry picked from commit 2542048)

Co-authored-by: Matt Martz <matt@sivel.net>
3 years ago
Matt Martz 88e8e95dd9
[stable-2.11] Filter AWS test AMI selection on any Fedora-Cloud-Base image (#78669) (#78671)
(cherry picked from commit 046c59d)

Co-authored-by: Matt Martz <matt@sivel.net>
3 years ago
Sviatoslav Sydorenko b1c73fa870
Fail fast in stuck `ansible-galaxy-collection` (#78629)
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 f1c56e988d)
3 years ago
Sviatoslav Sydorenko 6e070b90ca
Fix pytest collection during test_host partial run (#78596)
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 beb70daf14)
3 years ago
Matt Clay 8acd498a57
Skip paramiko test on failing platforms. (#78642)
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.
3 years ago
Matt Clay 09abcdaf40
[stable-2.11] Fix file integration test chattr/lsattr check. (#78614) (#78620)
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 2e536c0afb)
3 years ago
Sandra McCann 670d8619c9
Fix version switcher for Japanese docs (#78545)
* Fix version switcher for Japanese docs (#78432)

(cherry picked from commit 660aceaa77)

* update version to match branch

* fix merge change
3 years ago
Sviatoslav Sydorenko 1c0723ba34
[2.11-only] Prepare Alpine signing keys for installs from edge (#78311)
* Add a note on installing faketime on Alpine in CI

(cherry picked from commit d7e3c765be)

* 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
4 years ago
Matt Clay c96ea44797
[stable-2.11] Update AZP test container to 3.0.0. (#78024)
(cherry picked from commit 1321d6ecd5)
4 years ago
Martin Krizek 77b6633076 [stable-2.11] yum: fix parsing of check-update with subsequent empty lines (#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 51f2f1ac5e)

Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
4 years ago
jamesmarshall24 c65f80cb81
Update Ansible release version to v2.11.12.post0. (#77880) 4 years ago
jamesmarshall24 322366620f
New release v2.11.12 (#77862) 4 years ago
Dimitri Savineau 3c9415c968
Update Ansible release version to v2.11.12rc1.post0. (#77812) 4 years ago
Dimitri Savineau 9818510a0a
New release v2.11.12rc1 (#77811) 4 years ago
Sandra McCann e7dbe1b514
update version switcher to include 2.13 (#77786) (#77797)
(cherry picked from commit f5642cea28)
4 years ago
Brian Coca 67f06ed83c
dont rely on path to set config defs for plugins (#77659) (#77696)
(cherry picked from commit a3cc6a581e)
4 years ago
Martin Krizek d5e5bd34d6
Prevent losing unsafe from lookups (#77609) (#77652)
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 3980eb8c09)
4 years ago
Matt Clay 19415e1238 Remove FreeBSD 11.4 from CI since it is EOL.
Bootstrapping fails due to missing packages.
4 years ago
Christian Adams fee6f50a7e
Update Ansible release version to v2.11.11.post0. (#77632) 4 years ago
Christian Adams cb6ccfda90
New release v2.11.11 (#77627) 4 years ago
Matt Clay 4d31016e85 ansible-test - Fix rstcheck compatibility issues. 4 years ago
jamesmarshall24 d356019be7
Update Ansible release version to v2.11.11rc1.post0. (#77558) 4 years ago
jamesmarshall24 8eb57ec3d4
New release v2.11.11rc1 (#77542) 4 years ago
Sandra McCann 31c7c9158e
Pin antsibull to 0.42.0 (#77539) (#77540)
(cherry picked from commit fbc7502050)
4 years ago
Jordan Borean 8fb813918b
SID - Use literal UPN value when attempting a user to SID lookup (#77334) (#77347)
(cherry picked from commit ff184b0815)
4 years ago
Jordan Borean 874f4323ef
winrm - ensure callers PATH for kinit is set (#77401) (#77402)
* winrm - ensure callers PATH for kinit is set

* Fix unit test expectations

* Fix type annotation

(cherry picked from commit 60b4200bc6)
4 years ago
Tong He 402d914841
Backport #76801 (#77295) 4 years ago
jamesmarshall24 d4458925c6
Update Ansible release version to v2.11.10.post0. (#77379) 4 years ago
jamesmarshall24 653b4fba7a
New release v2.11.10 (#77373) 4 years ago
jamesmarshall24 380ff7f3d6
Update Ansible release version to v2.11.10rc1.post0. (#77331) 4 years ago
jamesmarshall24 f78bc40e6f
New release v2.11.10rc1 (#77328) 4 years ago
Elijah DeLee 8dfe4acba4
[2.11 backport] use same timeout for galaxy api interactions (#77088) (#77143)
* 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>
4 years ago
Sloane Hertel 939f843024
[2.11] Fix collection redirects for filter and test plugins (#77210) (#77228)
* 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 8063643b4c)

* The error message is only capitalized on 2.13. Make test more flexible.

(cherry picked from commit 734777ef05)
4 years ago
Sloane Hertel ca8835c990
[2.11] ansible-galaxy collection verify - display new files/dirs as modified content (#77129)
* Fix 'ansible-galaxy collection verify' to report files/directories not listed in the FILES.json

(cherry picked from commit a1d467dbb2)

* changelog

(cherry picked from commit 3d49d6f69e)
4 years ago
Matt Martz ef46bc46f4
[stable-2.11] Use full python package for ansiballz cache filenames (#77090) (#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
4 years ago
Matt Clay 7a8c6d7418 ansible-test - Fix cloud plugin traceback. 4 years ago
Christian Adams 995ca083db
Update Ansible release version to v2.11.9.post0. (#77162) 4 years ago
Matt Clay 41a1fe1303 [stable-2.11] Update setup_pexpect to prefer pip user installs.
This works around issues on RHEL 7.9 when an old version of pexpect is installed from an OS package.
(cherry picked from commit 27fe26edbf)

Co-authored-by: Matt Clay <matt@mystile.com>
4 years ago
Christian Adams 73e6d023b8
New release v2.11.9 (#77157) 4 years ago
Christian Adams adfca2bdc9
Update Ansible release version to v2.11.9rc1.post0. (#77130) 4 years ago
Christian Adams 715fa4fdde
New release v2.11.9rc1 (#77123)
Signed-off-by: Christian M. Adams <chadams@redhat.com>
4 years ago
Matt Clay 1b57ccb7a9 [stable-2.11] ansible-test - Use `--forked` instead of `--boxed`
The `--boxed` option is deprecated..
(cherry picked from commit eaeec8a65c)

Co-authored-by: Matt Clay <matt@mystile.com>
4 years ago
Matt Clay d6b6c95498 ansible-test - Omit pyopenssl for sanity tests. 4 years ago
Matt Clay d003313544 ansible-test - Add MarkupSafe constraint.
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.
4 years ago
Sloane Hertel c6d392d43d [stable-2.11] Use --no-deps when installing amazon.aws and not testing dependencies (#77091)
(cherry picked from commit 88bfb7193e)

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
4 years ago
Matt Clay 79a2ee4bed [stable-2.11] ansible-test - Use quay.io containers in plugins..
(cherry picked from commit c27fd777f4)

Co-authored-by: Matt Clay <matt@mystile.com>
4 years ago
Brian Coca 5c2251504c
ssh connection: use 'correct' host in all cases (#76017) (#76969)
ssh plugin, use 'correct' information source in all cases
  * still fallback to pc
  * added inventory to new test
  * undef var can still show as parser error on pc
    now task_exectuer has a  more accurate error handling

(cherry picked from commit be19863e44)
4 years ago