Add new metadata keys to the validation playbooks

This patch adds two new metadata keys to the validation playbooks:
- categories: A list of technical tags
- products: A list of targeted products (here mainly TripleO)

This patch is also part of the Validation Metadata Evolution for the
Validations Framework.

Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
Change-Id: I80c6b0ffb07b6311f13d7a3b83031317cd0d38de
(cherry picked from commit 39a846ca6b)
This commit is contained in:
Gael Chamoulaud (Strider) 2021-06-16 15:17:54 +02:00
parent 23a2ec2164
commit 9b853e6b82
No known key found for this signature in database
GPG Key ID: 4119D0305C651D66
57 changed files with 402 additions and 4 deletions

View File

@ -8,6 +8,11 @@
groups:
- pre-deployment
- pre-ceph
categories:
- storage
products:
- tripleo
- ceph
fail_without_deps: true
tripleo_delegate_to: "{{ groups['allovercloud'] | default([]) }}"
packages:

View File

@ -10,6 +10,11 @@
- backup-and-restore
- post-deployment
- post-ceph
categories:
- storage
products:
- tripleo
- ceph
tripleo_delegate_to: "{{ groups['ceph_mon'] | default([]) }}"
osd_percentage_min: 0
tasks:

View File

@ -15,6 +15,11 @@
is running but before the pools are created to realize the deployment
will fail.
groups: []
categories:
- storage
products:
- tripleo
- ceph
tasks:
- include_role:
name: ceph

View File

@ -8,6 +8,10 @@
Make sure before update we do not have any dangling images.
groups:
- pre-update
categories:
- container
products:
- tripleo
check_for_dangling_images_debug: false
roles:
- check_for_dangling_images

View File

@ -9,5 +9,11 @@
el8 is in kernel (uname -r) version string
groups:
- post-deployment
categories:
- os
- kernel
- system
products:
- tripleo
roles:
- check_kernel_version

View File

@ -8,5 +8,10 @@
verify that the gateway exists and is reachable.
groups:
- pre-introspection
categories:
- networking
- undercloud-config
products:
- tripleo
roles:
- check_network_gateway

View File

@ -11,6 +11,14 @@
groups:
- pre-undercloud-upgrade
- pre-overcloud-upgrade
categories:
- rhel
- os
- system
- subscription_management
products:
- tripleo
- rhsm
check_rhsm_version_debug: false
roles:
- check_rhsm_version

View File

@ -9,6 +9,11 @@
points to the right UC hostname
groups:
- pre-overcloud-upgrade
categories:
- container
- undercloud-config
products:
- tripleo
check_uc_hostname_debug: false
roles:
- check_uc_hostname

View File

@ -5,11 +5,15 @@
name: Verify undercloud.conf correctness
description: |
This validation verifies that no deprecated, invalid or
incompatible parameters are being passwed in the Undercloud's
incompatible parameters are being passed in the Undercloud's
undercloud.conf configuration file.
groups:
- prep
- pre-undercloud-upgrade
categories:
- undercloud-config
products:
- tripleo
check_undercloud_conf_debug: false
roles:
- check_undercloud_conf

View File

@ -9,5 +9,12 @@
groups:
- pre-deployment
- pre-upgrade
categories:
- compute
- baremetal
- provisioning
- undercloud
products:
- tripleo
roles:
- collect_flavors_and_verify_profiles

View File

@ -25,6 +25,16 @@
- pre-update-prepare
- pre-update-run
- pre-update-converge
categories:
- os
- kernel
- system
- tsx
products:
- tripleo
- rhel
- centos
- intel
compute_tsx_debug: false
compute_tsx_warning: false
roles:

View File

@ -11,5 +11,12 @@
- pre-update
- post-deployment
- post-upgrade
categories:
- container
- undercloud
- overcloud
- undercloud-config
products:
- tripleo
roles:
- container_status

View File

