Comments (7)
@xadhoom76 Not sure when you took the code - but there was a bug introduced which caused this error. Now fixed on master.
from ceph-iscsi-cli.
I take the master from here
File "/usr/lib/python2.7/site-packages/ceph_iscsi_config-2.3-py2.7.egg/EGG-INFO/scripts/rbd-target-g
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: File "/usr/lib/python2.7/site-packages/ceph_iscsi_config-2.3-py2.7.egg/EGG-INFO/scripts/rbd-target-g
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: File "build/bdist.linux-x86_64/egg/ceph_iscsi_config/lio.py", line 58, in drop_target
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: AttributeError: 'Config' object has no attribute 'config'
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: Original exception was:
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: Traceback (most recent call last):
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: File "/usr/bin/rbd-target-gw", line 5, in
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: pkg_resources.run_script('ceph-iscsi-config==2.3', 'rbd-target-gw')
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: self.require(requires)[0].run_script(script_name, ns)
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in run_script
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: exec_(script_code, namespace, namespace)
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: exec("""exec code in globs, locs""")
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: File "", line 1, in
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: File "/usr/lib/python2.7/site-packages/ceph_iscsi_config-2.3-py2.7.egg/EGG-INFO/scripts/rbd-target-g
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: File "/usr/lib/python2.7/site-packages/ceph_iscsi_config-2.3-py2.7.egg/EGG-INFO/scripts/rbd-target-g
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: File "/usr/lib/python2.7/site-packages/ceph_iscsi_config-2.3-py2.7.egg/EGG-INFO/scripts/rbd-target-g
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: File "build/bdist.linux-x86_64/egg/ceph_iscsi_config/lio.py", line 58, in drop_target
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: AttributeError: 'Config' object has no attribute 'config'
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: Removing Ceph iSCSI configuration from LIO
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: Removing iSCSI target from LIO
Sep 28 10:51:55 pve4.ocstwin.local rbd-target-gw[11012]: Removing iSCSI target from LIO
Sep 28 10:51:55 pve4.ocstwin.local systemd[1]: rbd-target-gw.service: main process exited, code=exited, status=1/FAILURE
Sep 28 10:51:55 pve4.ocstwin.local systemd[1]: Unit rbd-target-gw.service entered failed state.
Sep 28 10:51:55 pve4.ocstwin.local systemd[1]: rbd-target-gw.service failed.
Sep 28 10:51:55 pve4.ocstwin.local systemd[1]: rbd-target-gw.service holdoff time over, scheduling restart.
Sep 28 10:51:55 pve4.ocstwin.local systemd[1]: start request repeated too quickly for rbd-target-gw.service
Sep 28 10:51:55 pve4.ocstwin.local systemd[1]: Failed to start Setup system to export rbd images through LIO.
-- Subject: Unit rbd-target-gw.service has failed
Any ideas ? thanks
from ceph-iscsi-cli.
I also can see this
Sep 28 11:18:17 pve4.ocstwin.local systemd[1]: Dependency failed for Ceph iscsi target configuration API.
-- Subject: Unit rbd-target-api.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit rbd-target-api.service has failed.
-- The result is dependency.
Sep 28 11:18:17 pve4.ocstwin.local systemd[1]: Job rbd-target-api.service/start failed with result 'dependency'.
Sep 28 11:18:17 pve4.ocstwin.local systemd[1]: rbd-target-gw.service failed.
Sep 28 11:18:17 pve4.ocstwin.local polkitd[645]: Unregistered Authentication Agent for unix-process:11567:15556986 (system bus name :1.886, object path /org/
from ceph-iscsi-cli.
Could you repull, so we can make sure you have the current code which we think has a fix for this?
from ceph-iscsi-cli.
repull but the same problem
from ceph-iscsi-cli.
I've just pull it from master and I am getting the same error
[adm@osd0 rbd-target-gw.service.d]$ sudo rbd-target-gw
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ceph_iscsi_config-2.3-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 33, in exception_handler
File "/usr/lib/python2.7/site-packages/ceph_iscsi_config-2.3-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 85, in clearconfig
File "build/bdist.linux-x86_64/egg/ceph_iscsi_config/lio.py", line 58, in drop_target
AttributeError: 'Config' object has no attribute 'config'
Original exception was:
Traceback (most recent call last):
File "/bin/rbd-target-gw", line 5, in
pkg_resources.run_script('ceph-iscsi-config==2.3', 'rbd-target-gw')
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in run_script
exec_(script_code, namespace, namespace)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in exec_
exec("""exec code in globs, locs""")
File "", line 1, in
File "/usr/lib/python2.7/site-packages/ceph_iscsi_config-2.3-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 466, in
File "/usr/lib/python2.7/site-packages/ceph_iscsi_config-2.3-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 214, in halt
File "/usr/lib/python2.7/site-packages/ceph_iscsi_config-2.3-py2.7.egg/EGG-INFO/scripts/rbd-target-gw", line 85, in clearconfig
File "build/bdist.linux-x86_64/egg/ceph_iscsi_config/lio.py", line 58, in drop_target
AttributeError: 'Config' object has no attribute 'config'
from ceph-iscsi-cli.
Ok I think I solved myself.
you need to create a file in /etc/ceph/ called iscsi-gateway.cfg with the initial configuration as described in the guide:
http://docs.ceph.com/docs/master/rbd/iscsi-target-cli/
from ceph-iscsi-cli.
Related Issues (20)
- Create disk in Erasure Pool (--data-pool)
- create disk is too slow HOT 16
- ceph mimic iscsi issue HOT 4
- 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.