Commit graph

44932 commits

Author SHA1 Message Date
Andrey Klychkov
81a5183428 Backport/2.8/60105: turn off the default db warning where it doesn't make sense (#60107)
* Bugfix 60043: turn off the default db warning where it doesn't make sense (#60105)

(cherry picked from commit d2cc9f5f06)

* Backport of 60105: turn off the default db warning where it doesn't make sense
2019-08-07 13:58:37 -07:00
Lukas Kämmerling
4f763037b0 [stable-2.8] Fix hcloud tests
(cherry picked from commit 6c1a255d98)

Co-authored-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
2019-08-07 13:50:31 -07:00
Felix Fontein
2a862ee82e fix misleading example in docker_image doc (#60207) (#60231)
Using docker_image to tag an image as "latest" only updates an existing
tag when used with "force_tag: yes" option. As "latest" is present in
most cases, the option is added to the example to prevent unexpected
behaviour.

(cherry picked from commit 5a6003d0ed)
2019-08-07 15:43:48 -05:00
Matt Martz
978dd9f541 [stable-2.8] Fix async output with adhoc callbacks. Fixes #15988 (#59935)
(cherry picked from commit df6b8d2)

Co-authored-by: Matt Martz <matt@sivel.net>
2019-08-07 13:17:40 -07:00
yanzhangi
215aa73843 update ce_bgp_af to fix bugs (#60032)
* update ce_bgp_af to fix bugs (#59678)

* update ce_bgp_af to fix bugs

* update ce_bgp_af to fix bugs

* update ce_vrrp to fix bugs

* update ce_bgp_af to fix bugs

* update ce_bgp_af to fix bugs

(cherry picked from commit d6fd4eb8e6)

* Update ce_bgp_af modified information

* Update ce_bgp_af modified information
2019-08-07 13:16:03 -07:00
yanzhangi
f75fbf94f8 update ce_vrrp to fix bugs (#60034)
* update ce_vrrp to resolve conflicts

* Update ce_vrrp modified information

* Update ce_vrrp modified information
2019-08-07 12:23:17 -07:00
Xu Yuandong
777395ec18 Backport/2.8/59690 ce_netstream_template: update to fix a bug. (#59690) (#60033)
* ce_netstream_template: update to fix a bug. (#59690)

* update to fix a bug.

* Update ce_netstream_template.py

* Update ce_netstream_template.py

* Update ce_netstream_template.py

(cherry picked from commit adfbd04b3a)

* add  a changelog fragment.
2019-08-07 12:16:32 -07:00
Sam Doran
adc494a9e1 [stable-2.8] Change dummy package name in yum/dnf tests to not collide with an actual package (#60225)
When targeting 'foo*' in tests, it pulled in packages other than the dummy packages in our testing repo that have many dependencies, some of which were causing tests to fail.

Also change 'bar' package name to avoid the same issue in the future.
(cherry picked from commit 47796af64f)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-08-07 12:13:11 -07:00
Felix Fontein
feb39dc35a docker_container: fix port bindings with IPv6 addresses (#59715)
* Pass IPv6 addresses for port bindings without square brackets.

* Add changelog.

* Add test.

(cherry picked from commit a7573102bc)
2019-08-07 12:10:49 -07:00
Ruediger Pluem
22ab4683df Only error out if the gid exists with a different group name (#59769)
Only error out if the gid exists with a different group name as
otherwise it will error out if the group with this gid already
exists, like on a rerun of the playbook. This fixes a regression
introduced by 4898b0a4a298448677c2aee2a03157ba5b662759.(cherry picked from commit f94772f807)
2019-08-07 11:59:25 -07:00
Sam Doran
a55d6c37ec [stable-2.8] Handle new output for podman image build (#59807)
(cherry picked from commit 372f21e3b5)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-08-07 11:49:27 -07:00
Felix Fontein
24a4b1d9e7 Move ome_* and idrac_* modules one level up (#59698)
* Move ome_* and idrac_* modules one level up.

* Fix paths.

* Fix package name.

* Oranize in different directories.

* Update BOTMETA.

* Update new ignore entries.

* Revert "Update BOTMETA."
Revert "Oranize in different directories."
Adjust ignores.txt.

(cherry picked from commit 6d074d8a94)
2019-08-07 11:48:48 -07:00
James Cassell
a307a6a89a os_subnet: allow using non-default subnet pool (#52608)
(cherry picked from commit 17f2b5f73e)
2019-08-07 11:47:44 -07:00
Jordan Borean
04ca93a5c0 Rebalance Windows CI groups based on recent delays to 2016 (#59838)
* Change to test out server 2016 CI issues

* ci_complete

(cherry picked from commit 349b2bdf43)
2019-08-07 09:05:29 -07:00
Jill Rouleau
678b9c1b3c Use correct extension on changelog fragment 2019-08-07 07:41:06 -07:00
Jill Rouleau
7edc4be583 backport aws_s3: Improve ETag handling (#46332) 2019-08-07 07:41:06 -07:00
flowerysong
38a7dfca26 aws_s3: Improve ETag handling (#46332)
* cosmetic: Remove useless call to ec2_argument_spec()

* aws_s3: Improve ETag handling

* Extract ETag calculation into a utility function for reuse by
  aws_s3_sync.
* Reduce code duplication in put/get by restructuring the logic
* Only calculate ETag when overwrite == different
* Fail gracefully when overwrite == different and MD5 isn't available
  (e.g. due to FIPS-140-2).

* aws_s3: clean up integration tests

Clean up tests, add tests for overwrite settings in both directions.

(cherry picked from commit c513c1e2d3)
2019-08-07 07:41:06 -07:00
Brian Coca
d39488ece4 prevent templating of passwords from prompt (#59246)
* prevent templating of passwords from prompt

  fixes CVE-2019-10206

(cherry picked from commit e9a37f8e31)
2019-08-07 07:11:01 -07:00
Sam Doran
b2c43bd2b7 [stable-2.8] Wait for Ansible Tower instance to be ready
(cherry picked from commit ea209e1c2f)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-08-02 13:58:26 -07:00
Brian Coca
67fe363297 Fix strat inv (#58982)
* Fix strategy functions that update inventory

* added tests


(cherry picked from commit a7b14ec1be)
2019-08-02 09:40:28 -07:00
Sandra McCann
3fbf1163a3 removed module from support list (#59878)
(cherry picked from commit eb15ee91df)
2019-08-01 07:47:04 -07:00
Sam Doran
79795ba5b0 [stable-2.8] Update version in metadata for bundled distro (#59869)
(cherry picked from commit 81d254da4c)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-31 10:37:39 -07:00
Sam Doran
fd7b4238e2 [stable-2.8] Update constraints for coverage on Python 3.8 (#59733)
This fixes the unit tests hanging when run with Python 3.8 with coverage enabled
(cherry picked from commit ed4a729fd6)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-31 10:36:34 -07:00
Martin Nečas
e2df33563c backport fix qos update ovirt_vnic_profile (#59862)
Update ovirt_vnic_profile.py (#56518)

qos is not defined when port_mirroring is enabled, a NoneType is returned for entity.qos in this case
getattr is safer to use than using a direct call to entity.qos.name
2019-07-31 10:32:03 -07:00
Maciej Delmanowski
703618336f [stable-2.8] Don't warn if local user is found in user database (#56838)
If the 'local' parameter of the 'user' Ansible module is enabled, and
the user has been found in the local user database, don't emit
a warning, because this is an expected outcome.

Add changelog and integration tests

Co-authored-by: drybed <drybjed@gmail.com>
(cherry picked from commit 75be309242)

Co-authored-by: Maciej Delmanowski <drybjed@drybjed.net>
2019-07-31 10:30:46 -07:00
Felix Fontein
e5759e587a Update docs for pesize. (#59751)
(cherry picked from commit 1534d6aea3)
2019-07-31 10:29:33 -07:00
nicholaslong
b6192a5ce8 Added changelog fragment for backport pr relating to pbrun become plugin default become_user. 2019-07-31 08:31:43 -07:00
nick6655
7648619a3f pbrun: Use default value for become_user (#59754)
* Update pbrun.py

Require ternary operator for if get_option('user') returns NoneType object.

* Update pbrun.py

Added default value to become_user in documentation.

* Update pbrun.py

Changed default for become_user to be '' instead of root.

(cherry picked from commit 1d560e5ce9)
2019-07-31 08:31:43 -07:00
Sam Doran
d6e7011d14 [stable-2.8] Order data in xml integration test (#59742)
A recent update to lxml for Python >= 3.6 now preserves key order. Change the test input so the input is sorted, making tests pass on previous versions of lxml as well as the latest version.
(cherry picked from commit 19299f3310)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-30 21:17:22 -07:00
Jordan Borean
aabc0aff57 win_dsc - be more lenient with datetime parsing (#59703)
* win_dsc - be more lenient with datetime parsing

* Remove l that shouldn't be there

(cherry picked from commit 04ec47bdf1)
2019-07-30 17:33:58 -07:00
Jordan Webb
8af9c9ccc9 Add pipelining to podman connection plugin 2019-07-30 17:33:22 -07:00
Sam Doran
ce59df01e3 [stable-2.8] Fix podman_image integration tests (#59805)
Pin podman package at a specific version
(cherry picked from commit 691976c3d0)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-30 17:30:41 -07:00
Itai Malek
ac1e647e55 [2.8] fixed _merge_dictionaries calls in GcpSession class
(cherry picked from commit c24b841c0a)
2019-07-30 17:29:21 -07:00
Sandra McCann
b866036365 add eol banner (#59254)
(cherry picked from commit 00699735e9)
2019-07-30 17:26:21 -07:00
Xu Yuandong
77df9ddaa8 Backport/2.8/59689 ce_netstream_global: update to fix a bug. (#59689) (#59786)
* ce_netstream_global: update to fix a bug. (#59689)

* update to fix a bug.

* Update ce_netstream_global.py

(cherry picked from commit 3c7e8f7905)

* add a changelog fragment.
2019-07-30 17:25:01 -07:00
Pilou
11e087ff7a consul_session: improve documentation and add integration tests (#56392) (#59357)
* consul_session: Python 2.6 is always required on managed node
* consul_session: document all types
* consul_session: add doc for 'id' parameter
* consul_session: improve parameter descriptions
    - use formatting functions in descriptions
    - 'name' parameter is required when state=node
* consul_session: use required_if
* consul_session: add integration tests
* consul_session: use 'retry' with network dependent tasks
* Use ansible-ci-files bucket for consul binaries

Co-Authored-By: Matt Clay <matt@mystile.com>
(cherry picked from commit 5f8080aaa0)

* add a changelog fragment
2019-07-30 17:21:44 -07:00
Xu Yuandong
712a11bdf7 Backport/2.8/59523 ce_config: Optimize multi-level views & fix a bug. (#59523) (#59728)
* ce_config: Optimize multi-level views & fix a bug. (#59523)

* Optimize multi-level views

* update to rewrite load_config.

* update.

* update.

* update.

* update.

(cherry picked from commit 9182d54e98)

* add a changelog fragment.
2019-07-30 13:36:21 -07:00
Xu Yuandong
8badf3b3cb Backport/2.8/59347 ce_stp: update to fix a bug. (#59347) (#59685)
* ce_stp: update to fix a bug. (#59347)

* update to fix a bug.

* update for shippable.

* Update ce_stp.py

(cherry picked from commit c3d1f9b085)

* add a changelog fragment.

* Update 59685-ce_stp-to-fix-bugs.yml
2019-07-30 13:34:14 -07:00
Andrea Tartaglia
2a1e7403c4 ec2_instance: Force int when ebs.volume_size or ebs.iops is specified (#55716)
* Force int when volume_size is specified

* changelog

* both volume_size and iops must be int

* updated changelog fragment

(cherry picked from commit 5a6f888036)
2019-07-30 13:16:45 -07:00
Xu Yuandong
bce7ccc26d Backport/2.8/59336 ce_mlag_config: update to fix a bug(#59336) (#59684)
* ce_mlag_config: update to fix a bug. (#59336)

* update to fix a bug.

* update

* Update ce_mlag_config.py

* Update ce_mlag_config.py

(cherry picked from commit 585128e5ac)

* add a changelog fragment.
2019-07-30 13:15:03 -07:00
Strahinja Kustudic
6b4f153459 sysctl - Reload also when current system values differ (#56153)
Previously if `sysctl_set=no` (which is the default) this module only
checked for changes in the sysctl.conf file to decide whether it should
reload it or not. This means that if the values in the conf file are the
same as they are set with the module, but the current values on the
system are different, that this module wouldn't apply the changes on the
system and thus the value set with the module wouldn't be applied on the
OS. This isn't obvious and it doesn't make sense that the module works
like that by default, especially because there is a separate option
`reload`. Now sysctl will also check if the current value differs on the
system and if it does, it will reload the file again.

(cherry picked from commit 5fc769f6b1)
2019-07-30 13:14:21 -07:00
Michael Scherer
e97ceafa82 [2.8] Fix traceback when using gluster_volume
Since bricks_in_volume is a list, it can't be compared to a int.

(cherry picked from commit 06651d1055)
2019-07-30 12:35:51 -07:00
Sumit Jaiswal
35ba55599a PR to implement ansible_net_model for iosxr facts module (#58488)
* resolves 57767

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>

* added test

Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
(cherry picked from commit 539f37ede3)

Handle lowercase in version info (#59565)

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
(cherry picked from commit 3a103405b1)

Add changelog for iosxr_facts fix

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
2019-07-30 12:17:20 -07:00
Sam Doran
95fd0d58e6 [stable-2.8] Make docker swarm integration tests more reliable (#59473)
(cherry picked from commit 3ceeae0de9)

Co-authored-by: Sam Doran <sdoran@redhat.com>
2019-07-30 12:07:14 -07:00
Martin Krizek
ed027203c6 2.8: Clear 'connection related' plugin vars for next loop iteration (#59024) v2 (#59510)
* Clear 'connection related' plugin vars for next loop iteration (#59024)

Fixes #58876

(cherry picked from commit a752e2a467)

* Preserve original variables when using a loop (#59426)

Fixes #59414

(cherry picked from commit 1010363c0b)
2019-07-29 14:48:31 -07:00
Xu Yuandong
a06b3a5174 Backport/2.8/59346 ce_startup: update to fix a bug (#59520)
* update to fix a bug (#59346)


(cherry picked from commit 6ff54c546e)

* add a changelog fragment.
2019-07-29 12:38:01 -07:00
Andrey Klychkov
9d32d06104 Backport/2.8/59497 fix code formatting, remove unused imports (#59518)
* postgresql modules: fix by flake8 (#59497)

(cherry picked from commit fd35833554)

* Backport of 59497: fix code formatting, remove unused imports
2019-07-29 12:27:50 -07:00
Xu Yuandong
282cf8fd78 backport/2.8/59343 ce_mtu: update to fix bugs. (#59343) (#59515)
* ce_mtu: update to fix bugs. (#59343)

* update to fix bug.

* Update ce_mtu.py

* Update ce_mtu.py

* Update ce_mtu.py

(cherry picked from commit 93265bf92e)

* add a changelog fragment to PR 59515.
2019-07-29 12:26:54 -07:00
Toshio Kuratomi
e08427a138 Correct places where match was intended
pytest.raises has two parameters, message and match.  message is meant
to be the error message that pytest gives when the tested code does not
raise the expected exception.  match is the string that pytest expects
to be a match for the repr of the exception.  Unfortunately, it seems
that message is often mistakenly used where match is meant.  Fix those
cases.

message is also deprecated so removed our usage of it.  Perhaps we
should write a sanity test later that prevents the use of
pytest.raises(message) to avoid this mistake.

seealso: https://docs.pytest.org/en/4.6-maintenance/deprecations.html#message-parameter-of-pytest-raises

Also update the exception message tested for as we're now properly
detecting that the messages have changed.

(cherry picked from commit 87601969a3)

Fix root filter test

On python-2.6 the error message is different

(cherry picked from commit 67fb3a8215)

Fix the pytest match test for python-2.6

(cherry picked from commit 8a880d6032)
2019-07-29 12:08:15 -07:00
Xu Yuandong
65c6306f37 Backport/2.8/59345 ce_rollback: shouldn't load xml configure via network_cli. (#59445)
* update to fix bugs.

(cherry picked from commit 657ff644ca)

* add a changelog fragment.
2019-07-29 12:07:47 -07:00