'Create a host group or an iSCSI target on the storage port.'

def _create_target(self, targets, port, connector, hba_ids):

    (target_name, gid) = self.create_target_to_storage(port, connector, hba_ids)
    utils.output_log(MSG.OBJECT_CREATED, object='a    target', details=('port:    %(port)s,    gid:    %(gid)s,    target_name:    %(target)s' % {'port': port, 'gid': gid, 'target': target_name}))
    try:
        self.set_target_mode(port, gid)
        self.set_hba_ids(port, gid, hba_ids)
    except exception.VSPError:
        with excutils.save_and_reraise_exception():
            self.delete_target_from_storage(port, gid)
    targets['info'][port] = True
    targets['list'].append((port, gid))
