From 41fa313250bbdef5da60fa9cf22845644aae2da7 Mon Sep 17 00:00:00 2001 From: Georgina Shippey Date: Wed, 20 Nov 2019 16:24:19 +0000 Subject: [PATCH] Install galera client for placement migration The placement migration tool interacts directly with the galera database and needs the client libraries and command line tools in order to do this. On a metal deploy the placement and database may be co-located so these libraries are present, but on an LXC deployment they are not available in the placement container. During upgrade from stein to train received the error: "Failed to connect to NOVA_API database", "/openstack/venvs/placement -20.0.0.0rc2.dev17/lib/python3.6/site-packages/placement_db_tools/ mysql-migrate-db.sh: line 79: mysql: command not found Change-Id: I85b97d1f503bfbda5a893b9afbf74bd28f732882 --- playbooks/os-placement-install.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/os-placement-install.yml b/playbooks/os-placement-install.yml index a9f0218140..0f226b31d9 100644 --- a/playbooks/os-placement-install.yml +++ b/playbooks/os-placement-install.yml @@ -47,6 +47,8 @@ ignore_errors: true roles: + - role: "galera_client" + when: placement_migrate_flag | default(False) - role: "os_placement" - role: "system_crontab_coordination" tags: