commit 12dc474830b3a6b1e8687829cca3fd3963c67b41
Author: Mark Goddard <email address hidden>
Date: Mon Jun 7 10:34:36 2021 +0100
grafana: add bootstrap during upgrade
Upgrading from Victoria to Wallaby with Monasca enabled fails waiting
for Grafana to start.
Grafana defaults to enabled if Monasca is enabled in Wallaby (was
default disabled in Victoria), so the database user and tables don't
necessarily exist prior to the upgrade.
Running `kolla-ansible upgrade` then attempts to start the Grafana
container, but fails to include the bootstrap task (which creates the
db) so the container is unable to start with a database connection
error, from the grafana container logs:
service init failed: failed to check table existence: Error 1045:
Access denied for user 'grafana'@'xxx' (using password: YES)
This change performs a bootstrap of Grafana during upgrade. It is
required only for the Wallaby release where the default change is
introduced.
Closes-Bug: #1931037
Co-Authored-By: Scott Shambarger
Reviewed: https:/ /review. opendev. org/c/openstack /kolla- ansible/ +/795072 /opendev. org/openstack/ kolla-ansible/ commit/ 12dc474830b3a6b 1e8687829cca3fd 3963c67b41
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 12dc474830b3a6b 1e8687829cca3fd 3963c67b41
Author: Mark Goddard <email address hidden>
Date: Mon Jun 7 10:34:36 2021 +0100
grafana: add bootstrap during upgrade
Upgrading from Victoria to Wallaby with Monasca enabled fails waiting
for Grafana to start.
Grafana defaults to enabled if Monasca is enabled in Wallaby (was
default disabled in Victoria), so the database user and tables don't
necessarily exist prior to the upgrade.
Running `kolla-ansible upgrade` then attempts to start the Grafana
container, but fails to include the bootstrap task (which creates the
db) so the container is unable to start with a database connection
error, from the grafana container logs:
service init failed: failed to check table existence: Error 1045:
Access denied for user 'grafana'@'xxx' (using password: YES)
This change performs a bootstrap of Grafana during upgrade. It is
required only for the Wallaby release where the default change is
introduced.
Closes-Bug: #1931037
Co-Authored-By: Scott Shambarger
Change-Id: Ib32b78cfd6f3fe 535d30d8aa48f31 87b9aec746e