Comments (4)
each client defined in gwcli can have 1-WAY auth (CHAP) defined. On the initiator side, the client's iqn (/etc/iscsi/initiatorname.iscsi) must match the definition in gwcli, and the username and password defined in the clients iscsid.conf must match the gwcli chap settings (node.session..)
e.g.
in iscsid.conf
node.session.auth.username = myuser
node.session.auth.password = mypassword1234
and then in gwcli check auth with the info command
o- hosts ..................................................................................... [Hosts: 1]
o- iqn.1994-05.com.redhat:rh7-client ....................................... [Auth: CHAP, Disks: 0(0b)]
/iscsi-target...ceph-gw/hosts> iqn.1994-05.com.redhat:rh7-client/ info
Client Iqn .. iqn.1994-05.com.redhat:rh7-client
Logged In ..
Auth
- chap .. myuser/mypassword1234
Group Name ..
Luns .. UNDEFINED
from ceph-iscsi-cli.
For 1 and 2, I'm not sure what you mean but the initiator name is on the initiator side is in /etc/iscsi/initiatorname.iscsi. During the login process it's sends the target this name so yeah it has to match what you set on the target side.
from ceph-iscsi-cli.
@mikechristie
gwcli can create many clients,each client have single auth. so if the initiator loging to target, which auth would ititiator use?
iscsi-target .......................................... [Targets: 1]
o- iqn.2003-01.com.redhat.iscsi-gw:ceph-igw ........... [Gateways: 2]
o- gateways ................................. [Up: 2/2, Portals: 2]
| o- node0 .................................. [172.16.121.130 (UP)]
| o- node1 .................................. [172.16.121.131 (UP)]
o- host-groups ....................................... [Groups : 0]
o- hosts ............................................... [Hosts: 3]
o- iqn.1994-05.com.redhat:rh7-client . [Auth: None, Disks: 0(0b)]
o- iqn.1994-05.com.redhat:xx ....... [Auth: CHAP, Disks: 1(128M)]
| o- lun 0 ..................... [rbd.disk_1(128M), Owner: node1]
o- iqn.2003-01.com.redhat.iscsi-gw:nike [Auth: CHAP, Disks: 1(12
from ceph-iscsi-cli.
@mikechristie @pcuzner : I define the client name same with target name( iqn.2003-01.com.redhat.iscsi-gw:ceph-igw). initiator login successfully.
Thanks a lot!
/iscsi-target...eph-igw/hosts> iqn.2003-01.com.redhat.iscsi-gw:ceph-igw/ info
Client Iqn .. iqn.2003-01.com.redhat.iscsi-gw:ceph-igw
Logged In .. LOGGED_IN
Auth
- chap .. consumer/012345678912
Group Name ..
Luns - rbd.disk_1 .. lun_id=0
- rbd.disk_3 .. lun_id=1
from ceph-iscsi-cli.
Related Issues (20)
- Create disk in Erasure Pool (--data-pool)
- create disk is too slow HOT 16
- ceph mimic iscsi issue HOT 4
- create Failed : 500 INTERNAL SERVER ERROR HOT 4
- cannot remove client iqn when name it in capital letters, but can be created HOT 4
- error on rbd-target-gw restart affects second gateway HOT 1
- rollback of snapshot:LUN deactivate failure - in-use HOT 1
- gwcli fails on creating disk HOT 4
- About multipath gateway down someone
- API with authentication response is very slow HOT 1
- gwcli KeyError: 'groups' HOT 4
- gwcli: KeyError rbd_name.split HOT 1
- gwcli: Gateway status UNKNOWN HOT 2
- AttributeError: 'module' object has no attribute 'WriteOpCtx' HOT 2
- Unable to access the configuration object : REST API failure, code : 500 HOT 1
- " KeyError: 'targets' " when adding second gateway on ceph-iscsi on ubuntu - BUG
- Trouble: gwcli.utils.GatewayAPIError: Unknown error connecting to http://localhost:5001/api/config
- Help! The rbd-target-api service of iSCSI gw cannot be started HOT 1
- rbd-target-gw.service: Failed with result 'exit-code'.
- Cannot remove a non-existent gatway by confirm=true HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ceph-iscsi-cli.