rposudnevskiy / RBDSR

RBDSR - XenServer/XCP-ng Storage Manager plugin for CEPH
GNU Lesser General Public License v2.1
58 stars 23 forks source link

Error "local variable 'ceph_user' referenced before assignment" with latest commit #6

Closed mhoffmann75 closed 8 years ago

mhoffmann75 commented 8 years ago

Just gave latest commit (29) a try but fails with the following error:

Aug 4 17:56:20 pns-xen06 SM: [29056] *\ RBD: EXCEPTION <type 'exceptions.UnboundLocalError'>, local variable 'ceph_user' referenced before assignment Aug 4 17:56:20 pns-xen06 SM: [29056] File "/opt/xensource/sm/SRCommand.py", line 350, in run Aug 4 17:56:20 pns-xen06 SM: [29056] sr = driver(cmd, cmd.sr_uuid) Aug 4 17:56:20 pns-xen06 SM: [29056] File "/opt/xensource/sm/SR.py", line 147, in init** Aug 4 17:56:20 pns-xen06 SM: [29056] self.load(sr_uuid) Aug 4 17:56:20 pns-xen06 SM: [29056] File "/opt/xensource/sm/RBDSR", line 177, in load Aug 4 17:56:20 pns-xen06 SM: [29056] cephutils.SR.load(self,sr_uuid, ceph_user) Aug 4 17:56:20 pns-xen06 SM: [29056]

Went back to commit 20 for now. Anything i should have configured first or is it a bug?

Emmenemoi commented 8 years ago

Very stupid bug. I'll correct it within 1h. Sorry.

Le jeudi 4 août 2016, Martin Hoffmann notifications@github.com a écrit :

Just gave latest commit (29) a try but fails with the following error:

Aug 4 17:56:20 pns-xen06 SM: [29056] ***\ RBD: EXCEPTION , local variable 'ceph_user' referenced before assignment Aug 4 17:56:20 pns-xen06 SM: [29056] File "/opt/xensource/sm/SRCommand.py", line 350, in run Aug 4 17:56:20 pns-xen06 SM: [29056] sr = driver(cmd, cmd.sr_uuid) Aug 4 17:56:20 pns-xen06 SM: [29056] File "/opt/xensource/sm/SR.py", line 147, in init Aug 4 17:56:20 pns-xen06 SM: [29056] self.load(sr_uuid) Aug 4 17:56:20 pns-xen06 SM: [29056] File "/opt/xensource/sm/RBDSR", line 177, in load Aug 4 17:56:20 pns-xen06 SM: [29056] cephutils.SR.load(self,sr_uuid, ceph_user) Aug 4 17:56:20 pns-xen06 SM: [29056]

Went back to commit 20 for now. Anything i should have configured first or is it a bug?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rposudnevskiy/RBDSR/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AEY25rt1nH2_xOvdi6Kjo0CpuD2sMZucks5qcixcgaJpZM4Jc-cu .

My full contact profile from an iPhone: saga://profile/c52d0306a94349125e57b48aed58be5edfd1a12d