[Train only] Add missing stop service steps for FFU.

We observed, when running the system_upgrade_transfer_data that few OSP
services which are still present in Train keep running before the database
backup is restored on the newly upgraded controller. This could cause some
discrepancies between the restored state and the cluster one.

Adding all the identified services present in both versions (deprecated
services will be stopped when upgrading the old nodes operating system).

Change-Id: I43e0d04866f6ce37be5de8b68aac6d43e165dc76
Closes-Bug: #1894238
This commit is contained in:
Jose Luis Franco Arza 2020-09-04 16:54:54 +02:00 committed by Jose Luis Franco
parent c6ef0f2ace
commit c8b424ea0d
3 changed files with 45 additions and 0 deletions

View File

@ -479,3 +479,18 @@ outputs:
when: swift_log_link.stat.islnk is defined and swift_log_link.stat.islnk
metadata_settings:
get_attr: [TLSProxyBase, role_data, metadata_settings]
external_upgrade_tasks:
- when:
- step|int == 1
tags:
- never
- system_upgrade_transfer_data
- system_upgrade_stop_services
block:
- name: Stop swift-proxy container
import_role:
name: tripleo-container-stop
vars:
tripleo_containers_to_stop:
- swift-proxy
tripleo_delegate_to: "{{ groups['swift_proxy'] | default([]) }}"

View File

@ -124,3 +124,18 @@ outputs:
volumes:
- /var/lib/config-data/puppet-generated/swift/etc/swift:/etc/swift:rw,z
- /var/lib/config-data/swift_ringbuilder:/swift_ringbuilder:ro
external_upgrade_tasks:
- when:
- step|int == 1
tags:
- never
- system_upgrade_transfer_data
- system_upgrade_stop_services
block:
- name: Stop swift-ringbuilder container
import_role:
name: tripleo-container-stop
vars:
tripleo_containers_to_stop:
- swift-ringbuilder
tripleo_delegate_to: "{{ groups['swift_ringbuilder'] | default([]) }}"

View File

@ -686,3 +686,18 @@ outputs:
path: /var/log/containers/swift
state: absent
when: swift_log_link.stat.islnk is defined and swift_log_link.stat.islnk
external_upgrade_tasks:
- when:
- step|int == 1
tags:
- never
- system_upgrade_transfer_data
- system_upgrade_stop_services
block:
- name: Stop swift-storage container
import_role:
name: tripleo-container-stop
vars:
tripleo_containers_to_stop:
- swift-storage
tripleo_delegate_to: "{{ groups['swift_storage'] | default([]) }}"