'Check that driver can login.
Check also pool, project, initiators, initiatorgroup, target and
targetgroup.'

def check_for_setup_error(self):

    lcfg = self.configuration
    self.zfssa.verify_pool(lcfg.zfssa_pool)
    self.zfssa.verify_project(lcfg.zfssa_pool, lcfg.zfssa_project)
    if (lcfg.zfssa_initiator_config != ''):
        initiator_config = ast.literal_eval(lcfg.zfssa_initiator_config)
        for initiator_group in initiator_config:
            zfssa_initiator_group = initiator_group
            for zfssa_initiator in initiator_config[zfssa_initiator_group]:
                self.zfssa.verify_initiator(zfssa_initiator['iqn'])
    else:
        if ((lcfg.zfssa_initiator != '') and (lcfg.zfssa_initiator_group != '') and (lcfg.zfssa_initiator_group != 'default')):
            for initiator in lcfg.zfssa_initiator.split(','):
                self.zfssa.verify_initiator(initiator)
        self.zfssa.verify_target(self._get_target_alias())
