Skip to content

IOError: [Errno 25] Inappropriate ioctl for device #17

Description

@fwang2

I am trying out this

# ibtool sminfo
Traceback (most recent call last):
  File "/root/p27/bin/ibtool", line 95, in <module>
    if not func(argv,o):
  File "/root/p27/lib/python2.7/site-packages/libibtool/inquiry.py", line 258, in cmd_sminfo
    with lib.get_umad_for_target(values[0]) as umad:
  File "/root/p27/lib/python2.7/site-packages/libibtool/libibopts.py", line 276, in get_umad_for_target
    umad = rdma.get_umad(self.end_port);
  File "/root/p27/lib/python2.7/site-packages/rdma/__init__.py", line 265, in get_umad
    return rdma.umad.UMAD(port,**kwargs);
  File "/root/p27/lib/python2.7/site-packages/rdma/umad.py", line 102, in __init__
    if not self._ioctl_enable_pkey():
  File "/root/p27/lib/python2.7/site-packages/rdma/umad.py", line 123, in _ioctl_enable_pkey
    return fcntl.ioctl(self.dev.fileno(),self.IB_USER_MAD_ENABLE_PKEY) == 0;
IOError: [Errno 25] Inappropriate ioctl for device

if I just ran

#sminfo
sminfo: sm lid 1 sm guid 0x248a0703008f9e88, activity count 438477803 priority 15 state 3 SMINFO_MASTER

what am I missing? thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions