Code Monkey home page Code Monkey logo

Comments (4)

dillaman avatar dillaman commented on August 13, 2024

It looks like you don't have python-rados installed (properly) given:

Jan 15 00:17:03 ceph-all rbd-target-api[13961]: File "/usr/bin/rbd-target-api", line 1816, in run
Jan 15 00:17:03 ceph-all rbd-target-api[13961]: cluster = rados.Rados(conffile=settings.config.cephconf)
Jan 15 00:17:03 ceph-all rbd-target-api[13961]: AttributeError: 'NoneType' object has no attribute 'Rados'

I would try to re-install librados2, librbd1, python-rados, and python-rbd (and make sure the RPM versions match).

from ceph-iscsi-cli.

fabianlv avatar fabianlv commented on August 13, 2024

It looks like you don't have python-rados installed (properly) given:

Jan 15 00:17:03 ceph-all rbd-target-api[13961]: File "/usr/bin/rbd-target-api", line 1816, in run
Jan 15 00:17:03 ceph-all rbd-target-api[13961]: cluster = rados.Rados(conffile=settings.config.cephconf)
Jan 15 00:17:03 ceph-all rbd-target-api[13961]: AttributeError: 'NoneType' object has no attribute 'Rados'

I would try to re-install librados2, librbd1, python-rados, and python-rbd (and make sure the RPM versions match).

[root@ceph-all ~]# yum list |grep python-rados
python-rados.x86_64 2:13.2.4-0.el7 @ceph-mimic-13.2.4
[root@ceph-all ~]# yum list |grep python-rbd
python-rbd.x86_64 2:13.2.4-0.el7 @ceph-mimic-13.2.4
[root@ceph-all ~]# yum list |grep librbd1
librbd1.x86_64 2:13.2.4-0.el7 @ceph-mimic-13.2.4
librbd1.i686 1:10.2.5-4.el7 os
librbd1-devel.i686 1:10.2.5-4.el7 os
librbd1-devel.x86_64 1:10.2.5-4.el7 os
[root@ceph-all ~]# yum list |grep librados2
librados2.x86_64 2:13.2.4-0.el7 @ceph-mimic-13.2.4
librados2.i686 1:10.2.5-4.el7 os
librados2-devel.i686 1:10.2.5-4.el7 os
librados2-devel.x86_64 1:10.2.5-4.el7 os
[root@ceph-all ~]# yum list |grep rados
librados2.x86_64 2:13.2.4-0.el7 @ceph-mimic-13.2.4
libradosstriper1.x86_64 2:13.2.4-0.el7 @ceph-mimic-13.2.4
python-rados.x86_64 2:13.2.4-0.el7 @ceph-mimic-13.2.4
ceph-radosgw.x86_64 2:13.2.2-0.el7 ceph
librados-devel.x86_64 2:13.2.2-0.el7 ceph
librados2.i686 1:10.2.5-4.el7 os
librados2-devel.i686 1:10.2.5-4.el7 os
librados2-devel.x86_64 1:10.2.5-4.el7 os
libradosstriper-devel.x86_64 2:13.2.2-0.el7 ceph
python34-rados.x86_64 2:13.2.2-0.el7 ceph
rados-objclass-devel.x86_64 2:13.2.2-0.el7 ceph

from ceph-iscsi-cli.

fabianlv avatar fabianlv commented on August 13, 2024

i confused how to set trusted_ip_list in iscsi-gateway.cfg
if i disabled trusted_ip_list in iscsi-gateway.cfg,i can execute gwcli
if i set trusted_ip_list in iscsi-gateway.cfg,i can't execute gwcli
my ip environment:
192.168.80.11 ceph1
192.168.80.12 ceph2
192.168.80.13 ceph3
192.168.80.180 centos1810
192.168.10.11 ceph1-iscsi
192.168.10.12 ceph2-iscsi
192.168.10.13 ceph3-iscsi

ceph.conf
[global]
fsid = 9a3d7e76-8ce1-46e2-940f-083be11712d3
public_network = 192.168.80.0/24
cluster_network = 192.168.10.0/24
mon_initial_members = ceph1,ceph2,ceph3
mon_host = 192.168.80.11,192.168.80.12,192.168.80.13
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
mon_allow_pool_delete=true

dumped monmap epoch 1
epoch 1
fsid 9a3d7e76-8ce1-46e2-940f-083be11712d3
last_changed 2019-01-15 15:54:48.676260
created 2019-01-15 15:54:48.676260
0: 192.168.80.11:6789/0 mon.ceph1
1: 192.168.80.12:6789/0 mon.ceph2
2: 192.168.80.13:6789/0 mon.ceph3

whatever i can set 80.x/10.x/1.x, i can't execute
only disable it i can execute gwcli

from ceph-iscsi-cli.

dillaman avatar dillaman commented on August 13, 2024

@fabianlv

You appear to have both "python34-rados.x86_64 2:13.2.2-0.el7 ceph" and "python-rados.x86_64 2:13.2.4-0.el7 @ceph-mimic-13.2.4", which are different versions.

As for the trusted_ip_list, without providing more information, I really cannot help. The IP list is just additional IP addresses to allow to access the API, so populating it shouldn't ever restrict access -- it should only expand it.

from ceph-iscsi-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.