314 Commits

Author SHA1 Message Date
Sagi Shnaidman
aa4161ee03 Use executable for podman container from params
till now execultable parameter was ignored, use it for creating
podman commands.
Change-Id: I3a7424950c165e63767edcc0e921ce486f4f0c73
2019-10-11 14:35:22 +03:00
Zuul
6983cca5fa Merge "Update config to support RHEL/CENT8" 2019-10-10 22:44:49 +00:00
Emilien Macchi
27ef0a279a Remove leftovers for podman-image*
The modules don't live here anymore, we missed to removed the rst.

Change-Id: I92f8a4aabb1642d7f454cbeb5258e045a330fdb4
2019-10-10 08:45:39 -04:00
Zuul
acf5d749b3 Merge "Remove readme files within the roles" 2019-10-10 10:26:20 +00:00
Zuul
370508d7c9 Merge "Add a playbook for the "openstack overcloud delete" CLI Command" 2019-10-10 01:40:57 +00:00
Emilien Macchi
ded2a17538 podman_container: only add --volume if item not empty
Make sure the item in the list of volumes isn't empty or we can end up
with a user error where the item is '' and podman will crash with:

"host directory can not be empty"

Note that I hit that since we have some conditional volumes in THT,
where sometimes we get '' in the list of volumes. Let's handle this
case.

Change-Id: I8df1fb5d1bb72bd492e9f8e2b29dc6dae09d6b44
2019-10-09 13:41:29 -04:00
Kevin Carter
9c7f558684
Update config to support RHEL/CENT8
This change updates our bindep configurations and local test runner
to ensure it works with RHEL/CENT8.

Change-Id: I5585fa8b6e2094132596073e6c441267a18aea90
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2019-10-09 11:02:59 -05:00
Dougal Matthews
8bae3481ed Add a playbook for the "openstack overcloud delete" CLI Command
This playbook encapsulated the logic that Mistral provides for the
overcloud delete CLI command. Replacing the following two workflows

- tripleo.plan_management.v1.delete_deployment_plan
- tripleo.deployment.v1.undeploy_plan

Related-Bug: #1835242
Related-Bug: #1835246
Related-Bug: #1835232

Co-Authored-By: Kevin Carter <kecarter@redhat.com>
Co-Authored-By: Luke Short <lshort@redhat.com>
Change-Id: I38d9535d9b71fca93eb34d2018355c0f8c8fa8fd
2019-10-09 10:02:11 +01:00
Emilien Macchi
7fa3b4ebae podman_container: command now accepts lists
If the command is in this format ['bash', '-c', 'ls'], it'll now work.
Before only 'bash -c ls' would work.
It's for compatibility with how THT generates container config.

Change-Id: Ib8e943f92b85adcde86d814268a97369b4317ec3
2019-10-08 14:22:58 -04:00
Zuul
d4fdccde40 Merge "Revert "scenario010 nonvoting"" 2019-10-08 18:02:08 +00:00
Zuul
59356ff21c Merge "Optional flag file for tripleo-transfer to prevent overwriting" 2019-10-08 15:39:32 +00:00
Kevin Carter
f03d7be447
Remove readme files within the roles
The readme files are unnessesary, and unused. All of the role documentation
is generated as part of the tripleo-ansible docs. Because these files are
generally neglected the documentation they provide is at best missing
information and at worst incorrect. This change removes all of the role
readme files and ensures our role generation process no longer creates
the file.

Change-Id: I030d7f9ef54250cef4019d40366febe899f37bd9
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2019-10-08 07:48:22 -05:00
wes hayutin
11a2d3464a Revert "scenario010 nonvoting"
This reverts commit 8f03993add413bbf06348b1df6ea64cc8e72cd65.

Change-Id: I774e8a7617d72d725ebbc1e2017315bc5a3f7b47
2019-10-08 01:04:43 +00:00
Zuul
635a78401f Merge "Fix port info lookup parsing" 2019-10-08 00:43:02 +00:00
Jiri Stransky
0105ee256a Optional flag file for tripleo-transfer to prevent overwriting
When using tripleo-transfer role, optionally a file will be created at
a path specified by tripleo_tranfer_flag_file variable (if set). The
transfer will be prevented in case the file already exists. This is to
ensure the data transfer happens only once and the data is not
overwritten by accident.

