在Glance的初始配置期间,运行时:
su -s /bin/sh -c "glance-manage db_sync" glance`
我收到以下错误:
2017-07-18 12:14:04.381 14001 INFO glance.db.sqlalchemy.migrate_repo.schema [-] creating table image_members
2017-07-18 12:14:05.095 14001 INFO migrate.versioning.api [-] done
2017-07-18 12:14:05.095 14001 INFO migrate.versioning.api [-] 8 -> 9...
2017-07-18 12:14:05.819 14001 INFO migrate.versioning.api [-] done
2017-07-18 12:14:05.820 14001 INFO migrate.versioning.api [-] 9 -> 10...
2017-07-18 12:14:05.861 14001 INFO migrate.versioning.api [-] done
2017-07-18 12:14:05.861 14001 INFO migrate.versioning.api [-] 10 -> 11...
2017-07-18 12:14:06.494 14001 INFO migrate.versioning.api [-] done
2017-07-18 12:14:06.494 14001 INFO migrate.versioning.api [-] 11 -> 12...
2017-07-18 12:14:06.604 14001 CRITICAL glance [-] ArgumentError: Column type VARCHAR(36) on column 'images.id' is not compatible with autoincrement=True
有人能帮我解决这个问题吗?
答案 0 :(得分:1)
编辑:请将sqlalchemy-migrate升级到0.11.0以解决此问题。
归功于Mike Bayer。
====
我刚刚遇到了同样的错误。
事实证明,将SQLAlchemy从1.1降级到1.0可以解决问题。
执行alex@cyclonit-laptop ~/Downloads/libft4222-1.2.1.4/examples $ ./a.out
Device 0 is interface A of mode-0 FT4222H:
0x0403601c FT4222 A
Chip version: 42220200, LibFT4222 version: 01020104
The content of the register 06 is : FF
reading success if : 0 = 0
Skipping interface B of mode-0 FT4222H.
只需运行sudo pip uninstall sqlalchemy && sudo pip install sqlalchemy==1.0
重新配置扫视升级脚本。
我在这里提交了一个关于glance bug tracker的错误:
https://bugs.launchpad.net/glance/+bug/1723097
在SQLAlchemy邮件列表中发送电子邮件:
https://groups.google.com/forum/#!topic/sqlalchemy/xoBcc6UnpWo