Merge "Revert "Convert *tasks from bootstrap_nodeid to short_bootstrap_node_name""
This commit is contained in:
commit
43b4393475
@ -228,8 +228,11 @@ outputs:
|
|||||||
- when: step|int == 0
|
- when: step|int == 0
|
||||||
tags: common
|
tags: common
|
||||||
block:
|
block:
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
set_fact: is_bootstrap_node={{cinder_api_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Check is cinder_api is deployed
|
- name: Check is cinder_api is deployed
|
||||||
command: systemctl is-enabled openstack-cinder-api
|
command: systemctl is-enabled openstack-cinder-api
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
|
@ -157,8 +157,11 @@ outputs:
|
|||||||
- when: step|int == 0
|
- when: step|int == 0
|
||||||
tags: common
|
tags: common
|
||||||
block:
|
block:
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
set_fact: is_bootstrap_node={{ironic_api_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Check if ironic_api is deployed
|
- name: Check if ironic_api is deployed
|
||||||
command: systemctl is-enabled --quiet openstack-ironic-api
|
command: systemctl is-enabled --quiet openstack-ironic-api
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
|
@ -326,8 +326,11 @@ outputs:
|
|||||||
- when: step|int == 0
|
- when: step|int == 0
|
||||||
tags: common
|
tags: common
|
||||||
block:
|
block:
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
set_fact: is_bootstrap_node={{nova_api_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Check if nova_api is deployed
|
- name: Check if nova_api is deployed
|
||||||
command: systemctl is-enabled --quiet openstack-nova-api
|
command: systemctl is-enabled --quiet openstack-nova-api
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
|
@ -328,9 +328,13 @@ outputs:
|
|||||||
- step|int == 1
|
- step|int == 1
|
||||||
- not cinder_backup_containerized|bool
|
- not cinder_backup_containerized|bool
|
||||||
block:
|
block:
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
tags: common
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
tags: common
|
tags: common
|
||||||
set_fact: is_bootstrap_node={{cinder_backup_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Check cluster resource status
|
- name: Check cluster resource status
|
||||||
pacemaker_resource:
|
pacemaker_resource:
|
||||||
resource: openstack-cinder-backup
|
resource: openstack-cinder-backup
|
||||||
|
@ -353,9 +353,13 @@ outputs:
|
|||||||
- step|int == 1
|
- step|int == 1
|
||||||
- not cinder_volume_containerized|bool
|
- not cinder_volume_containerized|bool
|
||||||
block:
|
block:
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
tags: common
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
tags: common
|
tags: common
|
||||||
set_fact: is_bootstrap_node={{cinder_volume_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Check cluster resource status
|
- name: Check cluster resource status
|
||||||
pacemaker_resource:
|
pacemaker_resource:
|
||||||
resource: openstack-cinder-volume
|
resource: openstack-cinder-volume
|
||||||
|
@ -362,8 +362,11 @@ outputs:
|
|||||||
- name: Check if Mysql is already containerized
|
- name: Check if Mysql is already containerized
|
||||||
set_fact:
|
set_fact:
|
||||||
mysql_containerized: "{{mysql_kolla_config.stat.isdir | default(false)}}"
|
mysql_containerized: "{{mysql_kolla_config.stat.isdir | default(false)}}"
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
set_fact: is_bootstrap_node={{mysql_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Prepare the switch to new galera container image name in pacemaker
|
- name: Prepare the switch to new galera container image name in pacemaker
|
||||||
when: mysql_containerized|bool
|
when: mysql_containerized|bool
|
||||||
block:
|
block:
|
||||||
|
@ -342,8 +342,11 @@ outputs:
|
|||||||
- name: Check if redis is already containerized
|
- name: Check if redis is already containerized
|
||||||
set_fact:
|
set_fact:
|
||||||
redis_containerized: "{{redis_kolla_config.stat.isdir | default(false)}}"
|
redis_containerized: "{{redis_kolla_config.stat.isdir | default(false)}}"
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
set_fact: is_bootstrap_node={{redis_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Prepare the switch to new redis container image name in pacemaker
|
- name: Prepare the switch to new redis container image name in pacemaker
|
||||||
when: redis_containerized|bool
|
when: redis_containerized|bool
|
||||||
block:
|
block:
|
||||||
|
@ -315,9 +315,13 @@ outputs:
|
|||||||
- name: Check if haproxy is already containerized
|
- name: Check if haproxy is already containerized
|
||||||
set_fact:
|
set_fact:
|
||||||
haproxy_containerized: "{{haproxy_kolla_config.stat.isdir | default(false)}}"
|
haproxy_containerized: "{{haproxy_kolla_config.stat.isdir | default(false)}}"
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
tags: common
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
tags: common
|
tags: common
|
||||||
set_fact: is_bootstrap_node={{haproxy_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Mount TLS cert if needed
|
- name: Mount TLS cert if needed
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
@ -295,9 +295,13 @@ outputs:
|
|||||||
- step|int == 1
|
- step|int == 1
|
||||||
- not manila_share_containerized|bool
|
- not manila_share_containerized|bool
|
||||||
block:
|
block:
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
tags: common
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
tags: common
|
tags: common
|
||||||
set_fact: is_bootstrap_node={{manila_share_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Check cluster resource status
|
- name: Check cluster resource status
|
||||||
pacemaker_resource:
|
pacemaker_resource:
|
||||||
resource: openstack-manila-share
|
resource: openstack-manila-share
|
||||||
|
@ -311,8 +311,11 @@ outputs:
|
|||||||
- name: Check if Rabbitmq is already containerized
|
- name: Check if Rabbitmq is already containerized
|
||||||
set_fact:
|
set_fact:
|
||||||
rabbit_containerized: "{{rabbit_kolla_config.stat.isdir | default(false)}}"
|
rabbit_containerized: "{{rabbit_kolla_config.stat.isdir | default(false)}}"
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
set_fact: is_bootstrap_node={{notify_rabbitmq_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Rabbitmq baremetal to container upgrade tasks
|
- name: Rabbitmq baremetal to container upgrade tasks
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
@ -221,8 +221,11 @@ outputs:
|
|||||||
- name: Check if ovn-dbs is already containerized
|
- name: Check if ovn-dbs is already containerized
|
||||||
set_fact:
|
set_fact:
|
||||||
ovn_dbs_containerized: "{{ovn_dbs_log_file.stat.exists | default(false)}}"
|
ovn_dbs_containerized: "{{ovn_dbs_log_file.stat.exists | default(false)}}"
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
set_fact: is_bootstrap_node={{ovn_dbs_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: ovn-dbs fetch and retag container image for pacemaker
|
- name: ovn-dbs fetch and retag container image for pacemaker
|
||||||
when:
|
when:
|
||||||
- step|int == 3
|
- step|int == 3
|
||||||
@ -284,8 +287,11 @@ outputs:
|
|||||||
set_fact:
|
set_fact:
|
||||||
ovn_dbs_docker_image: {get_param: DockerOvnDbsImage}
|
ovn_dbs_docker_image: {get_param: DockerOvnDbsImage}
|
||||||
ovn_dbs_docker_image_latest: *ovn_dbs_image_pcmklatest
|
ovn_dbs_docker_image_latest: *ovn_dbs_image_pcmklatest
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
set_fact: is_bootstrap_node={{ovn_dbs_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Prepare the switch to new ovn-dbs container image name in pacemaker
|
- name: Prepare the switch to new ovn-dbs container image name in pacemaker
|
||||||
when:
|
when:
|
||||||
- step|int == 0
|
- step|int == 0
|
||||||
|
@ -307,8 +307,11 @@ outputs:
|
|||||||
- name: Check if Rabbitmq is already containerized
|
- name: Check if Rabbitmq is already containerized
|
||||||
set_fact:
|
set_fact:
|
||||||
rabbit_containerized: "{{rabbit_kolla_config.stat.isdir | default(false)}}"
|
rabbit_containerized: "{{rabbit_kolla_config.stat.isdir | default(false)}}"
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
set_fact: is_bootstrap_node={{rabbitmq_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Rabbitmq baremetal to container upgrade tasks
|
- name: Rabbitmq baremetal to container upgrade tasks
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
@ -308,8 +308,11 @@ outputs:
|
|||||||
- name: Check if Rabbitmq is already containerized
|
- name: Check if Rabbitmq is already containerized
|
||||||
set_fact:
|
set_fact:
|
||||||
rabbit_containerized: "{{rabbit_kolla_config.stat.isdir | default(false)}}"
|
rabbit_containerized: "{{rabbit_kolla_config.stat.isdir | default(false)}}"
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
set_fact: is_bootstrap_node={{rpc_rabbitmq_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Rabbitmq baremetal to container upgrade tasks
|
- name: Rabbitmq baremetal to container upgrade tasks
|
||||||
when:
|
when:
|
||||||
- step|int == 1
|
- step|int == 1
|
||||||
|
@ -80,7 +80,7 @@ outputs:
|
|||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, RedisNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, RedisNetwork]}
|
||||||
redis::port: 6379
|
redis::port: 6379
|
||||||
redis::sentinel::master_name: "%{hiera('redis_short_bootstrap_node_name')}"
|
redis::sentinel::master_name: "%{hiera('bootstrap_nodeid')}"
|
||||||
redis::sentinel::redis_host: "%{hiera('bootstrap_nodeid_ip')}"
|
redis::sentinel::redis_host: "%{hiera('bootstrap_nodeid_ip')}"
|
||||||
redis::sentinel::notification_script: '/usr/local/bin/redis-notifications.sh'
|
redis::sentinel::notification_script: '/usr/local/bin/redis-notifications.sh'
|
||||||
redis::sentinel::sentinel_bind:
|
redis::sentinel::sentinel_bind:
|
||||||
|
@ -188,9 +188,13 @@ outputs:
|
|||||||
- name: Stop gnocchi_api service (running under httpd)
|
- name: Stop gnocchi_api service (running under httpd)
|
||||||
when: step|int == 1
|
when: step|int == 1
|
||||||
service: name=httpd state=stopped
|
service: name=httpd state=stopped
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
tags: common
|
||||||
|
command: hiera bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
tags: common
|
tags: common
|
||||||
set_fact: is_bootstrap_node={{gnocchi_api_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Setup gnocchi db during upgrade
|
- name: Setup gnocchi db during upgrade
|
||||||
command: gnocchi-upgrade
|
command: gnocchi-upgrade
|
||||||
when:
|
when:
|
||||||
|
@ -84,8 +84,12 @@ outputs:
|
|||||||
stat:
|
stat:
|
||||||
path: "{{cert_path}}"
|
path: "{{cert_path}}"
|
||||||
|
|
||||||
|
- name: Assign bootstrap node
|
||||||
|
command: hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
|
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
set_fact: is_bootstrap_node={{haproxy_public_tls_inject_short_bootstrap_node_name == ansible_hostname}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
|
|
||||||
- name: get haproxy status
|
- name: get haproxy status
|
||||||
register: haproxy_state
|
register: haproxy_state
|
||||||
|
@ -249,9 +249,13 @@ outputs:
|
|||||||
list_concat:
|
list_concat:
|
||||||
- get_attr: [ApacheServiceBase, role_data, upgrade_tasks]
|
- get_attr: [ApacheServiceBase, role_data, upgrade_tasks]
|
||||||
-
|
-
|
||||||
|
- name: get bootstrap nodeid
|
||||||
|
tags: common
|
||||||
|
command: hiera bootstrap_nodeid
|
||||||
|
register: bootstrap_node
|
||||||
- name: set is_bootstrap_node fact
|
- name: set is_bootstrap_node fact
|
||||||
tags: common
|
tags: common
|
||||||
set_fact: is_bootstrap_node={{nova_api_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
|
||||||
- name: Extra migration for nova tripleo/+bug/1656791
|
- name: Extra migration for nova tripleo/+bug/1656791
|
||||||
tags: pre-upgrade
|
tags: pre-upgrade
|
||||||
when:
|
when:
|
||||||
|
Loading…
Reference in New Issue
Block a user