Additionally, the README.md file from the tripleo-transfer role is
removed because tripleo-ansible docs are generated by molecule and
this file is not used there.

Change-Id: I3a08949436dcb634df34622c9aeead552dd38443
2019-10-07 15:26:43 +02:00
Kevin Carter
430e3483a0
Use dynamic argument_spec from documentation
This change modifies the argument_spec making it so we load the options
key from the documentation constant. This will reduce the code we have
to maintain and ensure our documentation is always in sync with the
module capabilities.

Change-Id: Ib3e56f94debd6e99d9319902517811cf77ecc874
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2019-10-07 08:23:53 -05:00
Brent Eagles
5871aa63d8 Fix port info lookup parsing
The output format for "openstack port show" has changed breaking the
octavia deployment ansible. This patch changes the output format to json
and uses json_query to parse out the results.

Closes-Bug: #1846399
Change-Id: I3b5c989259fd4347c41d392ad79bfd6b9459d605
2019-10-07 12:32:10 +00:00
Sagi Shnaidman
ea76fb87b9 Change parameters processing to class based
Also change parameters to what they should be according to podman
specs. Add defaults for booleans in description. Improve module
docs and other stuff.
Change-Id: Id6e85099d6867eb873aa3bcefc1148e081812f68
2019-10-07 02:21:13 +03:00
Zuul
b43eb5341d Merge "paunch: add support for 'cleanup'" 2019-10-06 05:02:02 +00:00
Zuul
fc9dd7fbc7 Merge "podman_container: add log_driver support" 2019-10-06 05:02:01 +00:00
Emilien Macchi
7990965d2e podman_container: add log_driver support
Change-Id: Ifd6d13e9492782b73e727cc0cceb8e59618415e6
2019-10-05 13:27:37 +03:00
Zuul
6a071f4e56 Merge "podman_container: move ulimit into a list" 2019-10-04 23:35:28 +00:00
Zuul
38a8033f89 Merge "podman_container: fix some booleans" 2019-10-04 23:34:45 +00:00
Zuul
040c32613f Merge "Add podman_volume_info ansible module" 2019-10-04 23:34:44 +00:00
Zuul
d8d6848089 Merge "Set calling_ansible_environment_variables after preset vars" 2019-10-04 18:34:56 +00:00
Zuul
b35f17aa38 Merge "Add podman_container module" 2019-10-04 18:24:24 +00:00
Emilien Macchi
fdb5c22b1a podman_container: move ulimit into a list
Change-Id: Ibb8f72687c4a33079a6b86b1713edd90a6e02ef2
2019-10-04 15:55:38 +00:00
Zuul
1e5bfad885 Merge "Remove podman_image*" 2019-10-04 15:18:15 +00:00
Zuul
1c449e1012 Merge "Add missing [] around all_nodes_extra_map_data" 2019-10-04 15:18:14 +00:00
Emilien Macchi
8ee136a0e8 podman_container: fix some booleans
Change-Id: I29dcda532638f36503b101a016a766fd1b08c772
2019-10-04 10:57:52 -04:00
Zuul
94fb9217ad Merge "Remove modules that have been up-streamed" 2019-10-03 23:30:42 +00:00
Zuul
10bf1f2370 Merge "Add podman_container_info" 2019-10-03 22:39:39 +00:00
James Slagle
47a055558d Set calling_ansible_environment_variables after preset vars
This patch moves calling_ansible_environment_variables after the preset
vars when constructing the ansible-playbook commands for ceph-ansible.

This makes it so that variables set on the command line take precedence
over what is set by these roles. For example, setting a customer
ANSIBLE_CONFIG on the command line would now have that value passed to
the ansible-playbook commands used for ceph-ansible, when previously it
would have been overridden as {{ playbook_dir }}/ansible.cfg.

