CinderCleanableObject
¶Bases: cinder.objects.base.CinderPersistentObject
Base class for cleanable OVO resources.
All cleanable objects must have a host property/attribute.
cinder_ovo_cls_init
()¶Called on OVO registration, sets set of cleanable resources.
cleanable_resource_types
= {'Snapshot', 'Volume'}¶create_worker
(pinned=True)¶Create a worker entry at the API.
decorate
(func, caller, extras=())¶decorate(func, caller) decorates a function using a caller. If the caller is a generator function, the resulting function will be a generator function.
get_pinned_version
()¶get_rpc_api
()¶is_cleanable
(pinned=False)¶Check if cleanable VO status is cleanable.
pinned (bool) – If we should check against pinned version or current version.
Whether this needs a workers DB entry or not
refresh
()¶set_worker
()¶set_workers
(*decorator_args)¶Decorator that adds worker DB rows for cleanable versioned objects.
By default will take care of all cleanable objects, but we can limit which objects we want by passing the name of the arguments we want to be added.
unset_worker
()¶worker
= None¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.