Keystone become "Database not initialised" after scale up and scale down
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Keystone Charm |
In Progress
|
Medium
|
Phan Trung Thanh |
Bug Description
Description
==========
Keystone HA is enabled.
After I scale up 1 keystone unit and remove the keystone unit with vip.
The cluster become "Database not initialised".
Versions
=======
Cloud focal-wallaby
Deploy openstack from https:/
(git commit: 3f74a67704ed765
Modify the charm version and turn on ovn in bundle.yaml
diff --git a/stable/
index 39297cf..c52ecb2 100644
--- a/stable/
+++ b/stable/
@@ -219,7 +219,7 @@ applications:
annotations:
gui-x: '300'
gui-y: '1270'
- charm: cs:keystone-323
+ charm: cs:keystone-326
num_units: 1
options:
@@ -359,7 +359,7 @@ applications:
# top of this file.
options:
- bridge-
+ #bridge-
vault-
annotations:
gui-x: '1535'
Reproduce Step
===================
1. Prepare the Openstack environment like above in serverstack.
2. Turn on Keystone HA
juju add-unit -n 2 keystone
juju config keystone vip=10.5.55.1
juju deploy --config cluster_count=3 hacluster keystone-hacluster
juju add-relation keystone-
Everything is good except the certificate issue in LP: #1930763
3. Scale up 1 keystone unit
juju add-unit -n 1 keystone
4. Remove the keystone unit with VIP
juju remove-unit keystone/28
After that, the cluster status become "blcoked"
```
Unit Workload Agent Machine Public address Ports Message
keystone/29 blocked idle 122 10.5.2.26 5000/tcp Database not initialised
keystone-
keystone-
keystone/30* blocked idle 123 10.5.3.123 5000/tcp Database not initialised
keystone-
keystone-
keystone/31 blocked idle 124 10.5.2.152 5000/tcp Database not initialised
keystone-
keystone-
```
Detail Information
=================
I find related log in keystone/29.
2021-09-01 03:28:42 DEBUG unit.keystone/
2021-09-01 03:28:42 DEBUG unit.keystone/
2021-09-01 03:28:42 DEBUG unit.keystone/
2021-09-01 03:28:42 DEBUG unit.keystone/
2021-09-01 03:28:42 DEBUG unit.keystone/
2021-09-01 03:28:42 DEBUG unit.keystone/
2021-09-01 03:28:42 INFO unit.keystone/
2021-09-01 03:28:42 DEBUG unit.keystone/
2021-09-01 03:28:42 DEBUG unit.keystone/
2021-09-01 03:28:42 DEBUG unit.keystone/
2021-09-01 03:28:42 DEBUG unit.keystone/
2021-09-01 03:28:42 DEBUG unit.keystone/
2021-09-01 03:28:42 DEBUG unit.keystone/
2021-09-01 03:28:42 DEBUG unit.keystone/
At the meantime, one of the mysql-innodb-
This error can be fixed after this command
juju resolve --no-retry mysql-innodb-
But keystone is still stay in blocked status.
Unit Workload Agent Machine Public address Ports Message
mysql-innodb-
E and can tolerate up to ONE failure. mysql-innodb-
mysql-innodb-
I will attach juju crashdump later, it's too big to upload now.
Expected result
=======
keystone cluster action complete and the unit is "active" state.
description: | updated |
description: | updated |
Changed in charm-keystone: | |
assignee: | nobody → Phan Trung Thanh (tphan025) |
Changed in charm-keystone: | |
status: | Triaged → In Progress |
Attach the juju crashdump