Change-Id: I2a91ca1aa91d91f6f525f2fba0b093c7ec216e1d
2019-10-03 17:00:56 -04:00
Zuul
ff3dc80f91 Merge "Exclude database controllers path only if they are a controller node." 2019-10-03 20:04:27 +00:00
Zuul
ef1a5cd730 Merge "Fix launchpad tracker in README.rst" 2019-10-03 19:51:38 +00:00
Zuul
8b9097330e Merge "Handle empty cert related hostvar info" 2019-10-03 19:51:37 +00:00
Zuul
c07fe18626 Merge "Only use the network service for EL 7." 2019-10-03 19:51:36 +00:00
Sagi Shnaidman
aac956ec81 Add podman_container module
Add module for managing podman containers on host
Change-Id: I8801ae9096855a9ea836755b6bfd3d7ead1f5d06
2019-10-03 19:40:14 +00:00
James Slagle
1711c432d7 Add missing [] around all_nodes_extra_map_data
The value from all_nodes_extra_map_data must be a list so it can be
concatenated with the existing services data.

It appears the extra [] was accidentally dropped in a previous commit:
eb5bfcf187bbcaea3f0549a014650a168a3de1b6

Change-Id: I0d7778c7907fcb87aa9b1b6d9e33a1c430cbf025
2019-10-03 13:55:55 -04:00
Emilien Macchi
e07c3ec7c4 Remove podman_image*
They are now upstream in Ansible 2.8.1, we can consume them.

c2be342ce1 (diff-465791fc147c1fb02e3e3d2a1ff125a6)

Change-Id: I47ccd80c74cca3d36d18313b9d2f87573912ecaa
2019-10-03 12:20:15 +00:00
Brent Eagles
2cbe99b429 Handle empty cert related hostvar info
When certificates are neither generated nor provided (e.g. on update)
related variables would be empty or undefined and need to be handled
accordingly.

Closes-Bug: #1845366
Change-Id: I361c90e438e79e180e2a745da82e619347fed13e
2019-10-02 19:48:38 +00:00
Emilien Macchi
8c5bfeb0a1 Add podman_container_info
A new module to gather facts from podman containers running on a host.
This will allow to know informations about containers running with
podman on a host. The module allows to gather all containers info or for
a specific one, or a list.

Change-Id: I33595d19cebf6508008792bc08c1bf0a192db128
2019-10-02 19:46:28 +00:00
Wes Hayutin
8f03993add scenario010 nonvoting
Change-Id: I277c42a2ca5fecb1a25b2c1c87e0c9eb9df63f9c
Related-Change: https://review.opendev.org/#/c/686258
2019-10-02 13:39:47 -06:00
Arx Cruz
964fa4ddef Only use the network service for EL 7.
EL 8 and Fedora rely on NetworkManager.

Change-Id: I0b899dbdb0e973ebef369bb0325f19fc35c03b9c
2019-10-02 21:22:38 +02:00
Sagi Shnaidman
f94a02fd0d Add podman_volume_info ansible module
Gather info about podman volumes on the host.

Change-Id: Ie8251732aa34dee9361816eedc4084c73f99663e
2019-10-02 21:13:40 +03:00
Zuul
db3e33380d Merge "remove unessisary blocks" 2019-10-01 00:47:55 +00:00
Carlos Camacho
bec9cf1fa1 Fix launchpad tracker in README.rst
Very simple NIT fix, the link for the
launchpd tracker is broken.

Change-Id: I9bee767608fa78890b41dac2e48ce3732281861f
2019-09-29 10:08:38 +02:00
Carlos Camacho
50098bc1b6 Exclude database controllers path only if they are a controller node.
We found that by mistake we are excluding the controllers
path in the Undercloud node.

This patch makes sure we exclude the path only if its
a controller node (the node has galera and mysql).

Change-Id: I331d89ebf07eb56870a84330ff7ad2de629913bf
2019-09-26 11:40:15 +02:00
Emilien Macchi
d72c84567e paunch: add support for 'cleanup'
- Make self.config optional
- Make self.config_id a list
- Remove useless self.module.check_mode condition (we never reach it)
- Add paunch_cleanup(), calling paunch.cleanup directly

Note: the cleanup has no stdout/stderr/rc for now; it's not implemented
on the paunch side.

Example of playbook:

- name: Cleanup containers for step 1 and step 2
  paunch:
    config_id:
      - tripleo_step1
      - tripleo_step2
    action: cleanup

Change-Id: Ib9ebc64b69ad778fa29132c9079ba04a0adbd2b4
2019-09-25 18:42:52 -05:00
Zuul
b4cc69276c Merge "Open ipv6-icmp traffic by default" 2019-09-25 21:15:53 +00:00