'Adds the `lun` to `storage_group`.'

def add_lun_to_sg(self, storage_group, lun, max_retries):

    try:
        return storage_group.attach_alu(lun, max_retries)
    except storops_ex.VNXAluAlreadyAttachedError as ex:
        return storage_group.get_hlu(lun)
    except storops_ex.VNXNoHluAvailableError as ex:
        with excutils.save_and_reraise_exception():
            LOG.error('Failed    to    add    %(lun)s    into    %(sg)s    after    %(tried)s    tries.    Reach    the    max    retry    times.    Message:    %(msg)s', {'lun': lun.lun_id, 'sg': storage_group.name, 'tried': max_retries, 'msg': ex.message})
