Browse Source

Stop non-pcmk services of manila and cinder during upgrade

This change implements missing external_upgrade_tasks for non-pcmk
services of manila and cinder, to ensure that we don't have mixed
versions of controller services running at the same time during
upgrade.

These tasks should have been implemented in the initial patch[1], but
missed at that time unfortunately.

 [1] 8529ce60da

Change-Id: I35ea4354a7448a23d6517f9777ed022caa79347a
(cherry picked from commit 60c22c38cc)
changes/45/776445/1
Takashi Kajinami 5 months ago
parent
commit
0223e9ab63
  1. 15
      deployment/cinder/cinder-backup-container-puppet.yaml
  2. 15
      deployment/cinder/cinder-volume-container-puppet.yaml
  3. 15
      deployment/manila/manila-api-container-puppet.yaml
  4. 15
      deployment/manila/manila-scheduler-container-puppet.yaml
  5. 15
      deployment/manila/manila-share-container-puppet.yaml

15
deployment/cinder/cinder-backup-container-puppet.yaml

@ -219,3 +219,18 @@ outputs:
name: virt_sandbox_use_netlink
persistent: yes
state: yes
external_upgrade_tasks:
- when:
- step|int == 1
tags:
- never
- system_upgrade_transfer_data
- system_upgrade_stop_services
block:
- name: Stop cinder backup container
import_role:
name: tripleo_container_stop
vars:
tripleo_containers_to_stop:
- cinder_backup
tripleo_delegate_to: "{{ groups['cinder_backup'] | default([]) }}"

15
deployment/cinder/cinder-volume-container-puppet.yaml

@ -354,3 +354,18 @@ outputs:
volumes: {get_attr: [CinderCommon, cinder_volume_volumes]}
environment: {get_attr: [CinderCommon, cinder_volume_environment]}
host_prep_tasks: {get_attr: [CinderCommon, cinder_volume_host_prep_tasks]}
external_upgrade_tasks:
- when:
- step|int == 1
tags:
- never
- system_upgrade_transfer_data
- system_upgrade_stop_services
block:
- name: Stop cinder volume container
import_role:
name: tripleo_container_stop
vars:
tripleo_containers_to_stop:
- cinder_volume
tripleo_delegate_to: "{{ groups['cinder_volume'] | default([]) }}"

15
deployment/manila/manila-api-container-puppet.yaml

@ -270,3 +270,18 @@ outputs:
- { 'path': /var/log/containers/manila, 'setype': container_file_t, 'mode': '0750' }
- { 'path': /var/log/containers/httpd/manila-api, 'setype': container_file_t, 'mode': '0750' }
upgrade_tasks: []
external_upgrade_tasks:
- when:
- step|int == 1
tags:
- never
- system_upgrade_transfer_data
- system_upgrade_stop_services
block:
- name: Stop manila api container
import_role:
name: tripleo_container_stop
vars:
tripleo_containers_to_stop:
- manila_api
tripleo_delegate_to: "{{ groups['manila_api'] | default([]) }}"

15
deployment/manila/manila-scheduler-container-puppet.yaml

@ -117,3 +117,18 @@ outputs:
persistent: yes
state: yes
upgrade_tasks: []
external_upgrade_tasks:
- when:
- step|int == 1
tags:
- never
- system_upgrade_transfer_data
- system_upgrade_stop_services
block:
- name: Stop manila scheduler container
import_role:
name: tripleo_container_stop
vars:
tripleo_containers_to_stop:
- manila_scheduler
tripleo_delegate_to: "{{ groups['manila_scheduler'] | default([]) }}"

15
deployment/manila/manila-share-container-puppet.yaml

@ -191,3 +191,18 @@ outputs:
path: /etc/ceph
state: directory
upgrade_tasks: []
external_upgrade_tasks:
- when:
- step|int == 1
tags:
- never
- system_upgrade_transfer_data
- system_upgrade_stop_services
block:
- name: Stop manila share container
import_role:
name: tripleo_container_stop
vars:
tripleo_containers_to_stop:
- manila_share
tripleo_delegate_to: "{{ groups['manila_share'] | default([]) }}"
Loading…
Cancel
Save