@ -10,6 +10,13 @@
undercloud and overcloud controller after deployment.
groups:
- post-deployment
categories:
- keystone
- identity
- undercloud
- controller
products:
- tripleo
keystone_conf_file: "/var/lib/config-data/puppet-generated/keystone/etc/keystone/keystone.conf"
roles:
- controller_token

View File

@ -7,6 +7,14 @@
This will check the ulimits of each controller.
groups:
- post-deployment
categories:
- os
- system
- resources
- overcloud
- controller
products:
- tripleo
nofiles_min: 1024
nproc_min: 2048
roles:

View File

@ -8,6 +8,12 @@
`dhcp_end` fields in `undercloud.conf` is not too low.
groups:
- pre-introspection
categories:
- networking
- dhcp
- undercloud
products:
- tripleo
ctlplane_iprange_min_size: 20
roles:
- ctlplane_ip_range

View File

@ -8,5 +8,12 @@
add up.
groups:
- pre-deployment
categories:
- compute
- roles
- baremetal
- undercloud
products:
- tripleo
roles:
- default_node_count

View File

@ -12,6 +12,14 @@
interface specified in ironic-inspector.conf.
groups:
- pre-introspection
categories:
- networking
- dhcp
- dnsmasq
- undercloud
- baremetal
products:
- tripleo
tasks:
- include_role:
name: dhcp_validations

View File

@ -13,6 +13,13 @@
are any.
groups:
- pre-deployment
categories:
- networking
- dhcp
- undercloud
- undercloud-config
products:
- tripleo
tasks:
- include_role:
name: dhcp_validations

View File

@ -10,5 +10,13 @@
daemon is not operational.
groups:
- post-deployment
categories:
- container
- frrouting
- iprouting
- undercloud
- overcloud
products:
- tripleo
roles:
- frr_status

View File

@ -8,6 +8,16 @@
groups:
- backup-and-restore
- post-deployment
categories:
- os
- system
- systemd
- healthcheck
- services
- undercloud
- overcloud
products:
- tripleo
retries_number: 1
delay_number: 1
inflight_healthcheck_services: []

View File

@ -10,5 +10,12 @@
- pre-upgrade
- post-deployment
- post-upgrade
categories:
- httpd
- container
- registry
- undercloud
products:
- tripleo
roles:
- image_serve

View File

@ -8,5 +8,11 @@
groups:
- pre-deployment
- pre-upgrade
categories:
- baremetal
- provisioning
- undercloud
products:
- tripleo
roles:
- ironic_boot_configuration

View File

@ -11,6 +11,14 @@
https://access.redhat.com/solutions/1598733
groups:
- post-deployment
categories:
- database
- overcloud
- controller
products:
- tripleo
- mysql
- galera
min_open_files_limit: 16384
roles:
- mysql_open_files_limit

View File

@ -14,6 +14,13 @@
http://tripleo.org/advanced_deployment/network_isolation.html
groups:
- pre-deployment
categories:
- networking
- undercloud
- network_isolation
- undercloud
products:
- tripleo
network_environment_path: environments/network-environment.yaml
plan_env_path: plan-environment.yaml
ip_pools_path: environments/ips-from-pool-all.yaml

View File

@ -10,10 +10,17 @@
The tool expects all the configuration files that are passed
to the Neutron services.
groups:
- backup-and-restore
- post-deployment
categories:
- networking
- neutron
- overcloud
- controller
- undercloud-config
- container
products:
- tripleo
roles:
- neutron_sanity_check

View File

@ -9,6 +9,11 @@
The tool expects all the configuration files that are passed.
groups:
- post-deployment
categories:
- networking
- compute
- nfv
products:
- tripleo
roles:
- check_nfv_ovsdpdk_zero_packet_loss

View File

@ -7,6 +7,14 @@
Check node disk numbers and sizes and whether root device hints are set.
groups:
- pre-deployment
categories:
- baremetal
- provisioning
- compute
- introspection
- undercloud
products:
- tripleo
ironic_conf_file: "/var/lib/config-data/puppet-generated/ironic/etc/ironic/ironic.conf"
roles:
- node_disks

