commit 6cc620ab270bc0d9f12a2ff3e3b439c7f4e10a90
Author: Liam Young <email address hidden>
Date: Tue Oct 3 09:38:21 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/509121 /git.openstack. org/cgit/ openstack/ charm-neutron- api/commit/ ?id=6cc620ab270 bc0d9f12a2ff3e3 b439c7f4e10a90
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6cc620ab270bc0d 9f12a2ff3e3b439 c7f4e10a90
Author: Liam Young <email address hidden>
Date: Tue Oct 3 09:38:21 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: I233e0cccb8ccd7 32080fd239df6d1 e7db174eba5
Partial-Bug: #1544959