Code Monkey home page Code Monkey logo

Comments (7)

pcuzner avatar pcuzner commented on August 13, 2024

@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.

xadhoom76 avatar xadhoom76 commented on August 13, 2024

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.

xadhoom76 avatar xadhoom76 commented on August 13, 2024

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.

mikechristie avatar mikechristie commented on August 13, 2024

@xadhoom76

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.

xadhoom76 avatar xadhoom76 commented on August 13, 2024

repull but the same problem

from ceph-iscsi-cli.

jorpilo avatar jorpilo commented on August 13, 2024

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.

jorpilo avatar jorpilo commented on August 13, 2024

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)

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.