Iscsi configuration error : Could not create networkportal in ConfigFS

Latest response

I'm listing one of the recent issues while configuring iscsi disk. Let me know if you find any leads in resolving this. My disk configuration looks like below. While creating a portal with ip address, I get an error as listed below. Without my portal being defined on ip address, I beleive I cannot link my initiator (let me know if I'm wrong)


/iscsi/iqn.2015-03.internal.compute.us-west-2:ip-172-31-25-174/tpg1/portals create 172.31.25.174
Using default IP port 3260

Could not create NetworkPortal in configFS.

/> ls
o- / .................................................................................... [...]
o- backstores ......................................................................... [...]
| o- block ............................................................. [Storage Objects: 1]
| | o- data1 ................................... [/dev/xvdf1 (5.0GiB) write-thru deactivated]
| o- fileio ............................................................ [Storage Objects: 0]
| o- pscsi ............................................................. [Storage Objects: 0]
| o- ramdisk ........................................................... [Storage Objects: 0]
o- iscsi ....................................................................... [Targets: 1]
| o- iqn.2015-03.internal.compute.us-west-2:ip-172-31-25-174 ...................... [TPGs: 1]
| o- tpg1 .......................................................... [no-gen-acls, no-auth]
| o- acls ..................................................................... [ACLs: 1]
| | o- iqn.2015-03.internal.compute.us-west-2:ip-172-31-29-38 .......... [Mapped LUNs: 0]
| o- luns ..................................................................... [LUNs: 0]
| o- portals ............................................................... [Portals: 1]
| o- 0.0.0.0:3260 ................................................................ [OK]
o- loopback .................................................................... [Targets: 0]
/>

Thanks,

Responses

Forgot to mention:
uname -a
Linux ip-*****l 3.10.0-229.el7.x86_64 #1 SMP Thu Jan 29 18:37:38 EST 2015 x86_64 x86_64 x86_64 GNU/Linux

I have the same issue, I'll let you know if I find a solution.

Actually, I just had a closer look. It seems it's created a default portal listening on all interfaces. So I removed that and was able to create a new one:

/iscsi/iqn.20.../tpg1/portals> delete 0.0.0.0 3260
Deleted network portal 0.0.0.0:3260
/iscsi/iqn.20.../tpg1/portals> create 10.10.18.42
Using default IP port 3260
Created network portal 10.10.18.42:3260.

I ran into this as well. I had multiple targets created and was trying to change the 3rd one to a specific portal IP address. I was able to remove the default 0.0.0.0:3260 from my 3rd target, but was unable to create a specific target until I removed the default from ALL of the targets configured. If one target is configured for the default, then you can not create a specific portal ip address.

I experienced the same error and in order to get rid of the issue I deleted the existing 0.0.0.0 and port. I created the portal once again and it worked like a charm.Thanks

/> /iscsi/iqn.2015-09.com.example:serverc/tpg1/portals create 192.168.122.4 Using default IP port 3260 Could not create NetworkPortal in configFS /> /iscsi/iqn.2015-09.com.example:serverc/tpg1/portals delete 0.0.0.0 ip_port=3260 Deleted network portal 0.0.0.0:3260 /> /iscsi/iqn.2015-09.com.example:serverc/tpg1/portals create 192.168.122.4 ip_port=3260 Using default IP port 3260 Created network portal 192.168.122.4:3260.

The portal 0.0.0.0 gets created automatically when creating a new IQN. First thing I had to do was deleting that portal, before proceeding with configuring acls and a LUN and a new portal with different IP address. If I create an acl and a LUN and then try to delete the portal 0.0.0.0 this won't work for some reason unknown to me. Also, when trying to create a new portal in that situation, I get the error message this discussion is about.

hi I have same problem but it's not resolving with same solution. because in portal i have 0 . and when I am going to create its showing error " couldn't create NetworkPortal in configfs''. and then whenever I want to delete default port. with port 3260 its showing another error ..."No such NetworkPortal in configfs"

error1: /iscsi/iqn.20.../tpg1/portals> create 192.168.100.100:3260 Using default IP port 3260 Could not create NetworkPortal in configFS.

error2: delete 0.0.0.0 3260 No such NetworkPortal in configfs: /sys/kernel/config/target/iscsi/iqn.2017-06.com.aryan:server/tpgt_1/np/0.0.0.0:3260.

can anyone please help me on it. thanks

Could not create NetworkPortal in configFS. i am also getting same error . and there is no default portal created

Yes delete the default port i.e. 0.0.0.0 3260 and then add the IP, it should work.

please anyone help me i tried all that things still i got an error. when i give just create cmd it automatically give 0.0.0.0:3260 and i delete that ip and give new one following error only i got
"/iscsi/iqn.20.../tpg1/portals> create 192.168.19.130 Using default IP port 3260 Could not create Network Portal in configFS." please give me a solution

tpg1/portals> delete 0.0.0.0 3260 tpg1/portals> create 192.168.19.130 3260----> Enter this commands

Just a note on this, if you have more than 1 iqn.20xx... shared, and 1 is portal set to 0.0.0.0, you cannot add specific portals to the other(s). delete 0.0.0.0 on all iqns, then add specifics to each one.

you're welcome :)

thank you, that was my case!

Very helpful ... thank you, as I have multiple iqn