Upgrade fails to bootstrap grafana when monasca enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Invalid
|
High
|
Unassigned | ||
Wallaby |
Fix Committed
|
High
|
Unassigned |
Bug Description
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)
I'm guessing normally bootstrap isn't required on upgrade, but since the enabled state for Grafana is changed during upgrade, it is in this case.
I added `import_tasks: bootstrap.yml` to upgrade.yml, and the upgrade completed without error.
Changed in kolla-ansible: | |
status: | Triaged → Invalid |
Good catch Scott.