'This method is called on OVO registration and sets the DB model.'

@classmethod
def cinder_ovo_cls_init(cls):

    try:
        cls.model = db.get_model_for_versioned_object(cls)
    except (ImportError, AttributeError):
        msg = (_("Couldn't    find    ORM    model    for    Persistent    Versioned    Object    %s.") % cls.obj_name())
        raise exception.ProgrammingError(reason=msg)
