Undercloud-Upgrade: Ensure tripleo_mysql is running

Ensure that tripleo_mysql service is running before
trying to do the database migration, or the ephemeral heat

Change-Id: I08aba07e7b426d50aebb33f1b95907d54415a714
This commit is contained in:
Juan Badia Payno 2023-11-16 16:37:47 +01:00
parent dc99354cf0
commit c399d0ba8e
1 changed files with 5 additions and 0 deletions

View File

@ -112,6 +112,11 @@ outputs:
- placement_api_db_sync
- placement_wait_for_service
- placement_init_log
- name: ensure tripleo_mysql service is running
shell: systemctl start tripleo_mysql
become: true
when:
- step|int == 0
- name: migrate existing introspection data
shell: >
{{ container_cli }} exec -u root ironic_inspector ironic-inspector-migrate-data