From 6b65f0f3b9f4ac8f372aeca80413242b70248d86 Mon Sep 17 00:00:00 2001 From: Rabi Mishra Date: Thu, 29 Nov 2018 15:07:13 +0530 Subject: [PATCH] Mount config-data/puppet-generated/nova for nova_api_ensure_default_cell When an update changes NovaPassword, we need to run nova_api_ensure_default_cell container for it to be able to change the db_connection for the cells in nova_api db. Otherwise nova_api_discover_hosts which runs all the time fails with db erorr as the connection string in the database would not change. Currently, we don't mount either /var/lib/config-data/nova or /var/lib/config-data/puppet-generated/nova, hence the TRIPLEO_CONFIG_HASH is not generated for the container and it does not run during update and may be not in upgrade either. Change-Id: I0a972796e45a8df614619c95e9d9be9af183b4e5 Closes-Bug: #1805803 (cherry picked from commit 0012c42e6c5bdd795213c30e419856e66ea90d4c) --- docker/services/nova-api.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/services/nova-api.yaml b/docker/services/nova-api.yaml index 24af4b53a3..dd125a3816 100644 --- a/docker/services/nova-api.yaml +++ b/docker/services/nova-api.yaml @@ -245,9 +245,8 @@ outputs: list_concat: - *nova_api_bootstrap_volumes - - - /var/lib/config-data/nova/etc/my.cnf.d/tripleo.cnf:/etc/my.cnf.d/tripleo.cnf:ro - - /var/lib/config-data/nova/etc/nova/:/etc/nova/:ro - /var/log/containers/nova:/var/log/nova + - /var/lib/config-data/puppet-generated/nova/:/var/lib/kolla/config_files/src:ro - /var/lib/docker-config-scripts/nova_api_ensure_default_cell.sh:/nova_api_ensure_default_cell.sh:ro user: root command: "/usr/bin/bootstrap_host_exec nova_api /nova_api_ensure_default_cell.sh"