View File

@ -8,5 +8,13 @@
scale-up or an upgrade.
groups:
- pre-upgrade
categories:
- icmp
- compute
- baremetal
- provisioning
- undercloud
products:
- tripleo
roles:
- node_health

View File

@ -19,5 +19,9 @@
groups:
- backup-and-restore
- pre-upgrade
categories:
- compute
products:
- tripleo
roles:
- nova_status

View File

@ -9,5 +9,11 @@
groups:
- post-deployment
- post-upgrade
categories:
- compute
- selinux
- security
products:
- tripleo
roles:
- nova_svirt

View File

@ -13,6 +13,13 @@
- Are there sufficient compute resources available for a default setup? (1 Master node, 1 Infra node, 2 App nodes)
groups:
- openshift-on-openstack
categories:
- hardware
- provisioning
- compute
- storage
products:
- tripleo
min_total_ram_testing: 16384 # 4 per node
min_total_vcpus_testing: 4 # 1 per node
min_total_disk_testing: 93 # Master: 40, others: 17 per node

View File

@ -8,6 +8,10 @@
required for an OpenShift deployment on top of OpenStack.
groups:
- openshift-on-openstack
categories:
- networking
products:
- tripleo
tasks:
- include_role:
name: openshift_on_openstack

View File

@ -13,5 +13,11 @@
- post-upgrade
- pre-update
- post-update
categories:
- ui
- connectivity
- undercloud
products:
- tripleo
roles:
- openstack_endpoints

View File

@ -18,6 +18,17 @@
- post-system-upgrade
- post-update
- post-upgrade
categories:
- undercloud
- overcloud
- oslo
- compute
- storage
- baremetal
- networking
- identity
products:
- tripleo
# Debug log level
oslo_config_validator_debug: false

View File

@ -13,6 +13,14 @@
- post-upgrade
- post-overcloud-upgrade
- post-overcloud-converge
categories:
- api
- compute
- storage
- undercloud
- overcloud
products:
- tripleo
overcloud_service_status_debug: false
overcloud_service_api:
- nova

View File

@ -10,5 +10,11 @@
configured correctly.
groups:
- post-deployment
categories:
- networking
- compute
- nfv
products:
- tripleo
roles:
- ovs_dpdk_pmd

View File

@ -14,5 +14,13 @@
groups:
- backup-and-restore
- post-deployment
categories:
- ha
- clustering
- system
- os
products:
- tripleo
- pacemaker
roles:
- pacemaker_status

View File

@ -17,6 +17,13 @@
- pre-overcloud-upgrade
- pre-overcloud-converge
- pre-ceph
categories:
- rpm
- os
- system
- packaging
products:
- tripleo
package_version_debug: false
roles:
- package_version

View File

@ -7,6 +7,13 @@
Make sure the rabbitmq file descriptor limits are set to reasonable values.
groups:
- post-deployment
categories:
- container
- messaging
- broker
products:
- tripleo
- rabbitmq
min_fd_limit: 16384
roles:
- rabbitmq_limits

View File

@ -13,5 +13,13 @@
groups:
- pre-upgrade
- pre-update
categories:
- os
- system
- packaging
- rpm
- repository
products:
- tripleo
roles:
- repos

View File

@ -9,5 +9,11 @@
groups:
- pre-upgrade
- post-upgrade
categories:
- orchestration
- healthcheck
- stack
products:
- tripleo
roles:
- stack_health

View File

@ -11,5 +11,13 @@
https://access.redhat.com/documentation/en/red-hat-openstack-platform/8/paged/director-installation-and-usage/86-fencing-the-controller-nodes
groups:
- post-deployment
categories:
- ha
- clustering
- os
- system
products:
- tripleo
- pacemaker
roles:
- stonith_exists

View File

