Comment 13 for bug 1279000

Revision history for this message
Dolph Mathews (dolph) wrote :

Thiago, that exception looks to be caused by this patch to oslo.db:

  https://github.com/openstack/oslo-incubator/commit/7aa94df

Should there be an exception for migrate_version there? (why do we care about the charset of that table?) Alternatively, Nova appears to have a workaround:

    if migrate_engine.name == "mysql":
        # In Folsom we explicitly converted migrate_version to UTF8.
        sql = "ALTER TABLE migrate_version CONVERT TO CHARACTER SET utf8;"
        # Set default DB charset to UTF8.
        sql += "ALTER DATABASE %s DEFAULT CHARACTER SET utf8;" % \
                migrate_engine.url.database
        migrate_engine.execute(sql)