ceph-deploy 支持 ipv6 subnet

发布时间 2023-05-30 11:52:33作者: 十方央丶

起因:

由于 ipv4 地址限制,ceph集群准备使用 ipv6 进行部署,执行命令 ceph-deploy new mon --cluster-network x::x/64 --public-network x::x/64 时,提示 ceph-deploy new: error: subnet must have at least 4 numbers separated by dots like x.x.x.x/xx, but got: 2001::0/64 根据提示信息,ceph-deploy暂时还不支持 ipv6 地址解析和处理

方法

下载 ceph-deploy 源码tar.gz进行修改

pip3 install ceph-deploy-2.1.0.tar.gz --upgrade 进行更新

[root@node1 tmp]# pip3 install ceph-deploy-2.1.0.tar.gz --upgrade
Processing ./ceph-deploy-2.1.0.tar.gz
/usr/local/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
Requirement already up-to-date: remoto>=1.1.4 in /usr/local/lib/python3.6/site-packages/remoto-1.2.1-py3.6.egg (from ceph-deploy==2.1.0)
Requirement already up-to-date: setuptools in /usr/local/lib/python3.6/site-packages (from ceph-deploy==2.1.0)
Requirement already up-to-date: execnet in /usr/local/lib/python3.6/site-packages/execnet-1.9.0-py3.6.egg (from remoto>=1.1.4->ceph-deploy==2.1.0)
Installing collected packages: ceph-deploy
  Found existing installation: ceph-deploy 2.1.0
    Uninstalling ceph-deploy-2.1.0:
      Successfully uninstalled ceph-deploy-2.1.0
  Running setup.py install for ceph-deploy ... done
Successfully installed ceph-deploy-2.1.0

完成!!!