Merge "Migrate inflight validations to native podman healthchecks"

This commit is contained in:
Zuul 2020-04-21 06:02:28 +00:00 committed by Gerrit Code Review
commit 3d5a3fc45f
9 changed files with 115 additions and 162 deletions

View File

@ -741,21 +741,22 @@ outputs:
tripleo_keystone_resources_cloud_name: {get_param: RootStackName} tripleo_keystone_resources_cloud_name: {get_param: RootStackName}
batched_tripleo_keystone_resources_domains: "{{ tripleo_keystone_ldap_domains | list }}" batched_tripleo_keystone_resources_domains: "{{ tripleo_keystone_ldap_domains | list }}"
deploy_steps_tasks: deploy_steps_tasks:
- name: validate keystone service state - name: validate keystone container state
when: podman_container_info:
- container_cli == 'podman' name: keystone
- not container_healthcheck_disabled register: keystone_infos
- step|int == 4 failed_when:
- "'healthy' not in keystone_infos.containers.0.Healthcheck.Status"
retries: 10
delay: 30
tags: tags:
- opendev-validation - opendev-validation
- opendev-validation-keystone - opendev-validation-keystone
block: when:
- name: Get keystone service healthcheck status - false
import_role: - container_cli == 'podman'
name: healthcheck_service_status - not container_healthcheck_disabled
vars: - step|int == 4
inflight_healthcheck_services:
- tripleo_keystone_healthcheck
container_puppet_tasks: container_puppet_tasks:
# Keystone endpoint creation occurs only on single node # Keystone endpoint creation occurs only on single node
step_3: step_3:

View File

@ -467,28 +467,22 @@ outputs:
metadata_settings: metadata_settings:
get_attr: [ApacheServiceBase, role_data, metadata_settings] get_attr: [ApacheServiceBase, role_data, metadata_settings]
deploy_steps_tasks: deploy_steps_tasks:
- name: validate nova api container state - name: validate nova-api container state
when: podman_container_info:
- container_cli == 'podman' name: nova_api
- not container_healthcheck_disabled register: nova_api_infos
- step|int == 5 failed_when:
- "'healthy' not in nova_api_infos.containers.0.Healthcheck.Status"
retries: 10
delay: 30
tags: tags:
- opendev-validation - opendev-validation
- opendev-validation-nova - opendev-validation-nova
block: when:
- name: Get nova-api healthcheck status - false
register: nova_api_healthcheck_state - container_cli == 'podman'
systemd: - not container_healthcheck_disabled
name: tripleo_nova_api_healthcheck - step|int == 4
retries: 10
delay: 30
until: nova_api_healthcheck_state.status.ExecMainPID != '0' and
nova_api_healthcheck_state.status.ActiveState in ['inactive', 'failed']
failed_when: false
- name: Fail if nova-api healthcheck report failed status
fail:
msg: nova-api isn't working (healthcheck failed)
when: nova_api_healthcheck_state.status.ExecMainStatus != '0'
host_prep_tasks: {get_attr: [NovaApiLogging, host_prep_tasks]} host_prep_tasks: {get_attr: [NovaApiLogging, host_prep_tasks]}
external_upgrade_tasks: external_upgrade_tasks:
- when: step|int == 1 - when: step|int == 1

View File

@ -1053,28 +1053,22 @@ outputs:
- ksm.service - ksm.service
- ksmtuned.service - ksmtuned.service
deploy_steps_tasks: deploy_steps_tasks:
- name: validate nova compute container state - name: validate nova-compute container state
when: podman_container_info:
- container_cli == 'podman' name: nova_compute
- not container_healthcheck_disabled register: nova_compute_infos
- step|int == 6 #FIXME: there is no step6 failed_when:
- "'healthy' not in nova_compute_infos.containers.0.Healthcheck.Status"
retries: 10
delay: 30
tags: tags:
- opendev-validation - opendev-validation
- opendev-validation-nova - opendev-validation-nova
block: when:
- name: Get nova-compute healthcheck status - false
register: nova_compute_healthcheck_state - container_cli == 'podman'
systemd: - not container_healthcheck_disabled
name: tripleo_nova_compute_healthcheck - step|int == 6 #FIXME: there is no step6
retries: 10
delay: 30
until: nova_compute_healthcheck_state.status.ExecMainPID != '0' and
nova_compute_healthcheck_state.status.ActiveState in ['inactive', 'failed']
failed_when: false
- name: Fail if nova-compute healthcheck report failed status
fail:
msg: nova-compute isn't working (healthcheck failed)
when: nova_compute_healthcheck_state.status.ExecMainStatus != '0'
external_post_deploy_tasks: {get_attr: [NovaComputeCommon, nova_compute_common_deploy_steps_tasks]} external_post_deploy_tasks: {get_attr: [NovaComputeCommon, nova_compute_common_deploy_steps_tasks]}
upgrade_tasks: upgrade_tasks:
- name: Remove openstack-nova-compute and python-nova package during upgrade - name: Remove openstack-nova-compute and python-nova package during upgrade

