Plugins for OpenStack-Ansible
Go to file
Markos Chandras f56d1242c9 strategy: linear: Inspect the delegated host on delegated tasks.
The purpose of the 'physical_host_addrs' variable was to create a
mapping with all the physical hosts and their IP addresses. However,
the function was broken because it used the 'physical_host' task
variable to obtain the name of the physical host for the running task.
As such, the dictionary only contained a single entry. This breaks
delegation between hosts, since there was no entry in the dictionary for
the delegated host. So if a task targetting containerA on hostA was
delegated to containerB on hostB, the IP address of the hostB was not
in the dictionary. The connection plugin code then used the 'hostB'
hostname to connect to the host instead of its IP. However, if there
is no central DNS to translate hostB to an IP or if the deployer
did not add such mapping to /etc/hosts we observed the following
problem.

fatal: [compute00]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh:
Could not resolve hostname controller00: Name or service not known\r\n", "unreachable": true}

In order to fix that, we now examine the delegated host and create the
appropriate mappings if the task is delegated. This ensures that the
physical_host_addrs variable also contains information for the delegated
hosts instead of just the original one.

Change-Id: Ic84ad3ccdd8283a4ab3fb3130d4d5e520ab736de
2018-08-31 10:06:31 +01:00
action Retain the ordering when using with MultiStringOp 2018-03-22 14:35:08 +00:00
callback Remove debug_message_collector plugin 2017-09-08 12:46:52 -05:00
connection Fix connection plugin to work with Ansible 2.6.0 2018-07-04 12:50:08 +01:00
doc Updated spice-html5 git repository URL 2018-06-06 07:23:01 +02:00
examples Trivial: Fix the pep8 warning 2018-05-08 17:30:51 +08:00
filter Revert "Add a get_nested filter" 2018-07-20 11:22:38 +01:00
library Remove the dist_sort module 2018-06-24 14:29:44 +00:00
lookup Remove *.txt file content from py_pkgs lookup output 2018-06-28 09:45:16 +01:00
meta Add Bionic testing 2018-07-10 21:53:36 +00:00
releasenotes Update reno for stable/rocky 2018-08-10 16:49:13 +00:00
strategy strategy: linear: Inspect the delegated host on delegated tasks. 2018-08-31 10:06:31 +01:00
tests Merge "Revert "Add a get_nested filter"" 2018-07-20 17:36:00 +00:00
zuul.d switch documentation job to new PTI 2018-08-21 13:22:08 +00:00
.gitignore Updated from OpenStack Ansible Tests 2018-03-27 15:57:51 +00:00
.gitreview Updated repo for new org 2016-01-27 10:31:29 -06:00
CONTRIBUTING.rst [DOCS] Cleanup the role docs for consistency and clarity 2016-03-07 17:38:19 -05:00
LICENSE Update LICENSE file 2016-02-01 16:47:07 +00:00
README.rst Update links in README 2018-03-03 13:02:21 +08:00
Vagrantfile Updated from OpenStack Ansible Tests 2018-06-06 00:45:07 +00:00
bindep.txt Updated from OpenStack Ansible Tests 2017-12-06 00:06:54 +00:00
manual-test.rc Use centralised test scripts 2016-09-28 12:04:13 +01:00
run_tests.sh Updated from OpenStack Ansible Tests 2018-04-30 05:17:15 +00:00
setup.cfg Update URLs in documents according to document migration 2017-07-14 09:47:00 +08:00
setup.py Updated from global requirements 2017-03-02 11:52:19 +00:00
tox.ini Use the TESTING_BRANCH env var for constraints 2018-08-16 18:29:27 +01:00

README.rst

Team and repository tags

image

OpenStack-Ansible plugins

These are the plugins the OpenStack-Ansible deployment project relies on. The plugins can be added to any Ansible project by simply cloning this repository and setting up the ansible.cfg file to point at them as additional plugins for your project.