Bug #41610
closedpython Rados library does not support mon_host bracketed syntax
0%
Description
Ceph Nautilus deployed using ceph-ansible
By default it generates ceph.conf with bracketed mon_host syntax (see https://docs.ceph.com/docs/nautilus/rados/configuration/msgr2/)
$ cat /etc/ceph/ceph.conf
[global]
cluster network = 172.28.193.0/24
fsid = c3e1faec-57d1-4513-95e4-8cebc75030e5
#mon host = [v2:172.28.192.19:3300,v1:172.28.192.19:6789]
mon host = 172.28.192.19
mon initial members = ceph01
osd pool default crush rule = -1
osd_pool_default_min_size = 1
osd_pool_default_pg_num = 32
osd_pool_default_pgp_num = 32
osd_pool_default_size = 2
public network = 172.28.192.0/24
osd_memory_target = 4242538496
osd_memory_base = 2147483648
osd_memory_cache_min = 3195011072
$ python client.py
librados version: 0.69.1
Will attempt to connect to: 2ck10u19n03
server name not found: [v2:172.28.192.19:3300 (Name or service not known)
unable to parse addrs in '[v2:172.28.192.19:3300,v1:172.28.192.19:6789]'
Traceback (most recent call last):
File "client.py", line 7, in <module>
cluster.connect()
File "rados.pyx", line 885, in rados.Rados.connect (/builddir/build/BUILD/ceph-12.2.11/build/src/pybind/rados/pyrex/rados.c:9785)
rados.InvalidArgumentError: [errno 22] error connecting to the cluster
Updated by Josh Durgin over 4 years ago
- Status changed from New to Rejected
Your version of librados is too old - 0.69 is cuttlefish. For v1/v2 addresses like that, you need nautilus (v14.2.0+)