2889 Commits

Author SHA1 Message Date
25f7fb1702 Update .gitreview for stable/zed
Change-Id: Ib8b8d03bd12f18966bfac3e9e4e95bd2f628247a
2022-11-04 02:58:54 +00:00
rabi
93bc07799c Remove inspector client usage
This is not used anymore and py37/38 jobs are broken as it's
not in requierements. Not sure what was installing it earlier.

Closes-Bug: #1995566
Change-Id: I42694d4042574eb1adeb84b66eef637f7f5178a3
(cherry picked from commit aa47e5499cc3d2d84e6317835df9bf49925abd5d)
2022-11-04 02:56:52 +00:00
Zuul
d2323bb1e6 Merge "Add tripleo-external-compute-deployment-pipeline to tripleo-ansible" 5.0.0 2022-10-28 18:53:55 +00:00
Zuul
82f62b7984 Merge "Drop variables for legacy networking" 2022-10-27 21:54:15 +00:00
Zuul
cc11d9eba8 Merge "Stop installing net-snmp" 2022-10-27 21:54:12 +00:00
Zuul
875545098e Merge "tripleo_sshd: Install systemd for local molecule testing" 2022-10-27 10:32:41 +00:00
Zuul
c6406a51c0 Merge "Designate: allow enabling bind query logging" 2022-10-27 10:25:14 +00:00
Chandan Kumar (raukadah)
3154392bfa Add tripleo-external-compute-deployment-pipeline to tripleo-ansible
In order to test compute deployment using standalone ansible
roles, https://review.opendev.org/c/openstack/tripleo-ci/+/843836
adds the jobs definition and template for the same.

These will run against tripleo-ansible changes.

Depends-On: https://review.opendev.org/c/openstack/tripleo-ci/+/843836
Depends-On: https://review.opendev.org/c/openstack/tripleo-ansible/+/840509

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: Id92303283287c140211a63a2c9447447685372e5
2022-10-27 03:06:56 +00:00
Zuul
1e93ef752e Merge "Add docs for standalone roles and playbooks" 2022-10-26 14:14:45 +00:00
Zuul
491227004d Merge "tripleo_compute_node: add for standalone roles" 2022-10-26 14:14:42 +00:00
Zuul
1502aa40e6 Merge "Add initial standalone playbooks and inventory for a compute node" 2022-10-26 13:32:17 +00:00
James Slagle
61d65c76a6 tripleo_compute_node: add for standalone roles
The tripleo_compute_node is a "meta" role that imports the compute node
standalone playbooks for the purposes of molecule testing. The molecule
default scenario executes the standalone playbooks against a podman in
podman container with systemd as the process, in order to simulate a
compute node.

Change-Id: I14408ad4d2e4fb4ae265a105af18a876158200dc
Signed-off-by: James Slagle <jslagle@redhat.com>
2022-10-24 20:28:36 -04:00
James Slagle
1f2771c7f1 Add initial standalone playbooks and inventory for a compute node
Initial playbooks and inventory directory for deploying a compute node
with only tripleo-ansible. The playbooks will also be consumed from
tripleo-heat-templates when possible, but the primary interface is
entirely ansible-playbook with an inventory and optionally variable
files.

Depends-On: I36fee8e79f71204f3126208d416e8df47a1f6bf8
Change-Id: I96412f44193613d32a8752e8ecfec9324b4fd0fb
Signed-off-by: James Slagle <jslagle@redhat.com>
2022-10-24 20:28:13 -04:00
Brendan Shephard
7a64ce5e87 Add standalone ovn-controller role
This change adds a new playbook to configure OVS
for use with ML2/OVN.
This will allow us to leverage Ansible instead of
puppet-vswitch and puppet-ovn on Compute nodes.
Note that this task is currently only targeting
Compute nodes. Controllers would require additional
work to render config files and configure the
DBS bundle + northd.

Change-Id: I36fee8e79f71204f3126208d416e8df47a1f6bf8
2022-10-24 20:12:55 -04:00
Zuul
2197cefa94 Merge "tripleo_nova_libvirt: make pid ns configurable" 2022-10-24 19:13:41 +00:00
Zuul
d7b6c6bc2b Merge "tripleo_iscsid: update for standalone roles" 2022-10-24 16:54:25 +00:00
James Slagle
e0372d0a16 tripleo_nova_libvirt: make pid ns configurable
Makes the pid namespace configurable for libvirtd containers that use
pid:host. This needs to be configurable for molecule testing when
running podman in podman. Otherwise, pid=host should be used.

Signed-off-by: James Slagle <jslagle@redhat.com>
Change-Id: Ife340f467e5454b588a1c76c8f73858d0c550537
2022-10-20 16:09:05 -04:00
Zuul
9e6be93e2a Merge "Add tripleo_etcd ansible role" 2022-10-20 18:57:55 +00:00
James Slagle
64c3223ea5 tripleo_sshd: Install systemd for local molecule testing
Running the molecule tests locally uses the centos/centos:stream9
images, which does not have systemd installed by default. This patch
adds systemd to the list of packages to install when creating the
container for the molecule default scenario.

