ceph-rbd-iscsi-driver

Registered by Gangbiao Liu

Currently, the cinder driver 'rbd.py' dosn't support exporting RBD with iscsi protocol. It's necessary to implement this feather because some system can't use RBD conveniently with out iscsi protocol. Used with tcum(TCM in Userspace), this dirver can put a RBD in an iscsi target and export it, so the iscsi initiator can use it easyily.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Gangbiao Liu
Direction:
Needs approval
Assignee:
Gangbiao Liu
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Use case:
step 1: Run tcmu ( https://github.com/open-iscsi/tcmu-runner.git ) first
setp 2: In your openstack you can create a volume and connect it to an VM with the 'ceph-rbd-iscsi-driver' , then the driver will create an iscsi target based a RBD and the target will be attached to the VM.

`targetcli ls` result:

o- / ......................................................................................................................... [...]
  o- backstores .............................................................................................................. [...]
  | o- block .................................................................................................. [Storage Objects: 1]
  | | o- iqn.2010-10.org.openstack:volume-d9dc75ac-843b-4a59-972e-f04dac2e6522 [/dev/cinder-volumes/volume-d9dc75ac-843b-4a59-972e-f04dac2e6522 (1.0GiB) write-thru activated]
  | | o- alua ................................................................................................... [ALUA Groups: 1]
  | | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]
  | o- fileio ................................................................................................. [Storage Objects: 0]
  | o- pscsi .................................................................................................. [Storage Objects: 0]
  | o- ramdisk ................................................................................................ [Storage Objects: 0]
  | o- user:fbo ............................................................................................... [Storage Objects: 0]
  | o- user:file .............................................................................................. [Storage Objects: 0]
  | o- user:glfs .............................................................................................. [Storage Objects: 0]
  | o- user:qcow .............................................................................................. [Storage Objects: 0]
  | o- user:rbd ............................................................................................... [Storage Objects: 1]
  | | o- iqn.2010-10.org.openstack:volume-62d4736d-f256-4d85-81b4-59357c40bcbc [volumes/volume-62d4736d-f256-4d85-81b4-59357c40bcbc (1.0GiB) activated]
  | | o- alua ................................................................................................... [ALUA Groups: 1]
  | | o- default_tg_pt_gp ....................................................................... [ALUA state: Active/optimized]
  | o- user:zbc ............................................................................................... [Storage Objects: 0]
  o- iscsi ............................................................................................................ [Targets: 2]
  | o- iqn.2010-10.org.openstack:volume-62d4736d-f256-4d85-81b4-59357c40bcbc ............................................. [TPGs: 1]
  | | o- tpg1 .......................................................................................... [no-gen-acls, auth per-acl]
  | | o- acls .......................................................................................................... [ACLs: 1]
  | | | o- iqn.1994-05.com.redhat:08f7322ecf3 ....................................................... [1-way auth, Mapped LUNs: 1]
  | | | o- mapped_lun0 .................. [lun0 user/iqn.2010-10.org.openstack:volume-62d4736d-f256-4d85-81b4-59357c40bcbc (rw)]
  | | o- luns .......................................................................................................... [LUNs: 1]
  | | | o- lun0 .................. [user/iqn.2010-10.org.openstack:volume-62d4736d-f256-4d85-81b4-59357c40bcbc (default_tg_pt_gp)]
  | | o- portals .................................................................................................... [Portals: 1]
  | | o- 192.168.88.58:3260 ............................................................................................... [OK]
  | o- iqn.2010-10.org.openstack:volume-d9dc75ac-843b-4a59-972e-f04dac2e6522 ............................................. [TPGs: 1]
  | o- tpg1 .......................................................................................... [no-gen-acls, auth per-acl]
  | o- acls .......................................................................................................... [ACLs: 1]
  | | o- iqn.1994-05.com.redhat:08f7322ecf3 ....................................................... [1-way auth, Mapped LUNs: 1]
  | | o- mapped_lun0 ................. [lun0 block/iqn.2010-10.org.openstack:volume-d9dc75ac-843b-4a59-972e-f04dac2e6522 (rw)]
  | o- luns .......................................................................................................... [LUNs: 1]
  | | o- lun0 [block/iqn.2010-10.org.openstack:volume-d9dc75ac-843b-4a59-972e-f04dac2e6522 (/dev/cinder-volumes/volume-d9dc75ac-843b-4a59-972e-f04dac2e6522) (default_tg_pt_gp)]
  | o- portals .................................................................................................... [Portals: 1]
  | o- 192.168.88.58:3260 ............................................................................................... [OK]
  o- loopback ......................................................................................................... [Targets: 0]
  o- vhost ............................................................................................................ [Targets: 0]
  o- xen_pvscsi ....................................................................................................... [Targets: 0]

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.