Add fast_forward_upgrade_tasks in ironic services.
Ironic services already present in Newton release, ironic-api and ironic-conductor, are missing their fast_forward_upgrade_tasks section. Change-Id: Ic6e8c1515bb16d29a285b5a5bdbd4971adf3e2c2 Closes-Bug: #1770634
This commit is contained in:
parent
7f23133651
commit
6403c9b9bc
@ -192,3 +192,21 @@ outputs:
|
||||
- httpd_enabled.rc == 0
|
||||
- httpd_running.rc == 0
|
||||
service: name=httpd state=stopped enabled=no
|
||||
fast_forward_upgrade_tasks:
|
||||
- block:
|
||||
- name: Check if ironic_api is deployed
|
||||
command: systemctl is-enabled --quiet openstack-ironic-api
|
||||
ignore_errors: True
|
||||
register: ironic_api_enabled_result
|
||||
- name: Set fact ironic_api_enabled
|
||||
set_fact:
|
||||
ironic_api_enabled: "{{ ironic_api_enabled_result.rc == 0 }}"
|
||||
when:
|
||||
- step|int == 0
|
||||
- release == 'ocata'
|
||||
- name: Stop openstack-ironic-api
|
||||
service: name=openstack-ironic-api state=stopped enabled=no
|
||||
when:
|
||||
- step|int == 1
|
||||
- release == 'ocata'
|
||||
- ironic_api_enabled|bool
|
||||
|
@ -229,3 +229,21 @@ outputs:
|
||||
- step|int == 2
|
||||
- ironic_conductor_enabled.rc == 0
|
||||
service: name=openstack-ironic-conductor state=stopped enabled=no
|
||||
fast_forward_upgrade_tasks:
|
||||
- block:
|
||||
- name: Check if ironic_conductor is deployed
|
||||
command: systemctl is-enabled --quiet openstack-ironic-conductor
|
||||
ignore_errors: True
|
||||
register: ironic_conductor_enabled_result
|
||||
- name: Set fact ironic_conductor_enabled
|
||||
set_fact:
|
||||
ironic_conductor_enabled: "{{ ironic_conductor_enabled_result.rc == 0 }}"
|
||||
when:
|
||||
- step|int == 0
|
||||
- release == 'ocata'
|
||||
- name: Stop openstack-ironic-conductor
|
||||
service: name=openstack-ironic-conductor state=stopped enabled=no
|
||||
when:
|
||||
- step|int == 1
|
||||
- release == 'ocata'
|
||||
- ironic_conductor_enabled|bool
|
||||
|
Loading…
x
Reference in New Issue
Block a user