Generate an ansible inventory from neutron resource
information when network port management is enabled
in the overcloud node provision cli workflow.
Partial-Implements: blueprint network-data-v2-ports
Depends-On: https://review.opendev.org/771291
Depends-On: https://review.opendev.org/771292
Change-Id: I7737f9fc5104b769ef78b76e20a019cc1dafba8f
This is intended to be used by tripleo_metrics_qdr and
tripleo_collectd.
The filter will convert from THTCamelCase to ansible_snake_case
Change-Id: Iec74b239cbcebaeb6c5f5736e3696e013b697c76
Co-authored-by: Chris Sibbitt <csibbitt@redhat.com>
This changes adds an additional task to make sure the
output of the useradd module is consistent when the
HOME dir for a given user is created.
In particular this tasks ensure the HOME dir has the
right owner/group associated to the user that has been
created.
Closes-Bug: #1917856
Change-Id: I64846594123b9d5f333082b3f7714186713caffb
Adds a module tripleo_service_vip which manages
a neutron API port resource for service virtuap IPs.
(redis and ovn_dbs) when neutron service is available.
When the service network is 'ctlplane' the module does
a find_port for the controlplane_virtual_ip so that the
ctlplane VIP is used in this case.
When the neutron service is not available the module
looks for a pre-defined ip address in the fixed_ips
option. If present this address is used, if not present
an exception is raised.
The module updates the 'service_vip_vars.yaml' file in
the playbook directory so that include_vars can be used
to load the variables.
The change also updates action/tripleo_all_nodes_data.py
and tripleo_hieradata templates to use the new variable
to source the service virtual IPs for redis and ovn_dbs
services.
Related: blueprint network-data-v2-ports
Depends-On: https://review.opendev.org/777252
Change-Id: I6b2ae7388f8af15f2fd3dcbc5e671c169700fff6
ceph-ansible still requires that all the facts be collected by default
and inject fact vars is enabled. We want to turn that off for tripleo,
but in the mean time we need to force it back on when in run ansible for
ceph.
Change-Id: I607c29c45148b57dee34741397cf7a16ced8ef78
Related-Bug: #1915761
Related-Bug: #1917621
We no longer have swift on the undercloud so this task no longer needs
to exist. With it here we're unable to delete an overcloud via the CLI.
Change-Id: I20bb3ea3b65c42638f81363afeb84dc3e9aa1764
Signed-off-by: Kevin Carter <kecarter@redhat.com>
When running fetch with become, the slurp module will also
be used to fetch the contents of the file for determining
the remote checksum. This effectively doubles the transfer
size [0] and shows up as a MemoryError when the file size
is large enough.
In TripleO this is problematic in large & old deployments
when transferring the /var/lib/mysql folder.
This patch switches to using rsync directly between the src
and dst hosts to transfer the data. This is advantageous not
only for solving the above-mentioned bug, but is also faster.
A simpler implementation using synchronize was attempted [1],
but there were issues with the mistral container which
prevented that approach from being successful.
[0] https://docs.ansible.com/ansible/latest/collections/ansible/builtin/fetch_module.html#notes
[1] https://review.opendev.org/c/openstack/tripleo-ansible/+/776565/11
Closes-Bug: #1908425
Closes-Bug: rhbz#1904681
Closes-Bug: rhbz#1916162
Depends-On: https://review.opendev.org/778456
Change-Id: Ifc03f9eb1cb4ca3faec194569f4cb2dace93323f
When Ceph is deployed by TripleO but no services using
it are explicitly enabled in TripleO, an empty pool list
if generated (for the same reason), and the osd caps
results in an empty string, turning the cluster in a
non healthy status.
This patch introduces two new tasks to selectively create
osd caps when profiles >= 0.
Closes-Bug: #1917440
Change-Id: Id165c19121c9036a33b10d6b6d51f3bdc528307b
A change in the desired public key was not being reflected in the
Overcloud on stack update/upgrade. TripleO should replace the keypair
even when the desired public key changed, i.e. its fingerprint does not
match the one (possibly) already existing in the overcloud. We should
compare fingerprints and replace (delete and create, no keypair update
option) when they mismatch.
Closes-Bug: #1861031
Change-Id: I953c35c9ec24844598108bc173e84868393a98aa
The current driver is podman which creates problems when we
try to use the synchronize module for the file copy between
hosts. To make room for this option, we switch to using the
delegated driver and two inventory hosts (which are localhost)
instead which is more efficient, more portable and opens more
options.
We also add 'any_errors_fatal: true' to the play
arguments to ensure that any error stops the whole test.
The converge playbook is targeted at localhost, rather than
all instances, because that is the way that the role being
tested is used in TripleO.
Related-Bug: #1908425
Related-Bug: rhbz#1904681
Related-Bug: rhbz#1916162
Change-Id: I4d5049ef863c5685b1d817a865a8a44c4429480c
- Each playbook is now in charged of a single main task: Setup NFS,
Setup ReaR and Backup.
- prepare-nfs-backup.yaml was added to support the installation and
configuration of the backup node.
- prepare-undercloud-backup.yaml and prepare-overcloud-backup.yaml
were modified to support the ReaR installation and configuration.
- cli-undercloud-backup.yaml and cli-overcloud-backup.yaml were modified
to support the backup of each node. "tags" property was removed to
avoid tagging the whole role. "connection" property was removed to
avoid running against localhost because tripleo_target_host is
not defined.
Bugzilla: #1824806
Change-Id: Id515d06ebceec58db84eef313ca1375bb802282d
Since we're still provisioning the Ceph cluster at step2 we need
to call the cephadm playbook the same way as ceph-ansible.
The purpose of this role is to be able to run the cephadm playbook
using external_deploy_steps_tasks.
The actions implemented in this role are:
1. prepare: build a cephadm dir within the config-download dump
2. enable_ceph_admin_user via cli-enable-ssh-admin.yaml playbook
3. translates the tht paramters and make them available to the role
4. call the ansible playbook that runs cephadm and apply the spec
Change-Id: If066dd19f1e9c75fd6581fddb5b55cb37eb57809
The task is called PauseXXXX and it realy does the opposite,
this name set the name properly to unPause
Change-Id: Ice9482c635d104c30f1f44e92475dc517a7fd527
In order to ANSIBLE_INJECT_FACT_VARS=False we have to use ansible_facts
instead of ansible_* vars. This change switches our distribution and
hostname related items to use ansible_facts instead.
Change-Id: Id01e754f0cf9f6e98c02f45a4011f3d6f59f80a1
Related-Bug: #1915761
This role is provided as part of the implementation of the
tripleo-ceph spec. It is an Ansible wrapper to call the
cephadm Ceph tool and it contains the Ansible modules
ceph_key and ceph_pool from ceph-ansible for managing
cephx keys and ceph pools.
Implements: blueprint tripleo-ceph
Change-Id: I60d6857b888ef97242c4f4bbf20fbc62de5ef29f
Extend FRR configuration to set source IPv6 address, similar to
Change-Id I43852cb3570b8cb12a35f4bc641a42ddfd8ad7f1 for IPv4.
Change-Id: I0b4e3762aea3e25398e82be9f9be3adcc38ee685