Comments (4)
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.
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.
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.
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)
- Create disk in Erasure Pool (--data-pool)
- create disk is too slow HOT 16
- create Failed : 500 INTERNAL SERVER ERROR HOT 4
- cannot remove client iqn when name it in capital letters, but can be created HOT 4
- error on rbd-target-gw restart affects second gateway HOT 1
- rollback of snapshot:LUN deactivate failure - in-use HOT 1
- gwcli fails on creating disk HOT 4
- About multipath gateway down someone
- API with authentication response is very slow HOT 1
- gwcli KeyError: 'groups' HOT 4
- gwcli: KeyError rbd_name.split HOT 1
- gwcli: Gateway status UNKNOWN HOT 2
- AttributeError: 'module' object has no attribute 'WriteOpCtx' HOT 2
- Unable to access the configuration object : REST API failure, code : 500 HOT 1
- " KeyError: 'targets' " when adding second gateway on ceph-iscsi on ubuntu - BUG
- Trouble: gwcli.utils.GatewayAPIError: Unknown error connecting to http://localhost:5001/api/config
- Help! The rbd-target-api service of iSCSI gw cannot be started HOT 1
- rbd-target-gw.service: Failed with result 'exit-code'.
- Cannot remove a non-existent gatway by confirm=true HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ceph-iscsi-cli.