Browse Source

Merge "ffu: Introduce Cinder fast-forward upgrade tasks"

changes/07/539307/7
Zuul 5 years ago committed by Gerrit Code Review
parent
commit
9416bcc21d
  1. 32
      docker/services/cinder-api.yaml
  2. 11
      docker/services/cinder-scheduler.yaml
  3. 11
      docker/services/cinder-volume.yaml

32
docker/services/cinder-api.yaml

@ -242,3 +242,35 @@ outputs:
when:
- step|int == 2
- remove_httpd_package|bool
fast_forward_upgrade_tasks:
- name: Check is cinder_api is deployed
command: systemctl is-enabled --quiet openstack-cinder-api
ignore_errors: True
register: cinder_api_enabled
- name: Stop openstack-cinder-api
service: name=openstack-cinder-api state=stopped
when:
- step|int == 2
- release == 'ocata'
- cinder_api_enabled.rc == 0
- name: Extra migration for cinder
command: cinder-manage db online_data_migrations
when:
- step|int == 5
- release == 'pike'
- is_bootstrap_node|bool
- name: Cinder package update
command: yum update -y "{{ item }}"
with_items:
- puppet-cinder
- python2-cinderclient
- python-cinder
- openstack-cinder
when:
- step|int == 6
- is_bootstrap_node|bool
- name: Cinder db sync
command: cinder-manage db sync
when:
- step|int == 8
- is_bootstrap_node|bool

11
docker/services/cinder-scheduler.yaml

@ -157,3 +157,14 @@ outputs:
when:
- step|int == 2
- remove_cinder_package|bool
fast_forward_upgrade_tasks:
- name: Check if cinder_scheduler is deployed
command: systemctl is-enabled --quiet openstack-cinder-scheduler
ignore_errors: True
register: cinder_scheduler_enabled
- name: Stop openstack-cinder-scheduler
service: name=openstack-cinder-scheduler state=stopped enabled=no
when:
- step|int == 2
- release == 'ocata'
- cinder_scheduler_enabled.rc == 0

11
docker/services/cinder-volume.yaml

@ -232,3 +232,14 @@ outputs:
when:
- step|int == 2
- remove_cinder_package|bool
fast_forward_upgrade_tasks:
- name: Check if cinder_volume is deployed
command: systemctl is-enabled --quiet openstack-cinder-volume
ignore_errors: True
register: cinder_volume_enabled
- name: Stop openstack-cinder-volume
service: name=openstack-cinder-volume state=stopped enabled=no
when:
- step|int == 2
- release == 'ocata'
- cinder_volume_enabled.rc == 0

Loading…
Cancel
Save