This wasn't failing in upstream CI, b/c ubi-9/ubi-init:latest does have
systemd installed by default.

Change-Id: I96643e76f89c4a9b9e556c6ca64517f4f912ba8e
Signed-off-by: James Slagle <jslagle@redhat.com>
2022-10-20 14:41:41 -04:00
Zuul
f9cb69399b Merge "Split tripleo_nftables tasks" 2022-10-20 15:56:31 +00:00
Zuul
3f5ae73320 Merge "tripleo_logrotate_crond: add for standalone roles" 2022-10-20 15:56:28 +00:00
katarimanoj
22505820de Add tripleo_etcd ansible role
currently used puppet-etcd is not a openstack repo, so the
process of updating etcd configuation is complex and time taking.

This patch will introduce a ansible role 'tripleo_etcd' which
replaces puppet-etcd.
This new role generates the etcd configuration based on latest
etcd V3.4

Change-Id: Ia3cf58512c35cd1c2501c606df6fc0f4e4438120
2022-10-20 11:05:53 +05:30
Zuul
3bed0b37e8 Merge "Add observability_data_only condition to node-exporter component" 2022-10-19 16:25:14 +00:00
James Slagle
f95668bd8e tripleo_logrotate_crond: add for standalone roles
Adds the new tripleo_logrotate_crond role.

Change-Id: I9b8c09ad69bef16d0ef187b67bfa39e1baa6cf27
Signed-off-by: James Slagle <jslagle@redhat.com>
2022-10-19 10:43:17 -04:00
Cédric Jeanneret
729afeb448 Split tripleo_nftables tasks
It will make integration into standalone playbooks easier. We also keep
the "main" for backward compatibility reasons.

We also take the opportunity to empty nftables if we're moving from
iptables to nftables; this ensure nothing will interfer.

This action is only done if we switch the firewall engine, meaning,
mostly, during a fresh deploy, or an upgrade. If it happens during an
upgrade, the services using the firewall will already be shut down,
therefore there won't be any weird behavior.

Note: this patch also changes the file extension to match molecule need
to get only .yml, not .yaml. Since the "cleanup.yml" is called in
different places in molecule, this patch must update multiple places at
once.

Change-Id: I761bcf06b01e7890182ec610ca4345c1ecb5707b
2022-10-19 14:29:17 +02:00
Zuul
6a57f8885c Merge "Improved way of detecting Galera cluster is up&running" 2022-10-18 11:33:43 +00:00
Zuul
d4b17bd618 Merge "Update tripleo_nova_libvirt to virsh-secret define for ceph" 2022-10-18 02:41:46 +00:00
Zuul
ddd78b6ff8 Merge "tripleo_timezone: update for standalone roles" 2022-10-17 18:11:25 +00:00
Zuul
3a5f709f9f Merge "Template RBD Multi Config map correctly in tripleo_nova_compute" 2022-10-17 17:36:54 +00:00
jlarriba
dc4e574ba1 Improved way of detecting Galera cluster is up&running
There is a script in every node that checks correctly if the
Galera node has been correctly re-introduced in the cluster
as the previous check on the local port open had some
disadvantages, and does not wait for IST to complete.

Change-Id: Id49274f5bade4af5b88b6354cfa092e4b041eb6e
2022-10-17 14:20:11 +02:00
Zuul
13e9c80897 Merge "Drop role_name option from tripleo_ovn_mac_addresses" 2022-10-17 04:55:31 +00:00
James Slagle
6f723f43ca Add docs for standalone roles and playbooks
Add design and development docs on how to use the standalone roles and
playbooks.

Document naming rules for standalone role vars, provide examples
and a helper script as the best effort.

Co-authored-by: Bogdan Dobrelya <bdobreli@redhat.com>
Co-authored-by: Chandan Kumar <chkumar@redhat.com>
Depends-On: I14408ad4d2e4fb4ae265a105af18a876158200dc
Change-Id: Ibb585a608c1f8f8192e169b449606a9acb16d338
Signed-off-by: James Slagle <jslagle@redhat.com>
2022-10-14 16:04:31 -04:00
James Slagle
ab8604d06a tripleo_iscsid: update for standalone roles
Renames iscsid_install.yaml to install.yml for consistency with
other roles, adds a configure.yml, and renames iscsid.yaml to run.yml.

Since tripleo-heat-templates was already updated to use this role in
e3408da15cbaa070d8d3725dbdece3183cb928b1, symlinks are added for the old
task file names until tripleo-heat-templates is updated.

Also disables managing the service when in check mode, since the needed
registered result would not be available.

Depends-On: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/859999
Change-Id: I64a8541e4388c88d1f3384666eb071c898a9b770
Signed-off-by: James Slagle <jslagle@redhat.com>
2022-10-14 14:36:24 -04:00
Zuul
1dca85680f Merge "tripleo_nova_compute: add for standalone roles" 2022-10-14 17:24:17 +00:00
Zuul
02125ce978 Merge "Support standalone variable names in tripleo_ceph_client" 2022-10-13 17:39:11 +00:00
Zuul
60708af5e5 Merge "tripleo_sshd: update for standalone roles" 2022-10-13 16:20:26 +00:00
Cédric Jeanneret
1a4dbdd1e2 We can load the iptables compat everytime
While nftables doesn't have any rule de-duplication capabilities, it
doesn't re-create existing chains.

