bifrost/releasenotes/notes/mariadb-upgrade-be88fdc90e9959c4.yaml
Mark Goddard da3b67819e Repair MariaDB tables after upgrade
Sometimes MariaDB changes the format of database tables between
releases. A mysql_upgrade tool is provided that will attempt to repair
the tables to make them compatible with the new version of MariaDB.

Upgrading from Ubuntu Focal 20.04 to Ubuntu Jammy 22.04 will trigger
such an issue:

  TASK [bifrost-ironic-install : MySQL - Creating user for Ironic]
  The user specified as a definer ('mariadb.sys'@'localhost') does not exist

This change runs mysql_upgrade after installing MariaDB.

Story: 2010208
Task: 45935

Change-Id: Iabcb8296489b0915bdb6a2a8a0de4dfe87853482
2022-08-02 17:17:05 +01:00

6 lines
125 B
YAML

---
fixes:
- |
Fixes an issue where the MariaDB database tables were not repaired
following an upgrade of MariaDB.