[hopem,r=]
Be tolerant of swift-storage-relation not ready yet Closes-Bug: 1510940
This commit is contained in:
parent
9c3f22e593
commit
62764b727b
|
@ -207,9 +207,11 @@ def storage_changed():
|
|||
if config('prefer-ipv6'):
|
||||
host_ip = format_ipv6_addr(addr)
|
||||
if not host_ip:
|
||||
errmsg = ("Did not get IPv6 address from storage relation "
|
||||
"(got=%s)" % (addr))
|
||||
raise SwiftProxyCharmException(errmsg)
|
||||
msg = ("Did not get IPv6 address from storage relation "
|
||||
"(got=%s) - ignoring storage relation until remote unit is "
|
||||
"ready" % (addr))
|
||||
log(msg, level=WARNING)
|
||||
return
|
||||
else:
|
||||
host_ip = openstack.get_host_ip(addr)
|
||||
|
||||
|
|
Loading…
Reference in New Issue