I just encountered this exact same problem while shuffling my units around compute hosts.
I am using Focal/Xena with keystone charm revision 576 from the xena/stable channel.
- Added a new replacement unit to a new node going up from 3 keystone to 4
- Juju remove-unit keystone/1* (leader)
- All keystone units started displaying the "Database not initialised" message.
- Executing the following command resolved the issue:
$ juju run -u keystone/leader 'leader-set db-initialised=True'
I just encountered this exact same problem while shuffling my units around compute hosts.
I am using Focal/Xena with keystone charm revision 576 from the xena/stable channel.
- Added a new replacement unit to a new node going up from 3 keystone to 4
- Juju remove-unit keystone/1* (leader)
- All keystone units started displaying the "Database not initialised" message.
- Executing the following command resolved the issue:
$ juju run -u keystone/leader 'leader-set db-initialised= True'