Multisite replication should use public, rather than internal, networks
Closes-Bug: #1960520 Change-Id: Ie2954a9a59acbc384c18c901e2d324ee003d7108
This commit is contained in:
parent
1f4dbd3a5d
commit
b069b3aa4c
|
@ -695,11 +695,11 @@ def master_relation_joined(relation_id=None):
|
|||
log('unit not ready, deferring multisite configuration')
|
||||
return
|
||||
|
||||
internal_url = '{}:{}'.format(
|
||||
canonical_url(CONFIGS, INTERNAL),
|
||||
public_url = '{}:{}'.format(
|
||||
canonical_url(CONFIGS, PUBLIC),
|
||||
listen_port(),
|
||||
)
|
||||
endpoints = [internal_url]
|
||||
endpoints = [public_url]
|
||||
realm = config('realm')
|
||||
zonegroup = config('zonegroup')
|
||||
zone = config('zone')
|
||||
|
@ -803,11 +803,11 @@ def slave_relation_changed(relation_id=None, unit=None):
|
|||
log("Defer processing until master RGW has provided required data")
|
||||
return
|
||||
|
||||
internal_url = '{}:{}'.format(
|
||||
canonical_url(CONFIGS, INTERNAL),
|
||||
public_url = '{}:{}'.format(
|
||||
canonical_url(CONFIGS, PUBLIC),
|
||||
listen_port(),
|
||||
)
|
||||
endpoints = [internal_url]
|
||||
endpoints = [public_url]
|
||||
|
||||
realm = config('realm')
|
||||
zonegroup = config('zonegroup')
|
||||
|
|
Loading…
Reference in New Issue