db_sync doesn't work with sql_mode = 'TRADITIONAL'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Incomplete
|
Undecided
|
Alexandru Bogdan Pica |
Bug Description
Hi
The keystone-manage db_sync command fails with the following error :
2016-07-14 16:13:17.670 19170 ERROR keystone DBError: (_mysql_
OS: Debian 8.5
Keystone ver : 2:9.0.0-2~bpo8+1
Mysql: Server version: 5.5.44-MariaDB-log MariaDB Server
The problem seems to be related with :
cfg.StrOpt(
from /usr/lib/
It seems that on MariaDB if you set:
set session sql_mode = 'TRADITIONAL';
the query :
show full tables from "keystone"
fails
I've solve the problem by adding ANSI to default sql mode:
cfg.StrOpt(
Changed in keystone: | |
status: | Invalid → Incomplete |
Changed in keystone: | |
status: | Expired → Fix Committed |
status: | Fix Committed → Confirmed |
Changed in keystone: | |
status: | Confirmed → Fix Committed |
assignee: | nobody → Alexandru Bogdan Pica (dtk.me) |
Hi Alexandru,
I'm unable able to recreate this using Ubuntu 15.10, keystone's master branch (64fbbeda58050c 8248540c0f33a67 53a43a42845) and mysql 5.6.25- 0ubuntu0. 15.04.1. I was able to migrate successfully using mysql_sql_ mode=TRADITIONA L.