Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return CompareEq BinOpBitAnd NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Num For NameStore NameLoad body AugAssignBitOr NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str For NameStore NameLoad body AugAssignBitOr AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Num For NameStore NameLoad body AugAssignBitOr NameStore Call NameLoad NameLoad AugAssignBitAnd AttributeStore NameLoad attr UnaryOpInvert NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body With SubscriptLoad NameLoad Index Str body If SubscriptLoad NameLoad Index Str body Return Assign SubscriptStore NameLoad Index Str NameLoad TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass finalbody Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr decorator_list Global identifier Assign NameStore NameLoad If CompareNotIn NameLoad NameLoad body With NameLoad body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict Str Str Str Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpSub BinOpSub Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareGtE NameLoad Num body If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body If CompareGt AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num body Expr Call NameLoad NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr IfExp Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str NameLoad ListLoad AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str IfExp BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad orelse If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Str NameLoad Raise Call SubscriptLoad NameLoad Index NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list
N/A N/A Glance Store capability N/A logging N/A threading N/A time N/A enum eventlet tpool oslo_utils reflection glance_store exceptions glance_store i18n N/A _LW N/A i18n _LW N/A _STORE_CAPABILITES_UPDATE_SCHEDULING_BOOK N/A N/A _STORE_CAPABILITES_UPDATE_SCHEDULING_LOCK N/A N/A threading Lock N/A LOG N/A N/A logging getLogger __name__ BitMasks N/A N/A enum IntEnum N/A N/A NONE 0 N/A ALL 255 N/A READ_ACCESS 1 N/A READ_OFFSET 3 N/A READ_CHUNK 5 N/A READ_RANDOM 7 N/A WRITE_ACCESS 8 N/A WRITE_OFFSET 24 N/A WRITE_CHUNK 40 N/A WRITE_RANDOM 56 N/A RW_ACCESS 9 N/A RW_OFFSET 27 N/A RW_CHUNK 45 N/A RW_RANDOM 63 N/A DRIVER_REUSABLE 64 N/A StoreCapability N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self _capabilities N/A getattr N/A self __class__ _CAPABILITIES 0 N/A capabilities N/A N/A self N/A N/A N/A N/A self _capabilities N/A property contains N/A N/A x y N/A N/A N/A N/A N/A x y y N/A staticmethod update_capabilities N/A N/A self N/A N/A N/A 
        Update dynamic storage capabilities based on current
        driver configuration and backend status when needed.

        As a hook, the function will be triggered in two cases:
        calling once after store driver get configured, it was
        used to update dynamic storage capabilities based on
        current driver configuration, or calling when the
        capabilities checking of an operation failed every time,
        this was used to refresh dynamic storage capabilities
        based on backend status then.

        This function shouldn't raise any exception out.
         N/A N/A N/A LOG debug N/A Store %s doesn't support updating dynamic storage capabilities. Please overwrite 'update_capabilities' method of the store to implement updating logics if needed. N/A N/A reflection get_class_name self N/A is_capable N/A N/A self N/A capabilities N/A N/A 
        Check if requested capability(s) are supported by
        current driver instance.

        :param capabilities: required capability(s).
         N/A caps 0 N/A cap capabilities N/A N/A caps N/A int cap N/A N/A N/A self contains N/A self capabilities caps N/A set_capabilities N/A N/A self N/A dynamic_capabilites N/A N/A 
        Set dynamic storage capabilities based on current
        driver configuration and backend status.

        :param dynamic_capabilites: dynamic storage capability(s).
         N/A cap dynamic_capabilites N/A N/A N/A self _capabilities N/A int cap N/A unset_capabilities N/A N/A self N/A dynamic_capabilites N/A N/A 
        Unset dynamic storage capabilities.

        :param dynamic_capabilites: dynamic storage capability(s).
         N/A caps 0 N/A cap dynamic_capabilites N/A N/A caps N/A int cap N/A N/A self _capabilities N/A caps N/A N/A _schedule_capabilities_update N/A N/A store N/A N/A _update_capabilities N/A N/A store context N/A N/A N/A N/A context N/A lock N/A N/A N/A context N/A updating N/A N/A N/A N/A context N/A updating True N/A N/A N/A N/A N/A N/A N/A store update_capabilities N/A N/A N/A Exception N/A N/A N/A N/A N/A context N/A updating False N/A N/A context N/A latest_update N/A int N/A N/A time time N/A N/A _STORE_CAPABILITES_UPDATE_SCHEDULING_BOOK N/A book _STORE_CAPABILITES_UPDATE_SCHEDULING_BOOK N/A N/A store book N/A N/A _STORE_CAPABILITES_UPDATE_SCHEDULING_LOCK N/A N/A N/A store book N/A N/A N/A book N/A store N/A latest_update lock updating N/A int N/A N/A time time N/A N/A threading Lock False N/A N/A context N/A book N/A store N/A sec N/A N/A N/A int N/A N/A time time N/A context N/A latest_update N/A N/A N/A store conf glance_store store_capabilities_update_min_interval N/A N/A sec 0 N/A N/A N/A N/A context N/A updating N/A N/A N/A N/A tpool execute _update_capabilities store context N/A check N/A N/A store_op_fun N/A N/A op_checker N/A N/A store N/A args kwargs N/A N/A N/A N/A N/A N/A store conf glance_store store_capabilities_update_min_interval 0 N/A N/A N/A _schedule_capabilities_update store N/A get_capabilities N/A N/A BitMasks READ_ACCESS N/A N/A N/A kwargs get offset N/A BitMasks READ_OFFSET N/A BitMasks NONE N/A N/A N/A kwargs get chunk_size N/A BitMasks READ_CHUNK N/A BitMasks NONE N/A op_cap_map N/A get add delete get_capabilities N/A N/A BitMasks WRITE_ACCESS N/A N/A BitMasks WRITE_ACCESS N/A op_exec_map N/A get add delete N/A N/A N/A N/A kwargs get offset N/A N/A kwargs get chunk_size N/A exceptions StoreRandomGetNotSupported N/A exceptions StoreGetNotSupported N/A exceptions StoreAddDisabled N/A exceptions StoreDeleteNotSupported N/A op N/A N/A N/A store_op_fun __name__ lower N/A N/A N/A req_cap N/A op_cap_map N/A op N/A N/A N/A KeyError N/A N/A N/A N/A LOG warning N/A _LW The capability of operation "%s" could not be checked. op N/A N/A N/A N/A N/A store is_capable req_cap N/A N/A N/A N/A kwargs setdefault offset 0 N/A N/A N/A kwargs setdefault chunk_size None N/A N/A N/A op_exec_map N/A op kwargs N/A N/A store_op_fun store args kwargs N/A N/A op_checker N/A