Adds fast_forward_upgrade_tasks for Heat services

Adds ffu tasks for the heat services -api, -api-cfn,
-api-cloudwatch and -engine under systemd are stopped
and also disabled (e.g. to be containerized, migrated httpd etc).
Services stopped step 1, package update step 6, dbsync step8.

Change-Id: Ida0b4cb7f6f0a9d966e2a79dd05460565d98aaf9
changes/56/530956/13
marios 5 years ago committed by Lukas Bezdicka
parent 3004c31d72
commit fa66d68c08
  1. 20
      docker/services/heat-api-cfn.yaml
  2. 30
      docker/services/heat-api.yaml
  3. 20
      docker/services/heat-engine.yaml
  4. 26
      puppet/services/disabled/heat-api-cloudwatch-disabled.yaml
  5. 1
      roles/Controller.yaml
  6. 1
      roles/ControllerAllNovaStandalone.yaml
  7. 1
      roles/ControllerNoCeph.yaml
  8. 1
      roles/ControllerNovaStandalone.yaml
  9. 1
      roles/ControllerOpenstack.yaml
  10. 1
      roles/ControllerStorageNfs.yaml
  11. 1
      roles_data.yaml

@ -173,3 +173,23 @@ outputs:
- httpd_running.rc == 0
metadata_settings:
get_attr: [HeatBase, role_data, metadata_settings]
fast_forward_upgrade_tasks:
- name: FFU check if openstack-heat-api-cfn service is enabled
command: systemctl is-enabled openstack-heat-api-cfn
ignore_errors: True
register: heat_api_cfn_enabled_result
when:
- step|int == 0
- release == 'ocata'
- name: Set fact heat_api_cfn_enabled
set_fact:
heat_api_cfn_enabled: "{{ heat_api_cfn_enabled_result.rc == 0 }}"
when:
- step|int == 0
- release == 'ocata'
- name: FFU stop and disable openstack-heat-api-cfn service
when:
- step|int == 1
- release == 'ocata'
- heat_api_cfn_enabled|bool
service: name=openstack-heat-api-cfn state=stopped enabled=no

@ -216,3 +216,33 @@ outputs:
state: absent
metadata_settings:
get_attr: [HeatBase, role_data, metadata_settings]
fast_forward_upgrade_tasks:
- name: FFU check openstack-heat-api is enabled
command: systemctl is-enabled openstack-heat-api
ignore_errors: True
register: heat_api_enabled_result
when:
- step|int == 0
- release == 'ocata'
- name: Set fact heat_api_enabled
set_fact:
heat_api_enabled: "{{ heat_api_enabled_result.rc == 0 }}"
when:
- step|int == 0
- release == 'ocata'
- name: FFU stop and disable openstack-heat-api
service: name=openstack-heat-api state=stopped enabled=no
when:
- step|int == 1
- release == 'ocata'
- heat_api_enabled|bool
- name: FFU Heat package update
yum: name=openstack-heat* state=latest
when:
- step|int == 6
- is_bootstrap_node|bool
- name: FFU Heat db-sync
command: heat-manage db_sync
when:
- step|int == 8
- is_bootstrap_node|bool

@ -150,3 +150,23 @@ outputs:
- step|int == 2
- heat_engine_enabled.rc == 0
service: name=openstack-heat-engine state=stopped enabled=no
fast_forward_upgrade_tasks:
- name: FFU check if openstack-heat-engine is enabled
command: systemctl is-enabled --quiet openstack-heat-engine
ignore_errors: True
register: heat_engine_enabled_result
when:
- step|int == 0
- release == 'ocata'
- name: Set fact heat_engine_enabled
set_fact:
heat_engine_enabled: "{{ heat_engine_enabled_result.rc == 0 }}"
when:
- step|int == 0
- release == 'ocata'
- name: FFU stop and disable openstack-heat-engine service
when:
- step|int == 1
- release == 'ocata'
- heat_engine_enabled|bool
service: name=openstack-heat-engine state=stopped enabled=no

