YUMSERV
python-rados 연동
BlockStorage(Ceph) 2021. 4. 16. 08:22

python 으로 ceph 연동 1. 패키지 설치 $ yum install python-rados 2. python ceph 연동 확인 # python Python 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import rados, sys >>> cluster = rados.Rados(conffile='/etc/ceph/ceph.conf') cluster librados 버전 확인 >>> print "\nlibrados version: " + str(clus..