The db-sync command fails with MySQL 8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
High
|
Unassigned | ||
Ussuri |
Fix Released
|
High
|
Unassigned | ||
Victoria |
Fix Released
|
High
|
Unassigned | ||
magnum (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Focal |
Fix Released
|
High
|
Unassigned | ||
Groovy |
Won't Fix
|
High
|
Unassigned |
Bug Description
[Impact]
New installations of OpenStack Magnum with Mysql8 fail with a traceback when trying to initialize the database
[Test Case]
Use the OpenStack charms to deploy Mggnum on Ubuntu Focal. Using Focal is expected to have a traceback and with this change is expected to setup successfully.
[Regression Potential]
The regression potential for this is minimal as the package currently does not work at all with mysql8 which ships with Ubuntu Focal and above. This change has already landed into the upstream project, both on Master and in their stable branches.
The proposed change is a cherry-pick from upstream that resolves this issue by updating the old migrations to not set constraints that break on Mysql8. This only affects new deploys that would normally step through all of the old migrations so shouldn't affect running deploys.
-------
The command to do the Magnum DB sync ('magnum-db-manage upgrade') fails when using MySQL 8 releases.
This issue is tracked in the upstream Magnum project at: https:/
There is a fix already merged on Magnum master branch to fix this: https:/
We need to have this fix included with Magnum distro packages that are expected to use MySQL 8. For example, deployments on Ubuntu Focal (or higher) are expected to be using MySQL 8 already.
Changed in magnum (Ubuntu Focal): | |
status: | New → Triaged |
Changed in magnum (Ubuntu Groovy): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in magnum (Ubuntu Focal): | |
importance: | Undecided → High |
Changed in magnum (Ubuntu): | |
status: | New → Fix Released |
Changed in cloud-archive: | |
status: | New → Fix Released |
importance: | Undecided → High |
Changed in magnum (Ubuntu): | |
importance: | Undecided → High |
description: | updated |
description: | updated |
description: | updated |
Quick update on this one.
Corey did separate PPAs for Ussuri and Victoria Magnum packages with builds from latest upstream stable branch: /launchpad. net/~openstack- charmers/ +archive/ ubuntu/ magnum- ussuri /launchpad. net/~openstack- charmers/ +archive/ ubuntu/ magnum- victoria
https:/
https:/
Both Ussuri and Victoria Magnum packages from Corey's PPAs include the fix for this MySQL 8 DB migration issue.