]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: auto wrap and unwrap ipv6 addresses 36676/head
authorMatthew Oliver <moliver@suse.com>
Mon, 17 Aug 2020 01:08:56 +0000 (11:08 +1000)
committerMatthew Oliver <moliver@suse.com>
Tue, 25 Aug 2020 01:23:43 +0000 (11:23 +1000)
commit09eac4bef0f04f5db7118f94dd9679f3295bddf8
tree9ac4cd026d7b6526512a5e62cc9a9561678031af
parentb539ea6003b49efcc01d0d1ca2b1a635d1f02b90
cephadm: auto wrap and unwrap ipv6 addresses

This patch attempts to simplify IPv6 support in cephadm by automatically
wrapping and unwrapping IPv6 addresses when required.

There are some asumptions though, if you are supplyings an IPv6 addrv
then it needs to be wrapped. But because you are specifiying, you should
know what your doing.

But in general, it means in bootstrap you should be able to supply ipv6
addresses wrapped or not so long as there isn't a post appended.

Fixes: https://tracker.ceph.com/issues/46922
Signed-off-by: Matthew Oliver <moliver@suse.com>
src/cephadm/cephadm
src/cephadm/tests/test_cephadm.py
src/pybind/mgr/cephadm/services/cephadmservice.py
src/pybind/mgr/dashboard/tools.py
src/python-common/ceph/deployment/service_spec.py
src/python-common/ceph/deployment/utils.py [new file with mode: 0644]
src/python-common/ceph/tests/test_utils.py [new file with mode: 0644]