-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error migrating liberty to mitaka recovering a sql dump from the scratch #194
Comments
maybe related https://github.com/telefonicasc/iotp-onpremise/pull/91 Bugs Fixed
|
mysql> CREATE TABLE local_user (id INTEGER NOT NULL AUTO_INCREMENT, user_id VARCHAR(64) NOT NULL, domain_id VARCHAR(64) NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY (id), UNIQUE (domain_id, name), UNIQUE (user_id), FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE); ERROR 1215 (HY000): Cannot add foreign key constraint mysql> SHOW ENGINE INNODB STATUS; LATEST FOREIGN KEY ERROR2021-11-04 14:13:14 0x7f2aa05a6700 Error in foreign key constraint of table keystone/local_user: |
https://dev.mysql.com/doc/refman/8.0/en/create-table-foreign-keys.html Temporary disable with: |
Unfortunately a keystone SQL dump is not stored all stuff needed to recover properly a database and then migrate it to a later version. To achieve that is needed that keystone creates a its database and then load (without removing database before) data from a dump, in order to keep all stuff needed. |
Migrating from keystone liberty (spasword 1.4.X) to mitaka (1.5.X) keystone is getting this error
2021-11-03 11:11:50.028 147 ERROR keystone DBError: (_mysql_exceptions.IntegrityError) (1215, 'Cannot add foreign key constraint') [SQL: u'\nCREATE TABLE local_user (\n\tid INTEGER NOT NULL AUTO_INCREMENT, \n\tuser_id VARCHAR(64) NOT NULL, \n\tdomain_id VARCHAR(64) NOT NULL, \n\tname VARCHAR(255) NOT NULL, \n\tPRIMARY KEY (id)
, \n\tUNIQUE (domain_id, name), \n\tUNIQUE (user_id), \n\tFOREIGN KEY(user_id) REFERENCES user (id)
ON DELETE CASCADE\n)\n\n']
with some kind of data
Migrate from liberty to mitaka is needed as requested by #193
The text was updated successfully, but these errors were encountered: