pre-upgrade
check-ftype
XFS ftype check.
Check if there is at least 1 XFS volume with ftype=0 in any deployed node.
- hosts: undercloud, overcloud
- groups: pre-upgrade
- metadata:
- parameters:
- roles: xfs-check-ftype
View source code for the role.
check-latest-minor-version
Check if latest minor version is installed.
Makes sure python-tripleoclient is at its latest minor version before starting an upgrade.
- hosts: undercloud
- groups: pre-upgrade
- metadata:
- parameters:
- roles: check-latest-minor-version
View source code for the role.
collect-flavors-and-verify-profiles
Collect and verify role flavors.
This validation checks the flavors assigned to roles exist and have the correct capabilities set.
- hosts: undercloud
- groups: pre-deployment, pre-upgrade
- metadata:
- parameters:
- roles: collect-flavors-and-verify-profiles
View source code for the role.
containerized-undercloud-docker
Verify docker containers are up and ports are open.
Ensure relevant docker containers are up and running, with ports open to listen.
We iterate through a list of container names and ports provided in defaults, and ensure the system has those available.
- hosts: undercloud
- groups: post-deployment, pre-upgrade
- metadata:
- parameters:
- running_containers: [‘glance_api’, ‘heat_api’, ‘heat_api_cfn’, ‘heat_api_cron’, ‘heat_engine’, ‘ironic_api’, ‘ironic_conductor’, ‘ironic_inspector’, ‘ironic_inspector_dnsmasq’, ‘ironic_neutron_agent’, ‘ironic_pxe_http’, ‘ironic_pxe_tftp’, ‘iscsid’, ‘keystone’, ‘keystone_cron’, ‘logrotate_crond’, ‘memcached’, ‘mistral_api’, ‘mistral_engine’, ‘mistral_event_engine’, ‘mistral_executor’, ‘mysql’, ‘neutron_api’, ‘neutron_dhcp’, ‘neutron_l3_agent’, ‘neutron_ovs_agent’, ‘nova_api’, ‘nova_api_cron’, ‘nova_compute’, ‘nova_conductor’, ‘nova_metadata’, ‘nova_placement’, ‘nova_scheduler’, ‘rabbitmq’, ‘swift_account_auditor’, ‘swift_account_reaper’, ‘swift_account_replicator’, ‘swift_account_server’, ‘swift_container_auditor’, ‘swift_container_replicator’, ‘swift_container_server’, ‘swift_container_updater’, ‘swift_object_auditor’, ‘swift_object_expirer’, ‘swift_object_replicator’, ‘swift_object_server’, ‘swift_object_updater’, ‘swift_proxy’, ‘swift_rsync’, ‘tripleo_ui’, ‘zaqar’, ‘zaqar_websocket’]
- open_ports: [111, 873, 3000, 3306, 4369, 5000, 5050, 5672, 6000, 6001, 6002, 6379, 6385, 8000, 8004, 8080, 8088, 8774, 8775, 8778, 8787, 8888, 8989, 9000, 9292, 9696, 11211, 15672, 25672, 35357, 39422, {‘search_regex’: ‘OpenSSH’, ‘port’: 22}]
- roles: containerized-undercloud-docker
View source code for the role.
deployment-images
Verify existence of deployment images.
This validation checks that images bm-deploy-kernel and bm-deploy-ramdisk exist before deploying the overcloud, and that only one exists by that name.
- hosts: undercloud
- groups: pre-deployment, pre-upgrade
- metadata:
- parameters:
- deploy_ramdisk_name: bm-deploy-ramdisk
- deploy_kernel_name: bm-deploy-kernel
- roles: deployment-images
View source code for the role.
image-serve
Verify image-serve service is working and answering.
Ensures image-serve vhost is configured and httpd is running.
- hosts: undercloud
- groups: pre-upgrade, post-deployment, post-upgrade
- metadata:
- parameters:
- roles: image-serve
View source code for the role.
ironic-boot-configuration
Check Ironic boot configuration.
Check if baremetal boot configuration is correct.
- hosts: undercloud
- groups: pre-deployment, pre-upgrade
- metadata:
- parameters:
- deploy_ramdisk_name: bm-deploy-ramdisk
- deploy_kernel_name: bm-deploy-kernel
- roles: ironic-boot-configuration
View source code for the role.
node-health
Node health check.
Check if all overcloud nodes can be connected to before starting a scale-up or an upgrade.
- hosts: undercloud
- groups: pre-upgrade
- metadata:
- parameters:
- roles: node-health
View source code for the role.
nova-status
Nova Status Upgrade Check.
Performs a release-specific readiness check before restarting services with new code. This command expects to have complete configuration and access to databases and services within a cell. For example, this check may query the Nova API database and one or more cell databases. It may also make requests to other services such as the Placement REST API via the Keystone service catalog
The nova-status upgrade check command has three standard return codes:
0 -> All upgrade readiness checks passed successfully and there is nothing to do. 1 -> At least one check encountered an issue and requires further investigation.
This is considered a warning but the upgrade may be OK.
- 2 -> There was an upgrade status check failure that needs to be investigated.
- This should be considered something that stops an upgrade.
- hosts: nova_api
- groups: pre-upgrade
- metadata:
- parameters:
- roles: nova-status
View source code for the role.
openstack-endpoints
Check connectivity to various OpenStack services.
This validation gets the PublicVip address from the deployment and tries to access Horizon and get a Keystone token.
- hosts: undercloud
- groups: post-deployment, pre-upgrade, post-upgrade
- metadata:
- parameters:
- roles: openstack-endpoints
View source code for the role.
repos
Check correctness of current repositories.
Detect whether the repositories listed in yum repolist can be connected to and that there is at least one repo configured.
Detect if there are any unwanted repositories (such as EPEL) enabled.
- hosts: undercloud, overcloud
- groups: pre-upgrade
- metadata:
- parameters:
- roles: repos
View source code for the role.
stack-health
Stack Health Check.
Check if all stack resources are in a *_COMPLETE state before starting an upgrade.
- hosts: undercloud
- groups: pre-upgrade, post-upgrade
- metadata:
- parameters:
- roles: stack-health
View source code for the role.
undercloud-disk-space-pre-upgrade
Verify undercloud fits the disk space requirements to perform an upgrade.
Make sure that the root partition on the undercloud node has enough free space before starting an upgrade
http://tripleo.org/install/environments/baremetal.html#minimum-system-requirements
- hosts: undercloud
- groups: pre-upgrade
- metadata:
- parameters:
- volumes: [{‘min_size’: 10, ‘mount’: ‘/var/lib/docker’}, {‘min_size’: 3, ‘mount’: ‘/var/lib/config-data’}, {‘min_size’: 16, ‘mount’: ‘/var’}, {‘min_size’: 20, ‘mount’: ‘/’}]
- roles: undercloud-disk-space
View source code for the role.
undercloud-heat-purge-deleted
Verify heat-manage purge_deleted is enabled in crontab.
Without a purge_deleted crontab enabled, the heat database can grow very large. This validation checks that the purge_deleted crontab has been set up.
- hosts: undercloud
- groups: pre-upgrade, pre-deployment
- metadata:
- parameters:
- cron_check: heat-manage purge_deleted
- roles: undercloud-heat-purge-deleted
View source code for the role.
undercloud-service-status
Verify undercloud services state before running update or upgrade.
Check undercloud status before running a stack update - especially minor update and major upgrade.
- hosts: undercloud
- groups: post-upgrade, pre-upgrade
- metadata:
- parameters:
- roles: undercloud-service-status
View source code for the role.