commit be3fcbcad318ff654538772dcca31722b5b4e5ff
Author: Liam Young <email address hidden>
Date: Tue Oct 3 10:50:02 2017 +0000
Block endpoint reg if cluster partially formed
When an existing cluster of the service is scaled out the new unit
will join with keystone before it is fully clustered. In identity
joined hook the charmhelpers function canonical_url is called which
in turn uses another charmhelpers function, resolve_address.
resolve_address will only return the vip if the vip is set in config
AND the unit is clustered. This means that the units local address
is returned and that is then registered with keystone.
This change gates registering an endpoint if the cluster is
partially formed.
Reviewed: https:/ /review. openstack. org/509164 /git.openstack. org/cgit/ openstack/ charm-glance/ commit/ ?id=be3fcbcad31 8ff654538772dcc a31722b5b4e5ff
Committed: https:/
Submitter: Jenkins
Branch: master
commit be3fcbcad318ff6 54538772dcca317 22b5b4e5ff
Author: Liam Young <email address hidden>
Date: Tue Oct 3 10:50:02 2017 +0000
Block endpoint reg if cluster partially formed
When an existing cluster of the service is scaled out the new unit
will join with keystone before it is fully clustered. In identity
joined hook the charmhelpers function canonical_url is called which
in turn uses another charmhelpers function, resolve_address.
resolve_address will only return the vip if the vip is set in config
AND the unit is clustered. This means that the units local address
is returned and that is then registered with keystone.
This change gates registering an endpoint if the cluster is
partially formed.
Change-Id: I85e7304b1480a9 5c784f46490dbcc 0c4cc1c3129
Partial-Bug: #1544959