hello
https://opendev.org/starlingx/config/commit/a33342728ae86c1ce529656c5c944a275a5e6f64
this patch modify may cause different output
def _format_ceph_mon_address(self, ip_address): - return utils.format_ceph_mon_address( - ip_address, self.SERVICE_PORT_MON) + return utils.format_url_address(ip_address)
========= def format_ceph_mon_address(ip_address, service_port_mon): return '%s:%d' % (format_url_address(ip_address), service_port_mon)
expected output 127.0.0.1:6789 =========
========= def format_url_address(address): """Format the URL address according to RFC 2732""" try: addr = netaddr.IPAddress(address) if addr.version == constants.IPV6_FAMILY: return "[%s]" % address else: return str(address) except netaddr.AddrFormatError: return address
expected output 127.0.0.1 =========
Maybe it will cause Ceph monitor unreachable?
hello
https:/ /opendev. org/starlingx/ config/ commit/ a33342728ae86c1 ce529656c5c944a 275a5e6f64
this patch modify may cause different output
def _format_ ceph_mon_ address( self, ip_address): ceph_mon_ address( PORT_MON) url_address( ip_address)
- return utils.format_
- ip_address, self.SERVICE_
+ return utils.format_
========= ceph_mon_ address( ip_address, service_port_mon): url_address( ip_address) , service_port_mon)
def format_
return '%s:%d' % (format_
expected output
127.0.0.1:6789
=========
========= url_address( address) : IPAddress( address) IPV6_FAMILY: AddrFormatError :
def format_
"""Format the URL address according to RFC 2732"""
try:
addr = netaddr.
if addr.version == constants.
return "[%s]" % address
else:
return str(address)
except netaddr.
return address
expected output
127.0.0.1
=========
Maybe it will cause Ceph monitor unreachable?