keystone-manage db_sync doesn't finish

Bug #1982214 reported by Felipe Reyes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Keystone Charm
New
Undecided
Unassigned

Bug Description

keystone-manage stayed 2.5 hrs running and it didn't complete before the CI run timed out, when looking at the logs there are no traces of failures or information of what's doing, /var/log/keystone/keystone-manage.log doesn't contain logs after the database was configured correctly.

CI run: https://openstack-ci-reports.ubuntu.com/artifacts/58f/846394/1/check/focal-ussuri/58f7e56/

juju status:

keystone/0* maintenance executing 3 172.16.0.122 5000/tcp Migrating the keystone database
  keystone-mysql-router/0* active idle 172.16.0.122 Unit is ready

zaza func-test log:

2022-07-19 16:39:13.308610 | focal-medium | 2022-07-19 16:39:13 [INFO] Now checking workload status and status messages
2022-07-19 16:42:22.802841 | focal-medium | 2022-07-19 16:42:22 [INFO] Application rabbitmq-server is ready.
2022-07-19 16:51:06.309499 | focal-medium | 2022-07-19 16:51:06 [INFO] Application barbican-mysql-router is ready.
2022-07-19 16:51:32.558628 | focal-medium | 2022-07-19 16:51:32 [INFO] Application mysql-innodb-cluster is ready.
2022-07-19 16:53:05.066923 | focal-medium | 2022-07-19 16:53:05 [INFO] Application keystone-mysql-router is ready.
2022-07-19 18:39:15.464876 | focal-medium | 2022-07-19 18:39:15 [INFO] TIMEOUT: Workloads didn't reach acceptable status:
2022-07-19 18:39:15.466194 | focal-medium | 2022-07-19 18:39:15 [INFO] Timed out waiting for 'keystone/0'. The unit status is 'not idle' which is not one of '['idle']'

unit-keystone-0.log:

2022-07-19 16:53:06 INFO unit.keystone/0.juju-log server.go:319 shared-db:5: Migrating the keystone database.

psaux.txt:

root 27096 0.0 1.3 35384 26764 ? S 16:53 0:00 python3 /var/lib/juju/agents/unit-keystone-0/charm/hooks/shared-db-relation-changed
root 27635 0.0 0.2 11584 4744 ? S 16:53 0:00 sudo -u keystone keystone-manage db_sync
keystone 27636 0.0 4.0 91412 82824 ? S 16:53 0:01 /usr/bin/python3 /usr/bin/keystone-manage db_sync

Felipe Reyes (freyes)
tags: added: unstable-test
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.