If rules already exist in the "iptables compat layout", reloading the
chains won't drop anything.

Before this patch, if an operator fluches the nftables content (`nft
flush ruleset'), there was a need to manually remove
/etc/nftables/iptables.nft, so that tripleo_nftables could recreate
it, detect its changed state, and load it in nftables.

With this patch, if an operator runs `nft flush ruleset', re-running
the deploy will just re-inject the needed content without any issue.

It also takes care of a misleading comment and task name that were left
untouched after a strategy change. It should therefore be clearer for
future maintenance.

Change-Id: I3d03d7abfd009b724856e6b621867e48e5fafee7
2022-10-13 05:51:19 +00:00
John Fulton
0d10e97f34 Template RBD Multi Config map correctly in tripleo_nova_compute
Update tripleo_nova_compute role's jinja2 template to handle
dictionary structure for tripleo_cinder_rbd_multi_config, and
similar, as found in the tripleo_nova_libvirt role.

Change-Id: Ie0800811b63205e327aa8e568c33ac8b829555e7
2022-10-12 17:03:54 +00:00
Brent Eagles
c4976f234a Designate: allow enabling bind query logging
Parameterize enabling dns query logging.

Change-Id: If410e4a5ceaf09991fbd3da58b084a7f0df9dc31
2022-10-11 15:20:39 -02:30
Zuul
ab8d598a0d Merge "Remove task to delete overcloud stack" 2022-10-11 11:00:07 +00:00
Francesco Pantano
2754275ef0 Add observability_data_only condition to node-exporter component
There are use cases where we'd like to take advantage of the unified
monitoring model in openstack, and the ceph cluster should provide a
set of deployed node exporters, but leave the data collection job to
a different component.
This patch introduces a new condition to allow a partial deployment
of the ceph monitoring stack: only node-exporter(s) are deployed
everywhere, but prometheus/grafana/alertmanager are skipped.

Change-Id: Ia1723394dae5ed03e50f2a236eb808f234e63331
2022-10-11 08:20:12 +00:00
Zuul
89d5d9d1c3 Merge "Enable network configuration using ansible by default" 2022-10-11 05:40:42 +00:00
John Fulton
c15abb9b95 Support standalone variable names in tripleo_ceph_client
Update default variable handling in tripleo_ceph_client role.
If a variable name used in standalone Ansible roles, like
tripleo_nova_libvirt is used, then tripleo_ceph_client will
support that variable. The following substitutions are now
suported:

  tripleo_ceph_client_cluster | tripleo_ceph_cluster_name
  tripleo_ceph_client_fsid    | tripleo_ceph_cluster_fsid
  tripleo_ceph_client_keys    | tripleo_ceph_cluster_keys

Also update multiple_external_ceph_clusters.yml so that it
can handle if each 'multiple' item contained in the variable
tripleo_ceph_cluster_multi_config has a "tripleo_ceph_cluster_"
prefix as above. These changes let the role remain backwards
compatible with supported examples in older versions but also
allow the new conventions to be used.

Change-Id: If3f2fde6a40fe3e72b16eee2d93d01aeb773966a
2022-10-10 12:43:55 +00:00
rabi
8ba49d1a6d Remove task to delete overcloud stack
From wallaby we use ephemeral heat and there is no plan to
support upgrade from train to zed. This would remove the
unecessary usage of ansible-collections-openstack.

Change-Id: I67a4623370e66ec486e61ca5eaa2fb33baa8950a
2022-10-10 10:13:56 +05:30
James Slagle
dc00ba7b9b tripleo_timezone: update for standalone roles
Refactors the role into separate configure.yml and run.yml task
files so that the tasks can be run separately. main.yml includes both
new task files for backwards compatibility.

Change-Id: I48c86a62d897eb3c77935600905d72f256b6b99a
Signed-off-by: James Slagle <jslagle@redhat.com>
2022-10-06 14:58:22 -04:00
Bogdan Dobrelya
1917e9e192 tripleo_nova_compute: add for standalone roles
Co-Authored-By: James Slagle <jslagle@redhat.com>
Change-Id: I69b135fd76883498d01e51851a337970a7987454
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2022-10-06 09:30:26 -04:00
Zuul
a895c7ee94 Merge "Clean tripleo_iptables related resources" 2022-10-06 13:27:27 +00:00
Zuul
a6a0338856 Merge "Add template file for bonding + controller node without external net" 2022-10-06 08:53:15 +00:00
Zuul
ffe7f69188 Merge "Derive parameters clean up" 2022-10-06 03:25:04 +00:00
Jaganathan Palanisamy
9fe9f2ee60 Derive parameters clean up
This change is to remove derive parameters code
for OvS DPDK, SRIOV and HCI Parameters.

Change-Id: Iface80568fe3f9db3fa9fbe859eedf73f861e55b
2022-10-04 13:01:32 +05:30