@ -12,6 +12,15 @@
not on a particular switch port.
groups:
- pre-deployment
categories:
- networking
- vlans
- lldp
- introspection
- baremetal
- provisioning
products:
- tripleo
network_environment_path: environments/network-environment.yaml
ironic_inspector_conf_file: "/var/lib/config-data/puppet-generated/ironic_inspector/etc/ironic-inspector/inspector.conf"
roles:

View File

@ -9,6 +9,12 @@
- pre-deployment
- pre-upgrade
- pre-update
categories:
- os
- system
- encoding
products:
- tripleo
system_encoding_debug: false
roles:
- system_encoding

View File

@ -9,6 +9,15 @@
MONITORING state.
groups:
- post-deployment
categories:
- security
- tls-everywhere
- identity
- dns
- kerberos
products:
- tripleo
- freeipa
tasks:
- include_role:
name: tls_everywhere

View File

@ -8,6 +8,15 @@
that we are ready to do the overcloud deploy with tls-everywhere.
groups:
- pre-deployment
categories:
- security
- tls-everywhere
- identity
- dns
- kerberos
products:
- tripleo
- freeipa
tasks:
- include_role:
name: tls_everywhere

View File

@ -8,6 +8,15 @@
to register to IdM as a client as part of undercloud-install.
groups:
- prep
categories:
- security
- tls-everywhere
- identity
- dns
- kerberos
products:
- tripleo
- freeipa
tasks:
- include_role:
name: tls_everywhere

View File

@ -9,6 +9,13 @@
before starting an upgrade.
groups:
- pre-upgrade
categories:
- os
- system
- packaging
- rpm
products:
- tripleo
packages_list:
- python3-tripleoclient
roles:

View File

@ -10,6 +10,13 @@
is not a good thing.
groups:
- pre-deployment
categories:
- compute
- networking
- telemetry
- baremetal
products:
- tripleo
debug_check: "True"
roles:
- undercloud_debug

View File

@ -10,6 +10,13 @@
http://tripleo.org/install/environments/baremetal.html#minimum-system-requirements
groups:
- pre-upgrade
categories:
- storage
- disk
- os
- system
products:
- tripleo
volumes:
- {mount: /var/lib/docker, min_size: 10}
- {mount: /var/lib/config-data, min_size: 3}

View File

@ -11,6 +11,13 @@
groups:
- prep
- pre-introspection
categories:
- storage
- disk
- os
- system
products:
- tripleo
volumes:
- {mount: /var/lib/docker, min_size: 10}
- {mount: /var/lib/config-data, min_size: 3}

View File

@ -11,6 +11,13 @@
- pre-upgrade
- pre-update
- pre-deployment
categories:
- orchestration
- os
- system
- cron
products:
- tripleo
cron_check: "heat-manage purge_deleted"
roles:
- undercloud_heat_purge_deleted

View File

@ -19,6 +19,15 @@
groups:
- pre-upgrade
- pre-update
categories:
- security
- tls-everywhere
- identity
- dns
- kerberos
products:
- tripleo
- freeipa
tasks:
- include_role:
name: tls_everywhere

View File

@ -12,6 +12,15 @@
groups:
- pre-introspection
categories:
- networking
- neutron
- overcloud
- controller
- undercloud-config
- container
products:
- tripleo
# The list of Neutron configuration files and directories that
# will be passed to the Neutron services. The order is important

View File

@ -10,6 +10,11 @@
to crashes due to OOMKiller.
groups:
- pre-deployment
categories:
- os
- system
products:
- tripleo
max_process_count: 8
roles:
- undercloud_process_count

View File

@ -11,5 +11,12 @@
- pre-upgrade
- post-update
- pre-update
categories:
- os
- system
- systemd
- services
products:
- tripleo
roles:
- undercloud_service_status

View File

@ -9,6 +9,13 @@
the keystone token_flush crontab has been set up.
groups:
- pre-introspection
categories:
- os
- system
- identity
- cron
products:
- tripleo
cron_check: "keystone-manage token_flush"
roles:
- undercloud_tokenflush