Add inflight validations for compute services

Added inflight validations for compute container
services.

Change-Id: I8a8757aec80c379656665c4a1f0952c3b29f53b8
This commit is contained in:
Rajesh Tailor 2019-06-06 11:37:49 +05:30
parent d305632788
commit 8dc0cee704
8 changed files with 70 additions and 1 deletions

View File

@ -429,6 +429,13 @@ outputs:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
metadata_settings:
get_attr: [ApacheServiceBase, role_data, metadata_settings]
deploy_steps_tasks:
- name: validate nova api container state
when: step|int == 5
tags:
- opendev-validation
- opendev-validation-nova
command: "{{ container_cli }} exec nova_api /openstack/healthcheck"
host_prep_tasks: {get_attr: [NovaApiLogging, host_prep_tasks]}
upgrade_tasks:
- when: step|int == 0

View File

@ -928,7 +928,19 @@ outputs:
with_items:
- ksm.service
- ksmtuned.service
deploy_steps_tasks: {get_attr: [NovaComputeCommon, nova_compute_common_deploy_steps_tasks]}
deploy_steps_tasks:
list_concat:
- {get_attr: [NovaComputeCommon, nova_compute_common_deploy_steps_tasks]}
- - name: validate nova compute container state
when: step|int == 5
tags:
- opendev-validation
- opendev-validation-nova
command:
str_replace:
template: "{{ container_cli }} exec nova_compute HEALTHCHECK"
params:
HEALTHCHECK: {get_attr: [ContainersCommon, healthcheck_rpc_port, test]}
upgrade_tasks:
- name: Remove openstack-nova-compute and python-nova package during upgrade
package:

View File

@ -191,6 +191,17 @@ outputs:
- /var/lib/config-data/puppet-generated/nova/:/var/lib/kolla/config_files/src:ro
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
deploy_steps_tasks:
- name: validate nova conductor container state
when: step|int == 5
tags:
- opendev-validation
- opendev-validation-nova
command:
str_replace:
template: "{{ container_cli }} exec nova_conductor HEALTHCHECK"
params:
HEALTHCHECK: {get_attr: [ContainersCommon, healthcheck_rpc_port, test]}
host_prep_tasks:
list_concat:
- {get_attr: [NovaLogging, host_prep_tasks]}

View File

@ -781,6 +781,13 @@ outputs:
SECRET_UUID: {get_param: CephClusterFSID}
SECRET_KEY: {get_param: CephClientKey}
- {}
deploy_steps_tasks:
- name: validate nova-libvirt container state
when: step|int == 4
tags:
- opendev-validation
- opendev-validation-nova
command: "{{ container_cli }} exec nova_libvirt /openstack/healthcheck"
host_prep_tasks:
- name: create libvirt persistent data directories
file:

View File

@ -234,6 +234,13 @@ outputs:
- ''
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
deploy_steps_tasks:
- name: validate nova metadata container state
when: step|int == 5
tags:
- opendev-validation
- opendev-validation-nova
command: "{{ container_cli }} exec nova_metadata /openstack/healthcheck"
host_prep_tasks: {get_attr: [NovaMetadataLogging, host_prep_tasks]}
post_upgrade_tasks:
- when: step|int == 1

View File

@ -171,6 +171,13 @@ outputs:
- - /var/lib/nova:/var/lib/nova:shared,z
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
deploy_steps_tasks:
- name: validate nova migration target container state
when: step|int == 5
tags:
- opendev-validation
- opendev-validation-nova
command: "{{ container_cli }} exec nova_migration_target /openstack/healthcheck"
post_upgrade_tasks:
- when: step|int == 1
import_role:

View File

@ -188,6 +188,17 @@ outputs:
- /run:/run
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
deploy_steps_tasks:
- name: validate nova scheduler container state
when: step|int == 5
tags:
- opendev-validation
- opendev-validation-nova
command:
str_replace:
template: "{{ container_cli }} exec nova_scheduler HEALTHCHECK"
params:
HEALTHCHECK: {get_attr: [ContainersCommon, healthcheck_rpc_port, test]}
host_prep_tasks:
list_concat:
- {get_attr: [NovaLogging, host_prep_tasks]}

View File

@ -284,6 +284,13 @@ outputs:
network: {get_param: [ServiceNetMap, NovaApiNetwork]}
type: node
- null
deploy_steps_tasks:
- name: validate nova-vnc-proxy container state
when: step|int == 5
tags:
- opendev-validation
- opendev-validation-nova
command: "{{ container_cli }} exec nova_vnc_proxy /openstack/healthcheck"
host_prep_tasks: {get_attr: [NovaLogging, host_prep_tasks]}
fast_forward_upgrade_tasks:
- when: