[Ubuntu 18.04]Unable to create NetworkPortal in configFS using Targetcli tool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Invalid
|
Medium
|
Canonical Foundations Team | ||
targetcli-fb (Ubuntu) |
Invalid
|
Undecided
|
Canonical Foundations Team |
Bug Description
== Comment: #0 - Prudhvi Miryala <email address hidden> - 2018-03-21 09:08:25 ==
---Problem Description---
[Ubuntu 18.04]Unable to create NetworkPortal in configFS using Targetcli tool
---uname output---
Linux ltc-test-ci1 4.15.0-13-generic #14-Ubuntu SMP Sat Mar 17 13:43:15 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = 8247-21L
---Debugger---
A debugger is not configured
---Steps to Reproduce---
1) create image
dd if=/dev/zero of=/var/
2) open the targetcli
targetcli
and run following commands on targetcli tool
3) cd backstores/
4) cd fileio
5) create back end device.
create testlun1 /var/lib/
6) cd iscsi
7) generate iqn for server
create
8) cd iqn.2003-
9) cd tpg1/luns
create LUN
create /backstores/
10) cd ../portal
11) create 0.0.0.0
expected output:
-------
network portal should create successfully.
actual output:
-------
Could not create NetworkPortal in configFS
Contact Information = <email address hidden>
Userspace tool common name: targetcli
The userspace tool has the following bit modes: 64bit
Userspace rpm: targetcli-fb
Userspace tool obtained from project website: na
*Additional Instructions for <email address hidden>:
-Post a private note with access information to the machine that the bug is occuring on.
-Attach ltrace and strace of userspace application.
== Comment: #5 - Douglas Miller <email address hidden> - 2018-04-03 12:17:24 ==
A quick web search shows that many people have run into a problem like this, because there was a default port created automatically and that prevents an explicit create of ports. I am not familiar with this tool, but the solution for those cases was to delete the 0.0.0.0:3260 port.
== Comment: #6 - Prudhvi Miryala <email address hidden> - 2018-04-04 04:38:24 ==
Hi Team,
Working fine on latest kernel at following levels:
Linux ltc-boston114 4.15.0-14-generic #15-Ubuntu SMP Mon Apr 2 19:47:43 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux.
Still we are facing issue on following levels:
Linux ltc-test-ci1 4.15.0-13-generic #14-Ubuntu SMP Sat Mar 17 13:43:15 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux
So i am closing the Bug
== Comment: #7 - Prudhvi Miryala <email address hidden> - 2018-04-04 04:49:34 ==
== Comment: #8 - Prudhvi Miryala <email address hidden> - 2018-04-09 08:40:54 ==
i am reopen the issue because i am seeing the same issue in latest build(4.
---> first i am seeing issue on kernel build 4.15.0-13-generic
**targetcli package version: 2.1.43-1
----> later i updated the kernel build to 4.15.0-14-generic then issue is not reproduce on 4.15.0-14-generic but able to reproduce on 4.15.0-13-generic.
**targetcli package version: 2.1.43-1
----> later i updated the kernel build to 4.15.0-15-generic then i am able to reproduce the issue on all three kernel builds(
**targetcli package version: 2.1.43-1
PS: steps to reproduce the issue available above, if need more details about recreation steps please let me know
== Comment: #12 - Prudhvi Miryala <email address hidden> - 2018-04-09 10:10:51 ==
using default port i am unable to create portal and i am seeing following error
/tpg1/portals> create 0.0.0.0 3260
Using default IP port 3260
Binding to INADDR_ANY (0.0.0.0)
Could not create NetworkPortal in configFS
path: /sys/kernel/
details:[Errno 22] Invalid argument: '/sys/kernel/
-------
i tried with different port(not default port) then i am able to create network portal.
== Comment: #13 - Prudhvi Miryala <email address hidden> - 2018-04-09 10:12:29 ==
(In reply to comment #12)
> using default port i am unable to create portal and i am seeing following
> error
>
> /tpg1/portals> create 0.0.0.0 3260
> Using default IP port 3260
> Binding to INADDR_ANY (0.0.0.0)
> Could not create NetworkPortal in configFS
> path:
> /sys/kernel/
> ppc64le:
> details:[Errno 22] Invalid argument:
> '/sys/kernel/
> ppc64le:
> -------
> -------
> i tried with different port(not default port) then i am able to create
> network portal.
Default port num: 3260
i tried with port num : 3261(not default port)
== Comment: #18 - MAMATHA INAMDAR <email address hidden> - 2018-04-10 02:47:01 ==
/iscsi> ls
o- iscsi .......
o- iqn.2003-
| o- tpg1 .......
| o- acls .......
| o- luns .......
| o- portals .......
| o- 0.0.0.0:2260 .......
| o- 0.0.0.0:3261 .......
| o- 0.0.0.0:3262 .......
| o- 0.0.0.0:3660 .......
| o- 0.0.0.0:3661 .......
o- iqn.2003-
o- tpg1 .......
o- acls .......
o- luns .......
o- portals .......
If we try to delete and create network portal for any of the above ports it will work fine
Ex: 3660 as below
/iscsi/
Deleted network portal 0.0.0.0:3660
/iscsi/
o- portals .......
o- 0.0.0.0:2260 .......
o- 0.0.0.0:3261 .......
o- 0.0.0.0:3262 .......
o- 0.0.0.0:3661 .......
/iscsi/
Binding to INADDR_ANY (0.0.0.0)
Created network portal 0.0.0.0:3660.
/iscsi/
o- portals .......
o- 0.0.0.0:2260 .......
o- 0.0.0.0:3261 .......
o- 0.0.0.0:3262 .......
o- 0.0.0.0:3660 .......
o- 0.0.0.0:3661 .......
But Prudhvi is trying to create network portal with default port 3260 which is not working,
which shows invalid argument
/iscsi/
Using default IP port 3260
Binding to INADDR_ANY (0.0.0.0)
Could not create NetworkPortal in configFS
path: /sys/kernel/
details:[Errno 22] Invalid argument: '/sys/kernel/
I am not sure whether it's compulsory to create network portal with default port 3260?
== Comment: #21 - Murilo Fossa Vicentini <email address hidden> - 2018-04-10 09:38:13 ==
Since I don't work in this area, I may be speaking nonsense here, so please take the following with a grain of salt.
Is there any chance this is done transparently? At least looking at netstat I see that the default port (3260) is in use:
root@ltc-
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3260 0.0.0.0:* LISTEN
tcp6 0 0 :::3260 :::* LISTEN
Also, just throwing this out here, since I saw you have a qla2xxx adapter in your system, I saw this disclaimer in the man pages for targetcli:
CONFIGURING FIBRE CHANNEL (QLA2XXX)
Operation as a target requires that /sys/module/
And here is the description for this
# modinfo qla2xxx | grep qlini_mode:
parm: qlini_mode:
Could this somehow explain the behavior seen here?
== Comment: #23 - SANTWANA SAMANTRAY <email address hidden> - 2018-07-27 00:36:35 ==
Hi All,
I validated this issue on Ubuntu18.04 (k.v- 4.15.0-29-generic) and its still reproducible.
targetcli package version: 2.1.43-1
/iscsi> ls
o- iscsi .......
o- iqn.2003-
| o- tpg1 .......
| o- acls .......
| o- luns .......
| o- portals .......
o- iqn.2018-
| o- tpg1 .......
| o- acls .......
| o- luns .......
| o- portals .......
o- iqn.2018-
o- tpg1 .......
o- acls .......
o- luns .......
o- portals .......
Using non-default port:
/iscsi/
Binding to INADDR_ANY (0.0.0.0)
Created network portal 0.0.0.0:3660.
/iscsi/
o- portals .......
o- 0.0.0.0:3660 .......
Using default port:
/iscsi/
Using default IP port 3260
Binding to INADDR_ANY (0.0.0.0)
Could not create NetworkPortal in configFS
The default port(3260) is in use, when we get the above error:
# netstat -a -n | grep "3260\|Address"
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3260 0.0.0.0:* LISTEN
tcp6 0 0 :::3260 :::* LISTEN
Thanks,
Santwana
Changed in ubuntu-power-systems: | |
importance: | Undecided → Medium |
affects: | targetcli (Ubuntu) → targetcli-fb (Ubuntu) |
Changed in ubuntu-power-systems: | |
assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
tags: | added: id-5b69be3dba05c9891c59199f |
Changed in targetcli-fb (Ubuntu): | |
assignee: | Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → Canonical Foundations Team (canonical-foundations) |
tags: | added: triage-g |
Changed in ubuntu-power-systems: | |
status: | New → Triaged |
Changed in targetcli-fb (Ubuntu): | |
status: | Incomplete → Invalid |
Changed in ubuntu-power-systems: | |
status: | Incomplete → Invalid |
Default Comment by Bridge