def _set_voldb_empty_at_startup_indicator(self, ctxt):
    'Determine if the Cinder volume DB is empty.\n\n        A check of the volume DB is done to determine whether it is empty or\n        not at this point.\n\n        :param ctxt: our working context\n        '
    vol_entries = self.db.volume_get_all(ctxt, None, 1, filters=None)
    if (len(vol_entries) == 0):
        LOG.info(_LI('Determined volume DB was empty at startup.'))
        return True
    else:
        LOG.info(_LI('Determined volume DB was not empty at startup.'))
        return False
Determine if the Cinder volume DB is empty.

A check of the volume DB is done to determine whether it is empty or
not at this point.

:param ctxt: our working context
def _set_voldb_empty_at_startup_indicator(self, ctxt):
    'Determine if the Cinder volume DB is empty.\n\n        A check of the volume DB is done to determine whether it is empty or\n        not at this point.\n\n        :param ctxt: our working context\n        '
    vol_entries = self.db.volume_get_all(ctxt, None, 1, filters=None)
    if (len(vol_entries) == 0):
        LOG.info(_LI('Determined volume DB was empty at startup.'))
        return True
    else:
        LOG.info(_LI('Determined volume DB was not empty at startup.'))
        return False