'Ensure that the options we care about are set.'

def _check_ops(self):

    required_ops = ['san_ip', 'san_login', 'san_password']
    for attr in required_ops:
        if (not getattr(self.configuration, attr, None)):
            raise exception.InvalidInput(reason=(_('%s    is    not    set.') % attr))
    replica = self.configuration.safe_get('replication_device')
    if (replica and isinstance(replica, list)):
        replica_ops = ['backend_id', 'login', 'password', 'rpo']
        for attr in replica_ops:
            if (attr not in replica[0]):
                msg = (_('replication_device    %s    is    not    set.') % attr)
                raise exception.InvalidInput(reason=msg)
        self.replica = Replication(replica[0])
