[hopem, r=thedac] warn-and-continue if no v6 addr provided on storage-rel

This commit is contained in:
David Ames 2015-11-06 08:48:07 -08:00
commit 683247aaf0
1 changed files with 4 additions and 3 deletions

View File

@ -210,9 +210,10 @@ 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)" % (addr))
log(msg, level=WARNING)
host_ip = addr
else:
host_ip = openstack.get_host_ip(addr)