Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Upgrade playbook fixes for OS upgrade
Browse files Browse the repository at this point in the history
These are remaining fixes for pacemaker and mysql tasks to make
upgrade_steps_playbook.yaml pass on machines after operating system
upgrade to EL 8.

Change-Id: If8c97752463e560c60d35e10081b5105816e66f6
  • Loading branch information
jistr committed Jun 18, 2019
1 parent cb8caaa commit 6baf532
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deployment/database/mysql-pacemaker-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -556,13 +556,21 @@ outputs:
- ' '
- - 'kolla_set_configs;'
- 'chown -R mysql:mysql /var/lib/mysql;'
- 'chown -R mysql:mysql /var/log/mariadb;'
- 'mysqld_safe --user=mysql --wsrep-provider=none --skip-networking --wsrep-on=off &'
- 'timeout 60 sh -c ''while ! mysqladmin ping --silent; do sleep 1; done'';'
- 'mysql_upgrade;'
- 'mysqladmin shutdown'
- name: Bind mounts for temporary container
set_fact:
mysql_upgrade_db_bind_mounts: *mysql_volumes
- name: Make sure Mysql upgrade temporary directory exists
file:
path: /tmp/mariadb-upgrade
state: directory
owner: root
group: root
mode: 0700
- name: Upgrade Mysql database from a temporary container
shell:
str_replace:
Expand Down
6 changes: 6 additions & 0 deletions deployment/pacemaker/pacemaker-baremetal-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,20 @@ outputs:
when: pacemaker_short_node_names_upgraded | length == pacemaker_short_node_names | length
- name: upgrade step 2
when: step|int == 2
vars:
upgrade_leapp_enabled: {get_param: UpgradeLeappEnabled}
block:
- name: Stop pacemaker cluster
pacemaker_cluster: state=offline
when: not upgrade_leapp_enabled
- name: upgrade step 4
when: step|int == 4
vars:
upgrade_leapp_enabled: {get_param: UpgradeLeappEnabled}
block:
- name: Start pacemaker cluster
pacemaker_cluster: state=online
when: not upgrade_leapp_enabled
update_tasks:
- name: Check pacemaker cluster running before the minor update
when: step|int == 0 # TODO(marios) disabling validations?
Expand Down

0 comments on commit 6baf532

Please sign in to comment.