cinder-manage db sync fails due to row size too large

Bug #1968746 reported by Jared Baker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Wishlist
Brian Rosmaita

Bug Description

OS: Ubuntu 20.04
DB: MariaDB 10.3
Release: Xena

Running the cinder-manage db sync to upgrade to Xena from Wallaby resulted in error:

2022-04-11 15:42:20.555 8601 CRITICAL cinder [-] Unhandled error: sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1118, 'Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs')

The fix was to manually change row_format from 'Compact' to 'Dynamic' by running: ALTER TABLE volumes ROW_FORMAT=DYNAMIC;

We likely hit this issue because we are a long running cluster from Kilo era. I believe at some point the cinder-manage db sync should have changed this ROW_FORMAT to 'Dynamic' for us.

Revision history for this message
Jared Baker (shubjero) wrote :
Changed in cinder:
importance: Undecided → Medium
tags: added: cinder-manage db
Changed in cinder:
assignee: nobody → Brian Rosmaita (brian-rosmaita)
Revision history for this message
Sofia Enriquez (lsofia-enriquez) wrote :

This bug was discussed at the bug meeting: https://meetings.opendev.org/meetings/cinder_bs/2022/cinder_bs.2022-04-13-15.02.log.html#l-20

This is NOT A BUG. However, Cinder should improve the documentation and add a statement regarding the versions we test with/support. In particular, the newer mysql versions don't hit this.

Changed in cinder:
importance: Medium → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.