So, as I am looking at this more closely. It seems that we do have a bug in the process here right now. Given where we are in development, it seems like changing _get_host_device for LibvertISCSIVolumeDriver to do something like this:
Is a low risk change that will cover more configurations.
As for your suggestion it looks like the path in sys/class/scsi_disk is <host>:<channel>:<id>:<lun> . Figuring out a way to put that together for Kilo, perhaps, sounds like a better long term solution.
So, as I am looking at this more closely. It seems that we do have a bug in the process here right now. Given where we are in development, it seems like changing _get_host_device for LibvertISCSIVol umeDriver to do something like this:
def _get_host_ device( self, iser_properties):
time.sleep( 1) iscsi-% s-lun-% s" %
(iser_ properties[ 'target_ portal' ],
iser_ properties[ 'target_ iqn'],
iser_ properties. get('target_ lun', 0)))
look_for_ device = glob.glob( '/dev/disk/ by-path/ *%s' % device)
host_ device = look_for_device[0]
host_device = None
device = ("ip-%s-
if look_for_device:
return host_device
Is a low risk change that will cover more configurations.
As for your suggestion it looks like the path in sys/class/scsi_disk is <host>: <channel> :<id>:< lun> . Figuring out a way to put that together for Kilo, perhaps, sounds like a better long term solution.