Commit Graph

48190 Commits (a6f5060464d2dfdf24e70607e64931bb6685ec24)
 

Author SHA1 Message Date
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
David Shrewsbury 8a2f694715
Test pip fix (#72765)
(cherry picked from commit 2eb9795543)
5 years ago
Ganesh Nalawade 4e0e0e5af0
Try to load action plugin from the same collection as the module (#66701) (#72409)
* Try to load network action plugin from the same collection as the module

* Alter tests to match

Just make sure the action plugin is as qualified as the module it is paired with

(cherry picked from commit 3dbc03d58a)

Co-authored-by: Nathaniel Case <ncase@redhat.com>
5 years ago
Sam Doran 9816b141fe
[stable-2.9] Fix super annoying Python 2.6 multiprocessing.Queue stack trace in CI (#72604) (#72609)
* Fix super annoying Python 2.6 multiprocessing.Queue stack trace in CI

A bug exists in Python 2.6 that sometimes raises an exception during interpreter shutdown. We
encounter this frequently in our CI since we run tests on CentOS 6 as the control node, which
has Python 2.6.6 with this bug.

This PR adds a very minor sleep only on Python 2.6 which gets around this issue. I did lot of testing
using a standalon script I found that easily duplicated the issue to find the minimum sleep value
needed to avoid this issue.

CPython issue: https://bugs.python.org/issue4106
Fix in CPython: https://hg.python.org/cpython/rev/d316315a8781

* Use correct attribute
(cherry picked from commit bbef250c2b)

Co-authored-by: Sam Doran <sdoran@redhat.com>
5 years ago
Sandra McCann 539e420b10
replace porting guides with stub pages - issue 71687 (#71988) (#72599)
(cherry picked from commit 5a3a2d1a39)
5 years ago
Felix Fontein 1837711d50
Improve config.rst formatting (#72354) (#72488)
* Indent Jinja2 directives.

* Show version_added and deprecations for ini settings and environment variables.

* Make default conditional, add choices. Copied from #55474.

* Add Ansible variables. Copied from #55474.

* Turn ini keys and environment variables into lists. Copied from #55474.

* Improve formatting. Copied from #55474.

(cherry picked from commit 569d937df8)
5 years ago
Matt Clay c73c5477e5 [stable-2.9] Fix container discovery for the acme test plugin.
(cherry picked from commit f022dedd0a)

Co-authored-by: Matt Clay <matt@mystile.com>
5 years ago
Sam Doran e78d9d97c8
[stable-2.9] [dnf] Some fixes around filtering (#72483) (#72501)
* [stable-2.9] [dnf] Some fixes around filtering (#72483)

Change:
- Docs: Add note that security/bugfix apply to dependencies too, like
  the dnf command.

- dnf: security/bugfix only makes sense for updates, so limit the
  package query sack to available updates.

- tests: Limit tests to our known-good test packages, so that RHEL
  packages marked security/bugfix without similarly marked dependencies
  don't fail our tests.

Test Plan:
- Tested with `dnf upgrade-minimal --bugfix` and reproduced the same
  error currently seen in CI, showing that we are consistent with what
  dnf does.

Tickets:
- Likely fixes #72316

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

Co-authored-by: Rick Elrod <rick@elrod.me>

* Add changelog (#72502)

(cherry picked from commit b33d7e2e29)

Co-authored-by: Rick Elrod <rick@elrod.me>
5 years ago
Sandra McCann d3db411c89
clarify upstream release status of 2.10 (#72269) (#72490)
* clarify upstream release status of 2.10

(cherry picked from commit d76f85208d)
5 years ago
Matt Clay 6f29ab5203 [stable-2.9] Fix ansible-test tar format handling.
(cherry picked from commit 49d8d5ae33)

Co-authored-by: Matt Clay <matt@mystile.com>
5 years ago
Rick Elrod 69c3456865 Update Ansible release version to v2.9.15.post0. 5 years ago
Rick Elrod 9e58793835 New release v2.9.15 5 years ago
Matt Martz 304f6b256c
[stable-2.9] Update pip tests to omit install dev extras to avoid dep issues (#72436) (#72439)
(cherry picked from commit 2ee5af5)

Co-authored-by: Matt Martz <matt@sivel.net>
5 years ago
Rick Elrod dea0bbc273 Update Ansible release version to v2.9.15rc1.post0. 5 years ago
Rick Elrod f9bc656642 New release v2.9.15rc1 5 years ago
Matt Davis 84aa943195
Remove ansible-galaxy login (#72288) (#72325)
* GitHub is removing the underlying API used to implement the `login` command. Since the general consensus seems to be that relatively nobody currently uses this command (in favor of explicit token passing), support was simply removed for interactive login. If a future need arises, this command should be reimplemented via OAuth Device Auth Grants.
* login or role login commands now produce a fatal error with a descriptive message
* updated 2.10 porting guide entry

* remove dead code/config, update messages and porting guides

(cherry picked from commit 83909bfa22)
5 years ago
Felix Fontein 7fe2a22f70 ansible-test ansible-doc sanity test: disable vars plugins for collections 5 years ago
Ruediger Pluem 04989ae052
Fix the reversed order of return values (#72088) (#72340)
AnsibleModule.run_command returns a tuple of return code, stdout and stderr.
The module main function of the user module expects user.create_user to
return a tuple of return code, stdout and stderr.
Fix the locations where stdout and stderr got reversed.

(cherry picked from commit e64ba97e8a)
5 years ago
Jill R b4eebe66d8
New AWS module mod_defaults (#72145)
To support this new module in CI, we need it to be in 2.9s mod_defaults
5 years ago
Andrew Klychkov e7b2ba4ef6
postgresql_pg_hba: fix a crash when a new rule with an 'options' field replaces a rule without or vice versa (#72290) 5 years ago
Rick Elrod 2beeeb8a27 show installations/removals in check_mode (#70892)
Change:
- Previously, we only showed that something would have changed, not what
  would have changed. This allows us to show what will chang as well.

Test Plan:
- Local RHEL8 VM
- New integration tests

Tickets:
- Fixes #66132

Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Rick Elrod 49d5462f16 accumulate update filters (#71726)
Change:
- Previously when `security: true` and `bugfix: true` were both given,
  only security updates would get applied. Filters now accumulate so
  that both get applied in this case.

Test Plan:
- New integration tests for both check_mode and not. These tests make
  use of a contrived yum repository which is stored in S3.

Tickets:
- Fixes #70854

Signed-off-by: Rick Elrod <rick@elrod.me>
Co-authored-by: Matt Martz <matt@sivel.net>

Co-authored-by: Matt Martz <matt@sivel.net>
5 years ago
Martin Nečas 991272e53e
Backport: ovirt_disk don't move disk when already in storage domain (#72194) 5 years ago
Hobnob 0eab1dcc00
Fix zfs snapshot handling on root zvols (#72254) 5 years ago
Jordan Borean 38baaee019
Fix race condition when creating async dir (#72069) (#72258)
* Fix race condition when creating async dir

* Simplify exception wrapper

* Remove var used for testing

(cherry picked from commit c9fa1d0e7e)
5 years ago
Mario Lenz a33ae8b27f
Fix issue with duplicate custom attribute names (#72058) 5 years ago
Abhijeet Kasurde 4ab20bdd76
[2.9] nmcli: Typecast parameter values to string as required (#72094)
Fixes: https://github.com/ansible-collections/community.general/issues/1023

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years ago
Ruediger Pluem 3d17393f61
user - allow local users with an expiry date to be created (#72022) (#72086)
The luseradd / lusermod commands do not support the -e option. Set
the expiry time in this case via lchage after the user was
created / modified.

Fixes: #71942

In Python3 math.floor returns an integer whereas Python2 returns a float.
Hence always convert the result of math.floor to an int to ensure that
lexpires is an integer.

Move local expires tests in a separate file and import the tasks to the
main.yml to keep main.yml smaller.

(cherry picked from commit a7170da851)
5 years ago
Sam Doran 0cab929d2d
[stable-2.9] Allow changed/failed mgmt on strategy actions (#70919) (#72118)
* Allow changed/failed mgmt on strategy actions.
(cherry picked from commit f9c3c6cba6)

Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
5 years ago
Christian Loos 4a1555fb0a
fix distribution fact for SLES4SAP (#71559) (#72029)
b6b238a fixed the SLES4SAP detection, which was at this time ok.
Sadly Suse changed with SLES 15 the /etc/os-release file, so the above
change will no longer work.

This commit updates the SLES4SAP detection regarding
https://www.suse.com/support/kb/doc/?id=000019341.

The symlink realpath is matched with endswith, because in SLES 12+ the
link target is SLES_SAP.prod, but in SLES 11 the link target is
SUSE_SLES_SAP.prod.

(cherry picked from commit ea119d3089)
5 years ago
Andrew Klychkov 30e735c4d8
[2.9] postgresql_privs: fix the module mistakes a procedure for a function (#72014)
* postgresql_privs: fix the module mistakes a procedure for a function

* Fix CI
5 years ago
Jordan Borean 7720cd239e
powershell - remove env var (#72010) (#72011)
(cherry picked from commit 3c33618cf6)
5 years ago
Matt Clay 8fc579061f [stable-2.9] [stable-2.10] Fix ansible-test handling of user-defined docker networks. (#72256)
* Fix ansible-test docker container detection.

* Attach test containers to the correct network.

* Do not assume `localhost` for accesing Docker.

* Look for containers on current network.

* Always map /var/run/docker.sock into containers.

This fixes issues when using a remote Docker host.

* Support container IP lookup from networks list.

* Fix container network attachment.

* Remove redundant container detection messages.

* Limit DOCKER_HOST parsing to TCP.

* Restore docker socket existence check.

The check is skipped if the docker hostname is not localhost.

* Correct changelog entry..
(cherry picked from commit 3c2e8b99be)

Co-authored-by: Matt Clay <mclay@redhat.com>.
(cherry picked from commit 6362232c30)

Co-authored-by: Matt Clay <mclay@redhat.com>
5 years ago
Matt Clay a02d29ea09
CI stability updates. (#72306)
* Avoid issues with user-defined docker networks.
* Increase CI timeout.
5 years ago
Matt Clay c54dc50bd7
[stable-2.9] Fix ansible-test Azure Pipelines container auth. (#72283)
(cherry picked from commit 2ef4b7e07e)

Co-authored-by: Matt Clay <matt@mystile.com>
5 years ago
Abhijeet Kasurde 7529d31ba9
[2.9] kubectl: Follow up fix in connection plugin (#72130)
PR #71535 broke, _build_exec_cmd API in kubectl connection
plugin.

Fixes: #72171

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years ago
Matt Clay b9fc07ef4e
[stable-2.9] Support collection constraints in ansible-test. (#72158)
This allows collections to specify requirements and constraints for packages that ansible-test has requirements or constraints for..
(cherry picked from commit 5f76bd2af7)

Co-authored-by: Matt Clay <matt@mystile.com>
5 years ago
Rick Elrod e9a98b6ca9 Update Ansible release version to v2.9.14.post0. 5 years ago
Rick Elrod 13c4090f97 New release v2.9.14 5 years ago
Rick Elrod 9a1ca02c8e
[tests] Try re-enabling hcloud (#72033)
Change:
- See if they have fixed their issues yet.

Test Plan:
- CI

Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Rick Elrod 609667c7d4
[tests] --no-use-pep517 in kubevirt_conformance (#72015)
Change:
- This enables the inventory_kubevirt_conformance test to pass again on
  freebsd.
- This was due to a google-auth version bump. The dep chain looks like
  this: openshift -> kubernetes -> google-auth -> aiohttp -> multidict

Test Plan:
- ansible-test integration inventory_kubevirt_conformance --remote
  freebsd/12.0

Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Rick Elrod 7647d2fa89 Update Ansible release version to v2.9.14rc1.post0. 5 years ago
Rick Elrod 12ec871877 New release v2.9.14rc1 5 years ago
Rick Elrod e68b222e40
add CVE ref to kubectl changelog fragment (#71986)
Signed-off-by: Rick Elrod <rick@elrod.me>
5 years ago
Matt Clay 0dba2fe0dc
[stable-2.9] CI provider fixes for ansible-test. (#71929) (#71933)
* Make Azure Pipelines resource_prefix lowercase.

* Make classification of CI files consistent.

* Update package-data sanity test for AZP.
(cherry picked from commit 92b66e3e31)

Co-authored-by: Matt Clay <mclay@redhat.com>
5 years ago
Felix Fontein 35333e127c
Fix ansible-doc's plugin name retrieval for text output. (#71965) 5 years ago
Abhijeet Kasurde 3728530c9a
[2.9] kubectl: redacted token and password from console log (#71535)
** SECURITY_FIX ** for CVE-2020-1753

kubectl connection plugin now redact kubectl_token and
kubectl_password from console log.

Fixes: ansible-collections/community.kubernetes#65

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years ago
Abhijeet Kasurde f6ac5f1ce0
[2.9] cgroup_perf_recap: Check if user wants to write to files or not (#71527)
if user sets 'write_files' to False or does not set value, then
handle file write related operations.

Fixes: #64936

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit e82b28a920)
5 years ago
Mario Lenz d2b499eab1
[backport][2.9] vmware_guest: Add support for HW version 15 (vSphere 6.7U2) (#71565)
* vmware_guest: Add support for HW version 15 (vSphere 6.7U2)

* Update changelogs/fragments/71563-vmware_guest-support_hw_version_15.yml

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
5 years ago