Git Product home page Git Product logo

Comments (6)

bsyd avatar bsyd commented on August 20, 2024

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.

agrover avatar agrover commented on August 20, 2024

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.

agrover avatar agrover commented on August 20, 2024

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.

bsyd avatar bsyd commented on August 20, 2024

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.

agrover avatar agrover commented on August 20, 2024

yup I'll be updating fedora pkgs very soon.

from rtslib-fb.

FlorianHeigl avatar FlorianHeigl commented on August 20, 2024

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)

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.