tripleo-ansible/playbooks/step_create_databases.yml
Julia Kreger 58b4357379 Wait for long running MySQL sync processes
Galera resyncronizing larger, and in use databases can apparently,
in some cases take a longer period of time.  This revision adds a
script to wait up to 30 minutes, and informs a user upon failure
of options to attempt should a failure occur.

Change-Id: Iec5f41aa96c09e261e7d36f18df0b4eb05bee9d5
2014-11-18 21:42:00 -05:00

27 lines
1.0 KiB
YAML

# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
- name: "Pausing for 60 seconds to give MySQL time to become ready - Helion"
pause: seconds=60 prompt="Pausing for 60 seconds to give MySQL time to become ready"
when: helion is defined
- name: "Execute script to wait for MySQL to enter a Synced state"
sudo: yes
script: files/wait_for_database-helion.sh
when: helion is defined
- name: Triggering os-create-db on databases
sudo: yes
script: files/create-databases.sh
when: helion is defined