View File

@ -178,28 +178,22 @@ outputs:
environment: environment:
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS KOLLA_CONFIG_STRATEGY: COPY_ALWAYS
deploy_steps_tasks: deploy_steps_tasks:
- name: validate nova conductor container state - name: validate nova-conductor container state
when: podman_container_info:
- container_cli == 'podman' name: nova_conductor
- not container_healthcheck_disabled register: nova_conductor_infos
- step|int == 5 failed_when:
- "'healthy' not in nova_conductor_infos.containers.0.Healthcheck.Status"
retries: 10
delay: 30
tags: tags:
- opendev-validation - opendev-validation
- opendev-validation-nova - opendev-validation-nova
block: when:
- name: Get nova-conductor healthcheck status - false
register: nova_conductor_healthcheck_state - container_cli == 'podman'
systemd: - not container_healthcheck_disabled
name: tripleo_nova_conductor_healthcheck - step|int == 5
retries: 10
delay: 30
until: nova_conductor_healthcheck_state.status.ExecMainPID != '0' and
nova_conductor_healthcheck_state.status.ActiveState in ['inactive', 'failed']
failed_when: false
- name: Fail if nova-conductor healthcheck report failed status
fail:
msg: nova-conductor isn't working (healthcheck failed)
when: nova_conductor_healthcheck_state.status.ExecMainStatus != '0'
host_prep_tasks: host_prep_tasks:
list_concat: list_concat:
- {get_attr: [NovaLogging, host_prep_tasks]} - {get_attr: [NovaLogging, host_prep_tasks]}

View File

@ -794,27 +794,21 @@ outputs:
- {} - {}
deploy_steps_tasks: deploy_steps_tasks:
- name: validate nova-libvirt container state - name: validate nova-libvirt container state
when: podman_container_info:
- container_cli == 'podman' name: nova_libvirt
- not container_healthcheck_disabled register: nova_libvirt_infos
- step|int == 4 failed_when:
- "'healthy' not in nova_libvirt_infos.containers.0.Healthcheck.Status"
retries: 10
delay: 30
tags: tags:
- opendev-validation - opendev-validation
- opendev-validation-nova - opendev-validation-nova
block: when:
- name: Get nova-libvirt healthcheck status - false
register: nova_libvirt_healthcheck_state - container_cli == 'podman'
systemd: - not container_healthcheck_disabled
name: tripleo_nova_libvirt_healthcheck - step|int == 4
retries: 10
delay: 30
until: nova_libvirt_healthcheck_state.status.ExecMainPID != '0' and
nova_libvirt_healthcheck_state.status.ActiveState in ['inactive', 'failed']
failed_when: false
- name: Fail if nova-libvirt healthcheck report failed status
fail:
msg: nova-libvirt isn't working (healtcheck failed)
when: nova_libvirt_healthcheck_state.status.ExecMainStatus != '0'
host_prep_tasks: host_prep_tasks:
list_concat: list_concat:
- {get_attr: [NovaLibvirtLogging, host_prep_tasks]} - {get_attr: [NovaLibvirtLogging, host_prep_tasks]}

View File

@ -237,28 +237,22 @@ outputs:
environment: environment:
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS KOLLA_CONFIG_STRATEGY: COPY_ALWAYS
deploy_steps_tasks: deploy_steps_tasks:
- name: validate nova metadata container state - name: validate nova-metadata container state
when: podman_container_info:
- container_cli == 'podman' name: nova_metadata
- not container_healthcheck_disabled register: nova_metadata_infos
- step|int == 5 failed_when:
- "'healthy' not in nova_metadata_infos.containers.0.Healthcheck.Status"
retries: 10
delay: 30
tags: tags:
- opendev-validation - opendev-validation
- opendev-validation-nova - opendev-validation-nova
block: when:
- name: Get nova-metadata healthcheck status - false
register: nova_metadata_healthcheck_state - container_cli == 'podman'
systemd: - not container_healthcheck_disabled
name: tripleo_nova_metadata_healthcheck - step|int == 5
retries: 10
delay: 30
until: nova_metadata_healthcheck_state.status.ExecMainPID != '0' and
nova_metadata_healthcheck_state.status.ActiveState in ['inactive', 'failed']
failed_when: false
- name: Fail if nova-metadata healthcheck report failed status
fail:
msg: nova-metadata isn't working (healthcheck failed)
when: nova_metadata_healthcheck_state.status.ExecMainStatus != '0'
host_prep_tasks: {get_attr: [NovaMetadataLogging, host_prep_tasks]} host_prep_tasks: {get_attr: [NovaMetadataLogging, host_prep_tasks]}
external_upgrade_tasks: external_upgrade_tasks:
- when: - when:

