keystone/noble,now 2:25.0.0-0ubuntu1 keystone -manage db_sync
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keystone (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Fresh ubuntu 24.04 install when running
su -s /bin/sh -c "keystone-manage db_sync " keystone
This ends up in /var/log/
2024-04-29 12:47:10.184549 File "/usr/lib/
2024-04-29 12:47:10.184554 err.raise_
2024-04-29 12:47:10.184572 File "/usr/lib/
2024-04-29 12:47:10.184577 raise errorclass(errno, errval)
2024-04-29 12:47:10.184629 sqlalchemy.
2024-04-29 12:47:10.184634 [SQL: SELECT project.id AS project_id, project.name AS project_name, project.domain_id AS project_domain_id, project.description AS project_
2024-04-29 12:47:10.184640 FROM project
2024-04-29 12:47:10.184644 WHERE project.name = %(name_1)s AND project.domain_id = %(domain_id_1)s]
2024-04-29 12:47:10.184648 [parameters: {'name_1': 'Default', 'domain_id_1': '<<keystone.
after dbsync is run the project table does exist so i think things are just done in wrong order, result is that keystone dosnt work afterwards though
Hi Johan
I'm not able to reproduce your problem; in my setup I've configured mysql with a keystone database, username and password for access, and then configured this in /etc/keystone/ keystone. conf
I then ran the db_sync command to setup the database, created the fernet keys and then successfully bootstrapped the deployment.
2024-04-29 14:48:45.073 12333 INFO alembic. runtime. migration [-] Context impl MySQLImpl. runtime. migration [-] Will assume non-transactional DDL. runtime. migration [-] Running upgrade -> 27e647c0fad4, Initial version. runtime. migration [-] Running upgrade 27e647c0fad4 -> 29e87d24a316, Initial no-op Yoga expand migration. runtime. migration [-] Running upgrade 29e87d24a316 -> b4f8b3f584e0, Fix incorrect constraints. runtime. migration [-] Running upgrade b4f8b3f584e0 -> 11c3b243b4cb, Remove service_ provider. relay_state_ prefix server default. runtime. migration [-] Running upgrade 11c3b243b4cb -> 47147121, Add Identity Federation attribute mapping schema version. runtime. migration [-] Running upgrade 27e647c0fad4 -> e25ffa003242, Initial no-op Yoga contract migration. runtime. migration [-] Running upgrade e25ffa003242 -> 99de3849d860, Fix incorrect constraints. runtime. migration [-] Running upgrade 99de3849d860 -> c88cdce8f248, Remove duplicate constraints. common. fernet_ utils [-] Created a new temporary key: /etc/keystone/ fernet- keys/0. tmp common. fernet_ utils [-] Become a valid new key: /etc/keystone/ fernet- keys/0 common. fernet_ utils [-] Starting key rotation with 1 key files: ['/etc/ keystone/ fernet- keys/0' ] common. fernet_ utils [-] Created a new temporary key: /etc/keystone/ fernet- keys/0. tmp common. fernet_ utils [-] Current primary key is: 0 common. fernet_ utils [-] Next primary key will be: 1 common. fernet_ utils [-] Promoted key 0 to be the primary: 1 common. fernet_ utils [-] Become a valid new key: /etc/keystone/ fernet- keys/0 common. utils [-] /etc/keystone/ credential- keys/ does not appear to exist; attempting to create it common. fernet_ utils [-] Created a new temporary key: /etc/keystone/ credential- keys/0. tmp common. fernet_ utils [-] Become a valid new key: /etc/keystone/ credential- keys/0 common. fernet_ utils [-] Starting key rotation with 1 key files: ['/etc/ keystone/ credential- keys/0' ]
2024-04-29 14:48:45.073 12333 INFO alembic.
2024-04-29 14:48:45.093 12333 INFO alembic.
2024-04-29 14:48:45.939 12333 INFO alembic.
2024-04-29 14:48:45.940 12333 INFO alembic.
2024-04-29 14:48:45.951 12333 INFO alembic.
2024-04-29 14:48:45.957 12333 INFO alembic.
2024-04-29 14:48:45.967 12333 INFO alembic.
2024-04-29 14:48:45.967 12333 INFO alembic.
2024-04-29 14:48:45.983 12333 INFO alembic.
2024-04-29 14:49:26.124 13264 INFO keystone.
2024-04-29 14:49:26.125 13264 INFO keystone.
2024-04-29 14:49:26.125 13264 INFO keystone.
2024-04-29 14:49:26.125 13264 INFO keystone.
2024-04-29 14:49:26.125 13264 INFO keystone.
2024-04-29 14:49:26.126 13264 INFO keystone.
2024-04-29 14:49:26.126 13264 INFO keystone.
2024-04-29 14:49:26.126 13264 INFO keystone.
2024-04-29 14:49:36.731 13449 INFO keystone.
2024-04-29 14:49:36.732 13449 INFO keystone.
2024-04-29 14:49:36.732 13449 INFO keystone.
2024-04-29 14:49:36.732 13449 INFO keystone.
2024-04-29 14:49:36.732 13449 INFO keys...