Bug 1226333

Summary: targetcli fails with error: name 'glob' is not defined
Product: [openSUSE] openSUSE Tumbleweed Reporter: Thomas Blume <thomas.blume>
Component: OtherAssignee: Lee Duncan <lduncan>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: miika.alikirri
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Thomas Blume 2024-06-14 10:24:44 UTC
After the latest update of python311-rtslib-fb python-rtslib-fb-common the targetcli command (from python311-targetcli-fb) fails with error:

name 'glob' is not defined

Culprit is apparently: rtslib-refactor-to-python3.patch

Reverting that patch make targetcli work again.
Comment 1 Miika Alikirri 2024-06-17 09:25:38 UTC
I'm having the same issue. I tried adding glob into fabric.py and I got pass the glob issue but then it gave the following error:


File "/usr/lib/python3.11/site-packages/rtslib_fb/fabric.py", line 490, in __init__
    super.__init__('vhost')
TypeError: descriptor '__init__' requires a 'super' object but received a 'str'
Comment 2 Lee Duncan 2024-07-01 15:52:31 UTC
Your analysis is correct.

This is already fixed, though, in factory rtslib, for tumbleweed. I verified last Friday.

Marking this as a duplicate of bsc#1226388.

*** This bug has been marked as a duplicate of bug 1226388 ***