View File

@ -181,25 +181,19 @@ outputs:
environment: environment:
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS KOLLA_CONFIG_STRATEGY: COPY_ALWAYS
deploy_steps_tasks: deploy_steps_tasks:
- name: validate nova migration target container state - name: validate nova-migration-target container state
when: podman_container_info:
- container_cli == 'podman' name: nova_migration_target
- not container_healthcheck_disabled register: nova_migration_target_infos
- step|int == 5 failed_when:
- "'healthy' not in nova_migration_target_infos.containers.0.Healthcheck.Status"
retries: 10
delay: 30
tags: tags:
- opendev-validation - opendev-validation
- opendev-validation-nova - opendev-validation-nova
block: when:
- name: Get nova-migration-target healthcheck status - false
register: nova_migration_target_healthcheck_state - container_cli == 'podman'
systemd: - not container_healthcheck_disabled
name: tripleo_nova_migration_target_healthcheck - step|int == 5
retries: 10
delay: 30
until: nova_migration_target_healthcheck_state.status.ExecMainPID != '0' and
nova_migration_target_healthcheck_state.status.ActiveState in ['inactive', 'failed']
failed_when: false
- name: Fail if nova-migration-target healthcheck report failed status
fail:
msg: nova-migration-target isn't working (healtcheck failed)
when: nova_migration_target_healthcheck_state.status.ExecMainStatus != '0'

View File

@ -208,28 +208,22 @@ outputs:
environment: environment:
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS KOLLA_CONFIG_STRATEGY: COPY_ALWAYS
deploy_steps_tasks: deploy_steps_tasks:
- name: validate nova scheduler container state - name: validate nova-scheduler container state
when: podman_container_info:
- container_cli == 'podman' name: nova_scheduler
- not container_healthcheck_disabled register: nova_scheduler_infos
- step|int == 5 failed_when:
- "'healthy' not in nova_scheduler_infos.containers.0.Healthcheck.Status"
retries: 10
delay: 30
tags: tags:
- opendev-validation - opendev-validation
- opendev-validation-nova - opendev-validation-nova
block: when:
- name: Get nova-scheduler healthcheck status - false
register: nova_scheduler_healthcheck_state - container_cli == 'podman'
systemd: - not container_healthcheck_disabled
name: tripleo_nova_scheduler_healthcheck - step|int == 5
retries: 10
delay: 30
until: nova_scheduler_healthcheck_state.status.ExecMainPID != '0' and
nova_scheduler_healthcheck_state.status.ActiveState in ['inactive', 'failed']
failed_when: false
- name: Fail if nova-scheduler healthcheck report failed status
fail:
msg: nova-scheduler isn't working (healthcheck failed)
when: nova_scheduler_healthcheck_state.status.ExecMainStatus != '0'
host_prep_tasks: host_prep_tasks:
list_concat: list_concat:
- {get_attr: [NovaLogging, host_prep_tasks]} - {get_attr: [NovaLogging, host_prep_tasks]}

View File

@ -301,27 +301,21 @@ outputs:
- null - null
deploy_steps_tasks: deploy_steps_tasks:
- name: validate nova-vnc-proxy container state - name: validate nova-vnc-proxy container state
when: podman_container_info:
- container_cli == 'podman' name: nova_vnc_proxy
- not container_healthcheck_disabled register: nova_vnc_proxy_infos
- step|int == 5 failed_when:
- "'healthy' not in nova_vnc_proxy_infos.containers.0.Healthcheck.Status"
retries: 10
delay: 30
tags: tags:
- opendev-validation - opendev-validation
- opendev-validation-nova - opendev-validation-nova
block: when:
- name: Get nova-vnc-proxy healthcheck status - false
register: nova_vnc_proxy_healthcheck_state - container_cli == 'podman'
systemd: - not container_healthcheck_disabled
name: tripleo_nova_vnc_proxy_healthcheck - step|int == 5
retries: 10
delay: 30
until: nova_vnc_proxy_healthcheck_state.status.ExecMainPID != '0' and
nova_vnc_proxy_healthcheck_state.status.ActiveState in ['inactive', 'failed']
failed_when: false
- name: Fail if nova-vnc-proxy healtcheck report failed status
fail:
msg: nova-vnc-proxy isn't working (healthcheck failed)
when: nova_vnc_proxy_healthcheck_state.status.ExecMainStatus != '0'
host_prep_tasks: host_prep_tasks:
list_concat: list_concat:
- {get_attr: [NovaLogging, host_prep_tasks]} - {get_attr: [NovaLogging, host_prep_tasks]}