Comments (6)
the problem lies in rtslib/fabric.py
def _list_targets(self):
if self.exists:
for wwn in os.listdir(self.path):
if os.path.isdir("%s/%s" % (self.path, wwn)) and \
wwn not in target_names_excludes:
yield Target(self, self.from_fabric_wwn(wwn), 'lookup')
this code reads the directories under /sys/kernel/config/target/qla2xxx/ and finds a directory named 21:00:00:24:ff:36:96:52. It then tries to normalize as a naa wwn_type and fails.
from rtslib-fb.
Thanks for the detailed bug report. I'll try to get going on a machine with that hardware.
In the meantime, sounds like the from_fabric_wwn() is wrong? Maybe try:
def from_fabric_wwn(self, wwn):
return "naa." + wwn.translate(None, ":")
at rtslib/fabric.py line 415?
from rtslib-fb.
got on a test box. this seems to work, same spot:
def from_fabric_wwn(self, wwn):
if wwn.startswith("0x"):
wwn = wwn[2:]
return "naa." + wwn.translate(None, ":")
Please confirm this fixes it for you as well? Thanks!
from rtslib-fb.
Sorry for the delay. Evening here.
I just tried the fix.
It seems to work correctly.
No visible side effect.
Thank you for your responsiveness.
P.S.: the Fedora 18's published version is completely screwed regarding qla2xxx...
from rtslib-fb.
yup I'll be updating fedora pkgs very soon.
from rtslib-fb.
Awesome, I think I hit this during the last storage class I gave. I used Fedora there. Some many thanks to both of you.
from rtslib-fb.
Related Issues (20)
- Could not create Target in configFS
- Avoid failing the service when running in a container
- 2.1.72 not on PyPI HOT 1
- possible race condition when writing configuration file
- v2.1.73 is not on PyPI
- python-kmod is archived,do we have the plan to drop it? HOT 1
- Regression in 2.1.74 release causing read-only SCSI Block device attachments to fail HOT 2
- usb_gadget doesn't show up in targetcli list
- when I call API: /api/disk to create a disk in arm environment, it often suspends in function: UserBackedStorageObject(StorageObject)::_enable() HOT 3
- Creating multiple backstores at the same time without specifying the index parameter may raise exception. HOT 3
- Failed : disk create/update failed on xxx. LUN allocation failure HOT 7
- Unable to concurrently delete block storage objects
- "targetctl clear" fails with Linux 5.18-rc6 HOT 1
- `python3 setup.py install` fails if `__version__` has `.g<hash>` at end
- `make release` fails when HEAD is detached head
- NameError: name 'RBDStorageObject' is not defined
- rtslib_fb.utils.RTSLibError: Could not create _Backstore in configFS HOT 1
- NotADirectoryError: [Errno 20] Not a directory: '/sys/kernel/config/target/iscsi/cpus_allowed_list' HOT 7
- Trying to create SCSI passthrough backstore using tape device fails when the tape drive is empty
- Accept whole words in tmt try interactive session HOT 1
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 rtslib-fb.