Merge "Skip operating system upgrade tasks via UpgradeLeappEnabled param."
This commit is contained in:
commit
cc36c00622
@ -343,6 +343,7 @@ outputs:
|
|||||||
- name: Create hiera data to upgrade cinder_backup in a stepwise manner.
|
- name: Create hiera data to upgrade cinder_backup in a stepwise manner.
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
- upgrade_leapp_enabled|bool
|
||||||
block:
|
block:
|
||||||
- name: set cinder_backup upgrade node facts in a single-node environment
|
- name: set cinder_backup upgrade node facts in a single-node environment
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -330,6 +330,7 @@ outputs:
|
|||||||
- name: Create hiera data to upgrade cinder_volume in a stepwise manner.
|
- name: Create hiera data to upgrade cinder_volume in a stepwise manner.
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
- upgrade_leapp_enabled|bool
|
||||||
block:
|
block:
|
||||||
- name: set cinder_volume upgrade node facts in a single-node environment
|
- name: set cinder_volume upgrade node facts in a single-node environment
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -504,6 +504,7 @@ outputs:
|
|||||||
- name: Create hiera data to upgrade mysql in a stepwise manner.
|
- name: Create hiera data to upgrade mysql in a stepwise manner.
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
- upgrade_leapp_enabled|bool
|
||||||
block:
|
block:
|
||||||
- name: set mysql upgrade node facts in a single-node environment
|
- name: set mysql upgrade node facts in a single-node environment
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -415,8 +415,10 @@ outputs:
|
|||||||
command: pcs resource bundle update redis-bundle storage-map add id=redis-log source-dir=/var/log/containers/redis target-dir=/var/log/redis options=rw
|
command: pcs resource bundle update redis-bundle storage-map add id=redis-log source-dir=/var/log/containers/redis target-dir=/var/log/redis options=rw
|
||||||
- name: Update the redis bundle to use the new container image name
|
- name: Update the redis bundle to use the new container image name
|
||||||
command: "pcs resource bundle update redis-bundle container image={{redis_image_latest}}"
|
command: "pcs resource bundle update redis-bundle container image={{redis_image_latest}}"
|
||||||
- when:
|
- name: Create hiera data to upgrade redis in a stepwise manner.
|
||||||
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
- upgrade_leapp_enabled|bool
|
||||||
block:
|
block:
|
||||||
- name: set redis upgrade node facts in a single-node environment
|
- name: set redis upgrade node facts in a single-node environment
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -536,6 +536,7 @@ outputs:
|
|||||||
- name: Create hiera data to upgrade haproxy in a stepwise manner.
|
- name: Create hiera data to upgrade haproxy in a stepwise manner.
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
- upgrade_leapp_enabled|bool
|
||||||
block:
|
block:
|
||||||
- name: set haproxy upgrade node facts in a single-node environment
|
- name: set haproxy upgrade node facts in a single-node environment
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -309,6 +309,7 @@ outputs:
|
|||||||
- name: Create hiera data to upgrade manila_share in a stepwise manner.
|
- name: Create hiera data to upgrade manila_share in a stepwise manner.
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
- upgrade_leapp_enabled|bool
|
||||||
block:
|
block:
|
||||||
- name: set manila_share upgrade node facts in a single-node environment
|
- name: set manila_share upgrade node facts in a single-node environment
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -440,8 +440,10 @@ outputs:
|
|||||||
register: output
|
register: output
|
||||||
retries: 5
|
retries: 5
|
||||||
until: output.rc == 0
|
until: output.rc == 0
|
||||||
- when:
|
- name: Create hiera data to upgrade ovn_dbs in a stepwise manner.
|
||||||
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
- upgrade_leapp_enabled|bool
|
||||||
block:
|
block:
|
||||||
- name: set ovn_dbs upgrade node facts in a single-node environment
|
- name: set ovn_dbs upgrade node facts in a single-node environment
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -100,7 +100,7 @@ parameters:
|
|||||||
UpgradeLeappEnabled:
|
UpgradeLeappEnabled:
|
||||||
description: Use Leapp for operating system upgrade
|
description: Use Leapp for operating system upgrade
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: false
|
||||||
ContainerCli:
|
ContainerCli:
|
||||||
type: string
|
type: string
|
||||||
default: 'podman'
|
default: 'podman'
|
||||||
@ -197,18 +197,20 @@ outputs:
|
|||||||
upgrade_tasks:
|
upgrade_tasks:
|
||||||
- name: upgrade step 0
|
- name: upgrade step 0
|
||||||
when: step|int == 0
|
when: step|int == 0
|
||||||
vars:
|
|
||||||
upgrade_leapp_enabled: {get_param: UpgradeLeappEnabled}
|
|
||||||
block:
|
block:
|
||||||
|
- name: Set fact upgrade_leapp_enabled
|
||||||
|
set_fact:
|
||||||
|
upgrade_leapp_enabled: {get_param: UpgradeLeappEnabled}
|
||||||
- name: Check pacemaker cluster running before upgrade
|
- name: Check pacemaker cluster running before upgrade
|
||||||
tags: validation
|
tags: validation
|
||||||
pacemaker_cluster: state=online check_and_fail=true
|
pacemaker_cluster: state=online check_and_fail=true
|
||||||
async: 30
|
async: 30
|
||||||
poll: 4
|
poll: 4
|
||||||
when: not upgrade_leapp_enabled|bool
|
when: not upgrade_leapp_enabled|bool
|
||||||
- name: upgrade step 1
|
- name: Create hiera data to upgrade pacemaker in a stepwise manner.
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
- upgrade_leapp_enabled|bool
|
||||||
block:
|
block:
|
||||||
- name: set pacemaker upgrade node facts in a single-node environment
|
- name: set pacemaker upgrade node facts in a single-node environment
|
||||||
set_fact:
|
set_fact:
|
||||||
@ -275,16 +277,12 @@ outputs:
|
|||||||
when: pacemaker_short_node_names_upgraded | length == pacemaker_short_node_names | length
|
when: pacemaker_short_node_names_upgraded | length == pacemaker_short_node_names | length
|
||||||
- name: upgrade step 2
|
- name: upgrade step 2
|
||||||
when: step|int == 2
|
when: step|int == 2
|
||||||
vars:
|
|
||||||
upgrade_leapp_enabled: {get_param: UpgradeLeappEnabled}
|
|
||||||
block:
|
block:
|
||||||
- name: Stop pacemaker cluster
|
- name: Stop pacemaker cluster
|
||||||
pacemaker_cluster: state=offline
|
pacemaker_cluster: state=offline
|
||||||
when: not upgrade_leapp_enabled
|
when: not upgrade_leapp_enabled
|
||||||
- name: upgrade step 4
|
- name: upgrade step 4
|
||||||
when: step|int == 4
|
when: step|int == 4
|
||||||
vars:
|
|
||||||
upgrade_leapp_enabled: {get_param: UpgradeLeappEnabled}
|
|
||||||
block:
|
block:
|
||||||
- name: Start pacemaker cluster
|
- name: Start pacemaker cluster
|
||||||
pacemaker_cluster: state=online
|
pacemaker_cluster: state=online
|
||||||
|
@ -378,6 +378,7 @@ outputs:
|
|||||||
- name: Create hiera data to upgrade oslo messaging notify in a stepwise manner.
|
- name: Create hiera data to upgrade oslo messaging notify in a stepwise manner.
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
- upgrade_leapp_enabled|bool
|
||||||
block:
|
block:
|
||||||
- name: set oslo_messaging_notify upgrade node facts in a single-node environment
|
- name: set oslo_messaging_notify upgrade node facts in a single-node environment
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -379,6 +379,7 @@ outputs:
|
|||||||
- name: Create hiera data to upgrade rabbitmq in a stepwise manner.
|
- name: Create hiera data to upgrade rabbitmq in a stepwise manner.
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
- upgrade_leapp_enabled|bool
|
||||||
block:
|
block:
|
||||||
- name: set rabbitmq upgrade node facts in a single-node environment
|
- name: set rabbitmq upgrade node facts in a single-node environment
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -384,6 +384,7 @@ outputs:
|
|||||||
- name: Create hiera data to upgrade oslo messaging rpc in a stepwise manner.
|
- name: Create hiera data to upgrade oslo messaging rpc in a stepwise manner.
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
- upgrade_leapp_enabled|bool
|
||||||
block:
|
block:
|
||||||
- name: set oslo_messaging_rpc upgrade node facts in a single-node environment
|
- name: set oslo_messaging_rpc upgrade node facts in a single-node environment
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -54,7 +54,7 @@ parameters:
|
|||||||
UpgradeLeappEnabled:
|
UpgradeLeappEnabled:
|
||||||
description: Use Leapp for operating system upgrade
|
description: Use Leapp for operating system upgrade
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: false
|
||||||
UpgradeLeappDebug:
|
UpgradeLeappDebug:
|
||||||
description: Print debugging output when running Leapp
|
description: Print debugging output when running Leapp
|
||||||
type: boolean
|
type: boolean
|
||||||
|
Loading…
Reference in New Issue
Block a user