'Check if rollback action is required on an initiator group.
If anything goes wrong on a masking view creation, we need to check if
the process created a now-stale initiator group before failing, i.e.
an initiator group a) matching the name used in the mv process and
b) not associated with any other masking views.
If a stale ig exists, delete the ig.
:param serial_number: the array serial number
:param init_group_name: the initiator group name
:param connector: the connector object'

def _check_ig_rollback(self, serial_number, init_group_name, connector):

    initiator_names = self.find_initiator_names(connector)
    found_ig_name = self._find_initiator_group(serial_number, initiator_names)
    if found_ig_name:
        if (found_ig_name == init_group_name):
            host = init_group_name.split('-')[1]
            LOG.debug('Searching    for    masking    views    associated    with    %(init_group_name)s', {'init_group_name': init_group_name})
            self._last_volume_delete_initiator_group(serial_number, found_ig_name, host)
