RE: Error with /ib_srpt create

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Should there be a:
/sys/kernel/config/target/srpt/$WWPN/

All I have in /sys/kernel/config/target/srpt/ is:

root@zstor1:/var/log# ls -la /sys/kernel/config/target/srpt/
total 0
drwxr-xr-x 3 root root    0 Feb  1 16:51 .
drwxr-xr-x 8 root root    0 Feb  1 16:46 ..
drwxr-xr-x 2 root root    0 Jan 30 17:13 discovery_auth
-r--r--r-- 1 root root 4096 Feb  1 16:51 version

Kernel is 3.5.0-22-generic.

Thanks,
Richard

-----Original Message-----
From: Nicholas A. Bellinger [mailto:nab@xxxxxxxxxxxxxxx] 
Sent: Friday, February 01, 2013 1:40 PM
To: Richard Massa
Cc: target-devel@xxxxxxxxxxxxxxx
Subject: Re: Error with /ib_srpt create

Hi Richard,

On Thu, 2013-01-31 at 19:47 +0000, Richard Massa wrote:
> I get the error below when running /ib_srpt create on:
> 
> Kernel: 3.5.0-22-generic
> Distro: Ubuntu precise
> root@zstor1:~# dpkg -l |grep targetcli
> ii  targetcli                         2.0rc1-2                     administration tool for managing LIO core target
> root@zstor1:~# dpkg -l |grep rtslib
> ii  python-rtslib                     2.1-2                        LIO core target management framework - python libs
> 
> /> /ib_srpt create 0x00000000000000000002c90200298731
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 983, in run_interactive
>     self._cli_loop()
>   File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 806, in _cli_loop
>     self.run_cmdline(cmdline)
>   File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 927, in run_cmdline
>     self._execute_command(path, command, pparams, kparams)
>   File "/usr/lib/python2.7/dist-packages/configshell/shell.py", line 902, in _execute_command
>     result = target.execute_command(command, pparams, kparams)
>   File "/usr/lib/python2.7/dist-packages/targetcli/ui_node.py", line 157, in execute_command
>     return UINode.execute_command(self, command, pparams, kparams)
>   File "/usr/lib/python2.7/dist-packages/targetcli/ui_node.py", line 85, in execute_command
>     pparams, kparams)
>   File "/usr/lib/python2.7/dist-packages/configshell/node.py", line 1405, in execute_command
>     result = method(*pparams, **kparams)
>   File "/usr/lib/python2.7/dist-packages/targetcli/ui_target.py", line 119, in ui_command_create
>     target = Target(self.rtsnode, wwn, mode='create')
>   File "/usr/lib/python2.7/dist-packages/rtslib/target.py", line 1252, in __init__
>     self._create_in_cfs_ine(mode)
>   File "/usr/lib/python2.7/dist-packages/rtslib/node.py", line 71, in _create_in_cfs_ine
>     os.mkdir(self.path)
> OSError: [Errno 22] Invalid argument: '/sys/kernel/config/target/srpt/0x00000000000000000002c90200298731'
> 

I believe this version of rtslib's ib_srpt.spec file is using the pre-mainline '0x0000' prefix instead of '0xfe80' for port GIDs with the target endpoint name in /sys/kernel/config/target/srpt/$WWPN/

This was a change to ib_srpt.spec's wwn_from_files_filter sed usage, for which the upstream patch can be found here:

http://www.risingtidesystems.com/git/?p=rtslib.git;a=commitdiff;h=6666d30fb1d90b9195d98c8fe8fcec2708362873

Thanks,

--nab

> Here's what's in the directory:
> root@zstor1:~# ls -la /sys/kernel/config/target/srpt/ total 0
> drwxr-xr-x 3 root root    0 Jan 31 14:39 .
> drwxr-xr-x 8 root root    0 Jan 30 17:54 ..
> drwxr-xr-x 2 root root    0 Jan 30 17:13 discovery_auth
> -r--r--r-- 1 root root 4096 Jan 31 14:44 version
> 
> root@zstor1:~# ibsrpdm
> IO Unit Info:
>     port LID:        000d
>     port GID:        fe800000000000000002c90200298731
>     change ID:       0001
>     max controllers: 0x10
> 
>     controller[  1]
>         GUID:      0002c90200298730
>         vendor ID: 000002
>         device ID: 006274
>         IO class : 0100
>         ID:        Linux SRP target
>         service entries: 1
>             service[  0]: 0002c90200298730 / SRP.T10:0002c90200298730
> 
> root@zstor1:~# ibv_devinfo
> hca_id:	mthca0
> 	transport:			InfiniBand (0)
> 	fw_ver:				1.2.0
> 	node_guid:			0002:c902:0029:8730
> 	sys_image_guid:			0002:c902:0029:8733
> 	vendor_id:			0x02c9
> 	vendor_part_id:			25204
> 	hw_ver:				0xA0
> 	board_id:			MT_03F0110001
> 	phys_port_cnt:			1
> 		port:	1
> 			state:			PORT_ACTIVE (4)
> 			max_mtu:		2048 (4)
> 			active_mtu:		2048 (4)
> 			sm_lid:			1
> 			port_lid:		13
> 			port_lmc:		0x00
> 
> Any ideas what the problem is?
> 
> Thanks!
> Richard
> 
> --
> To unsubscribe from this list: send the line "unsubscribe 
> target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx 
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


��.n��������+%������w��{.n����j�����{ay�ʇڙ���f���h������_�(�階�ݢj"��������G����?���&��



[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux