iSCSI support for XenAPI

Registered by Armando Migliaccio

Implement iSCSI support for XenAPI, so that vm instances running on XCP or XenServer can attach/detach volumes from iSCSI storage repositories

Blueprint information

Status:
Complete
Approver:
Rick Clark
Priority:
Medium
Drafter:
Citrix OpenStack development team
Direction:
Approved
Assignee:
Armando Migliaccio
Definition:
Approved
Series goal:
Accepted for bexar
Implementation:
Implemented
Milestone target:
None
Started by
Armando Migliaccio
Completed by
Thierry Carrez

Related branches

Sprints

Whiteboard

The attach/detach operations work for XenAPI is done. Target discovery is made via iscsiadm, however there are some limitation to its use:

1) volume_ref['host'] must resolve to something rather than loopback
2) ietd must bind only to the address as resolved above

If any of the two conditions do not hold, fall back on Flags.

The flags are:

flags.DEFINE_string('target_host', None, 'iSCSI Target Host')
flags.DEFINE_string('target_port', '3260', 'iSCSI Target Port, 3260 Default')
flags.DEFINE_string('iqn_prefix', 'iqn.2010-10.org.openstack', 'IQN Prefix')

Long-term solution is to add a few more fields to the db in the iscsi_target table with the necessary info and modify the iscsi driver to set them.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.