@ -47,3 +47,29 @@ outputs:
- step|int == 1
- heat_api_cloudwatch_enabled.rc == 0
service: name=openstack-heat-api-cloudwatch state=stopped enabled=no
fast_forward_upgrade_tasks:
- name: FFU check if heat_api_cloudwatch is deployed
command: systemctl is-enabled openstack-heat-api-cloudwatch
ignore_errors: True
register: heat_api_cloudwatch_enabled_result
when:
- step|int == 0
- release == 'ocata'
- name: Set fact heat_api_cloudwatch_enabled
set_fact:
heat_api_cloudwatch_enabled: "{{ heat_api_cloudwatch_enabled_result.rc == 0 }}"
when:
- step|int == 0
- release == 'ocata'
- name: FFU stop and disable the heat-api-cloudwatch service.
service: name=openstack-heat-api-cloudwatch state=stopped enabled=no
when:
- step|int == 1
- release == 'ocata'
- heat_api_cloudwatch_enabled|bool
- name: Remove heat_api_cloudwatch package
yum: name=openstack-heat-api-cloudwatch state=removed
ignore_errors: True
when:
- step|int == 2
- release == 'ocata'

@ -78,6 +78,7 @@
- OS::TripleO::Services::GnocchiStatsd
- OS::TripleO::Services::HAproxy
- OS::TripleO::Services::HeatApi
- OS::TripleO::Services::HeatApiCloudwatch
- OS::TripleO::Services::HeatApiCfn
- OS::TripleO::Services::HeatEngine
- OS::TripleO::Services::Horizon

@ -55,6 +55,7 @@
- OS::TripleO::Services::GnocchiStatsd
- OS::TripleO::Services::HAproxy
- OS::TripleO::Services::HeatApi
- OS::TripleO::Services::HeatApiCloudwatch
- OS::TripleO::Services::HeatApiCfn
- OS::TripleO::Services::HeatEngine
- OS::TripleO::Services::Horizon

@ -71,6 +71,7 @@
- OS::TripleO::Services::GnocchiStatsd
- OS::TripleO::Services::HAproxy
- OS::TripleO::Services::HeatApi
- OS::TripleO::Services::HeatApiCloudwatch
- OS::TripleO::Services::HeatApiCfn
- OS::TripleO::Services::HeatEngine
- OS::TripleO::Services::Horizon

@ -63,6 +63,7 @@
- OS::TripleO::Services::GnocchiStatsd
- OS::TripleO::Services::HAproxy
- OS::TripleO::Services::HeatApi
- OS::TripleO::Services::HeatApiCloudwatch
- OS::TripleO::Services::HeatApiCfn
- OS::TripleO::Services::HeatEngine
- OS::TripleO::Services::Horizon

@ -60,6 +60,7 @@
- OS::TripleO::Services::GnocchiStatsd
- OS::TripleO::Services::HAproxy
- OS::TripleO::Services::HeatApi
- OS::TripleO::Services::HeatApiCloudwatch
- OS::TripleO::Services::HeatApiCfn
- OS::TripleO::Services::HeatEngine
- OS::TripleO::Services::Horizon

@ -72,6 +72,7 @@
- OS::TripleO::Services::GnocchiStatsd
- OS::TripleO::Services::HAproxy
- OS::TripleO::Services::HeatApi
- OS::TripleO::Services::HeatApiCloudwatch
- OS::TripleO::Services::HeatApiCfn
- OS::TripleO::Services::HeatEngine
- OS::TripleO::Services::Horizon

@ -81,6 +81,7 @@
- OS::TripleO::Services::GnocchiStatsd
- OS::TripleO::Services::HAproxy
- OS::TripleO::Services::HeatApi
- OS::TripleO::Services::HeatApiCloudwatch
- OS::TripleO::Services::HeatApiCfn
- OS::TripleO::Services::HeatEngine
- OS::TripleO::Services::Horizon

Loading…
Cancel
Save