hacluster helper causes deployment failures if relations are made before config options are set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Triaged
|
Low
|
Unassigned | ||
OpenStack Keystone Charm |
Triaged
|
Low
|
Unassigned | ||
keystone (Juju Charms Collection) |
Invalid
|
Low
|
Unassigned |
Bug Description
The hacluster helper (and subsequently charms such as keystone), are not tolerant of missing cluster data. This causes them to fail a hook if the ha-relation-joined hook is hit before the charm config option is applied.
Instead of failing the deployment, the helper and affected charms should probably go into a blocked state, awaiting ample configuration information.
http://
# Unit log & trace
# NOTE: In this output, I patched get_hacluster_
unit-keystone-
unit-keystone-
unit-keystone-
unit-keystone-
unit-keystone-
unit-keystone-
unit-keystone-
unit-keystone-
unit-keystone-
unit-keystone-
unit-keystone-
unit-keystone-
unit-keystone-
unit-keystone-
# Juju stat (before charm config options were applied)
[Services]
NAME STATUS EXPOSED CHARM
hacluster false local:trusty/
keystone error false local:trusty/
mysql unknown false local:trusty/
[Units]
ID WORKLOAD-STATE AGENT-STATE VERSION MACHINE PORTS PUBLIC-ADDRESS MESSAGE
keystone/0 error idle 1.25.1 1 10.5.24.161 hook failed: "ha-relation-
hacluster/0 active idle 1.25.1 10.5.24.161 Unit is ready and clustered
keystone/1 error idle 1.25.1 2 10.5.24.162 hook failed: "ha-relation-
hacluster/1 active idle 1.25.1 10.5.24.162 Unit is ready and clustered
keystone/2 error idle 1.25.1 3 10.5.24.163 hook failed: "ha-relation-
hacluster/2 active idle 1.25.1 10.5.24.163 Unit is ready and clustered
mysql/0 unknown idle 1.25.1 4 10.5.24.164
[Machines]
ID STATE VERSION DNS INS-ID SERIES HARDWARE
0 started 1.25.1 10.5.24.160 3bbb58db-
1 started 1.25.1 10.5.24.161 ac00dcdc-
2 started 1.25.1 10.5.24.162 87f381a2-
3 started 1.25.1 10.5.24.163 136322e1-
4 started 1.25.1 10.5.24.164 d3cf34b4-
Changed in keystone (Juju Charms Collection): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in charm-helpers: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in charm-keystone: | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in keystone (Juju Charms Collection): | |
status: | Triaged → Invalid |