Commit Graph

44893 Commits (bce7ccc26d24832a05e477205f4469c00a7d1037)
 

Author SHA1 Message Date
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.
7 years ago
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)
7 years ago
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)
7 years ago
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>
7 years ago
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>
7 years ago
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)
7 years ago
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.
7 years ago
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
7 years ago
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.
7 years ago
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)
7 years ago
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.
7 years ago
Xu Yuandong 4b81be97fa Backport/2.8/59344 ce_ntp_auth: update to fix "state is present but all of the following are missing: pas… (#59437)
* update to "state is present but all of the following are missing: password" bug

(cherry picked from commit 661b009f36)

* add a changelog fragment.

* update changelog fragment: section "bugfixes" list items must be type str not dict.

* update
7 years ago
Martin Nečas 5410128801 Ovirt host event log backport (#59432)
* Ovirt host event log (#57935)

* host event log init

* show more events

* add time check

* correct pep8 syntax

* use event id as first elem

* init start event in constr

* update pep8 syntax

* remove precreate

* add changelog
7 years ago
Ganesh Nalawade 9a3dc5f798 Fix netconf connection command timeout issue (#58322)
*  ncclient uses same timeout value at the time
   of connection initialisation and waiting response
*  Ansible has connect_timeout to control the waiting
   time during initial connection and `command_timeout`
   to control the wait time for resposne. Hence set the
   ncclient timeout seperately to Ansible command_timeout
   after the connection object is created sucessfully.

(cherry picked from commit db0fe4b188)
7 years ago
Toshio Kuratomi e2c8a64b45 [stable-2.8] Fix for skipping of gitlab_runner test.
Correct variable name for skipping of the gitlab test when gitlab python
client is not installed.
(cherry picked from commit 0c992d5ae4)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
7 years ago
Matt Clay 542aec6166 Minor docs fix for sanity test docs backport. 7 years ago
Matt Clay dd42aac878 Remove redundant "Sanity Tests »" from page title.
The docs now have multi-level breadcrumbs so including "Sanity Tests »" in the title on a sanity test page is redundant.

(cherry picked from commit b4494fa547)
7 years ago
Tomáš Pospíšek 4782c6b0b8 remove ambiguity: use "my_test" as module name (#59335) (#59519)
Use "my_test" as the sample module name on the developing_modules_general page.

(cherry picked from commit 28b9f71640)
7 years ago
UNR Information Security 8e9c8c5b8f Fix return values types for find module in docs (#59480)
* Update find.py (#59456)
Return values for `matched` and `examined` in the find module are integers and not strings.
(cherry picked from commit 7b4ce9e4ae)
7 years ago
Jordan Borean 9b1615058e psexec - update example for for delegation example (#59475) (#59482)
(cherry picked from commit 3581e63ca8)
7 years ago
Toshio Kuratomi 4b5c13ff76 Update Ansible release version to v2.8.3.post0. 7 years ago
Toshio Kuratomi be6918689a New release v2.8.3 7 years ago
Toshio Kuratomi 42c2b3e496 [stable-2.8] Fix nightly rpm release
The nightly rpm builds were using a timestamp from the last git commit
in their Release field.  Unfortunately, that was using author timestamp
which is nonsequential.  Change to using commit timestamp which is
sequential.

note that this still has a cornercase if the branch's history is ever
rewritten.
(cherry picked from commit 97edfcc)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
7 years ago
Felix Fontein b64f3b3b98 [stable-2.8] Re-enable docker_container tests (#59425)
Mark dependent container's ipc_mode as shareable
(cherry picked from commit 266d6e77a9)

Co-authored-by: Felix Fontein <felix@fontein.de>
7 years ago
Sam Doran fc684b6204 [stable-2.8] Mark Docker tests unstable (#59408)
* Mark Docker tests unstable

- docker_swarm is unstable on RHEL 8
- docker_container is unstable on RHEL 7

* Disable docker_container test.
(cherry picked from commit 67c69f3)

Co-authored-by: Sam Doran <sdoran@redhat.com>
7 years ago
Toshio Kuratomi a0688027a5 Revert "Clear 'connection related' plugin vars for next loop iteration (#59024)"
This reverts commit 5e7e9b57c0.

This causes a new set of regressions from 2.8.2:
https://github.com/ansible/ansible/pull/59284#issuecomment-514021543

So this issue won't be fixed in 2.8.3 but work towards a fix for 2.8.4
will continue.
7 years ago
Brian Coca 37f8684330 if users are None/empty, dont assume sameness (#58875)
(cherry picked from commit 4ef2545eb5)

 also fix all cases of none remote/become users (#59397)
 some cases failed, when defaults were None on the plugins

(cherry picked from commit 74ac229fa8)
7 years ago
Brian Coca 89963a0062 Fix gather facts ignoring gather_subsets config (#59271)
* Fix gather facts ignoring gather_subsets config

 fixes #58728

* Update lib/ansible/playbook/play.py

Co-Authored-By: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 8a886a6bee)
7 years ago
Noe Gonzalez 18fc915b15 [2.8] VMware: Fix vmware_guest cloning bug
* fix vmware_guest cloning bug
* added tests for resizing disks during clone

(cherry picked from commit 3a5d13b0d7)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
7 years ago
Martin Krizek 89d5830da0 2.8: Revert "Speed up VariableManager by preserving Templar state. (#45572)" (#59280) (#59373)
* Revert "Speed up VariableManager by preserving Templar state. (#45572)" (#59280)

This reverts commit 6069d09b9d.

Fixes #57351

(cherry picked from commit b7868529ee)

* Add changelog for #59280 (#59380)


(cherry picked from commit d6b1376006)
7 years ago
Andrey Klychkov e989f4c38d Backport 59342, postgresql_schema: parameter ensure replaced by state (#59368)
* parameter ensure replaced by state (#59342)

corrected a typo at the absent-example.
(cherry picked from commit 883cc665e3)

* Backport 59342, postgresql_schema: parameter ensure replaced by state
7 years ago
Tyler Ramer 6e9c928817 [2.8] Address regression causing bootproto=dhcp for manual IP addresses
Commit b7724fdf85
appears to have caused a regression, where `ip4`, `gw4`, `ip6`, `gw6`
were converted to `ipv4.address`, `ipv4.gateway` etc.

This causes bootproto (or `ipv4.method`) to remain `dhcp`, as noted in https://github.com/ansible/ansible/issues/36615

This commit only reverts the key-value pairs to the original names,
which is in line with both expectation (manual ip addr == no dhcp) and
the language used in the playbook, which is, for example, "ip4" not
"ipv4.address"

Co-authored-by: Stuart Pollock <spollock@pivotal.io>
Co-authored-by: Tyler Ramer <tramer@pivotal.io>
(cherry picked from commit 8d0f2e5725)
7 years ago
Martin Nečas 02c605b4c9 ovirt vm when creating Nonetypefix (#59377)
* ovirt vm when creating Nonetypefix

* update fix and add comment

* add changelog

* Update 59377-ovirt-vm-when-creating-fix.yml
7 years ago
Sam Doran e0dbe1bf26 [stable-2.8] Omit -A and -G options in local mode since luseradd does not support these (#55401) (#58480)
* [stable-2.8] Omit -A and -G options in local mode since luseradd does not support these (#55401)

Add integration tests
(cherry picked from commit 20ad120829)

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

* User - make groups and append mutually exclusive with local (#59309)

* Update intigration tests

(cherry picked from commit 8edad83ae0)
7 years ago
Abhijeet Kasurde 302de41a31 [2.8] VMware: Accept 0 as valid value for memory reservation
vmware_guest accepts 0MB as valid value for memory reservation in
virtual machine hardware configuration. This fixes the regression
introduced via 193f69064f.

Fixes: #59190

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 1f49abb51c)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
7 years ago
Jordan Borean e5f68cad5a Fix win_reg_stat for HKU hives (#59359)
(cherry picked from commit 2f2b106423)
7 years ago
Felix Fontein ffa92f7725 Fix typo in import package name. (#59229)
(cherry picked from commit cdf0947df0)
7 years ago
Sloane Hertel 6c14bdeb7e disable s3_lifecycle tests (#59311)
(cherry picked from commit 1d3f2c7764)
7 years ago
Sam Doran 2f5c3b3cb4 [stable-2.8] Handle situation where ansible_architecure may not be defined when gathering facts (#55466)
(cherry picked from commit f231f21669)

Co-authored-by: Sam Doran <sdoran@redhat.com>
7 years ago
Martin Nečas c40949df8a Ovirt vnic profile docs backport (#59288)
* ovirt vnic profile update readme (#57298)

removes second of two identical examples

* add changelog
7 years ago
Martin Krizek 5e7e9b57c0 Clear 'connection related' plugin vars for next loop iteration (#59024)
Fixes #58876

(cherry picked from commit a752e2a467)
7 years ago
Jordan Borean a2d6f9acd9 Win setup fix 2.8 (#59211)
* Wrap Get-MachineSid's body in a try/catch

It's not critical information and there's been a number of issues over
the years with trying to retrieve it. If an exception is thrown just
return null.

Fixes: #47813
(cherry picked from commit b8a41a90b8)

* add changelog


(cherry picked from commit 277690bcc6)
7 years ago
Sam Doran 4f939d4b2b [stable-2.8] Move integration tests to using RHEL 8.0 GA (#57772).
(cherry picked from commit b9dafdbade)

Co-authored-by: Sam Doran <sdoran@redhat.com>
7 years ago
Xu Yuandong c55d83f41e Backport/2.8/59071 ce_file_copy : update ce_file_copy to fix a bug. (#59071) (#59243)
* ce_file_copy : update ce_file_copy to fix a bug. (#59071)

* update ce_file_copy to fix a bug.

* Update ce_file_copy.py

* Update ce_file_copy.py

(cherry picked from commit 7a0a21ea7a)

* add a changelog fragment to PR 59243.
7 years ago
Wojciech Sciesinski b373d45839 Correct a documentation of the jenkins_plugin module (#59331)
It's a backport of #59139
7 years ago
flowerysong 2fbf4ca99c [2.8] Fix ec2_eip parameter logic
device_id is required when private_ip_address is set, but the reverse is not true.

(cherry picked from commit 6273574eb4)

Signed-off-by: flowerysong <junk+github@flowerysong.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
7 years ago
James Cassell d0f74f495b dzdo: fix password prompt (#59208)
(cherry picked from commit 28259ee247)
7 years ago
Sam Doran a5178d8a34 Add pslint ignore rules 7 years ago
Sam Doran 9c391ea78e [stable-2.8] Update default test container to use Python 3.8.0b2 (#58877).
(cherry picked from commit 5ccd674dba)

Co-authored-by: Sam Doran <sdoran@redhat.com>
7 years ago
Martin Nečas 5447dc855b Ovirt correct sysprep backport (#59286)
* use sysprep only when needed (#59196)

* add changelog
7 years ago