Module Expr Str Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Str ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str NameLoad NameLoad AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad NameLoad NameLoad NameLoad Str Str Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad NameLoad NameLoad Str Str Num NameLoad NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq Call NameLoad NameLoad Str body Return Dict Str Str Str Str NameLoad Str Str Str For NameStore AttributeLoad NameLoad attr body If CompareEq SubscriptLoad NameLoad Index Str Call NameLoad NameLoad body Return NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If CompareNotEq SubscriptLoad NameLoad Index Str Str body Assign NameStore BinOpMod Str NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Str Raise Call AttributeLoad NameLoad attr keyword NameLoad If BoolOpAnd NameLoad UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Assign NameStore Str Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Str Raise Call AttributeLoad NameLoad attr keyword NameLoad If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Str Raise Call AttributeLoad NameLoad attr keyword NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Dict NameLoad Dict Str Str Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Slice Delete SubscriptDel AttributeLoad NameLoad attr Slice decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Dict Str Str Str Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore AttributeLoad NameLoad attr body If CompareEq SubscriptLoad NameLoad Index Str Call NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Str decorator_list decorator_list
N/A N/A Implementation of a fake volume API. N/A uuid oslo_config cfg oslo_log log logging oslo_utils timeutils nova exception N/A LOG N/A N/A logging getLogger __name__ N/A CONF N/A cfg CONF N/A N/A N/A CONF import_opt cross_az_attach nova.volume.cinder group cinder fake_volume N/A object N/A N/A user_uuid 4a3cd440-b9c2-11e1-afa6-0800200c9a66 N/A instance_uuid 4a3cd441-b9c2-11e1-afa6-0800200c9a66 __init__ N/A N/A self size name description volume_id snapshot volume_type metadata availability_zone N/A N/A N/A snapshot_id None N/A N/A snapshot None N/A N/A snapshot_id N/A snapshot N/A id N/A N/A volume_id None N/A N/A volume_id N/A str N/A N/A uuid uuid4 N/A N/A self vol N/A created_at deleted_at updated_at uuid deleted id user_id project_id snapshot_id host size availability_zone instance_uuid mountpoint attach_time status attach_status scheduled_at launched_at terminated_at display_name display_description provider_location provider_auth volume_type_id multiattach N/A N/A timeutils utcnow None N/A N/A timeutils utcnow WTF False volume_id N/A self user_uuid fake-project-id snapshot_id None size availability_zone None None N/A N/A timeutils utcnow available detached None None None name description fake-location fake-auth 99 False N/A get N/A N/A self key default N/A None N/A N/A N/A N/A self vol N/A key N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A N/A self vol N/A key value N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A self vol N/A key N/A N/A fake_snapshot N/A object N/A N/A user_uuid 4a3cd440-b9c2-11e1-afa6-0800200c9a66 N/A instance_uuid 4a3cd441-b9c2-11e1-afa6-0800200c9a66 __init__ N/A N/A self volume_id size name desc id N/A None N/A N/A N/A id None N/A N/A id N/A str N/A N/A uuid uuid4 N/A N/A self snap N/A created_at deleted_at updated_at uuid deleted id volume_id status progress volume_size display_name display_description user_id project_id N/A N/A timeutils utcnow None N/A N/A timeutils utcnow WTF False N/A str id volume_id available 100% 1 name desc N/A self user_uuid fake-project-id N/A get N/A N/A self key default N/A None N/A N/A N/A N/A self snap N/A key N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A N/A self snap N/A key value N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A self snap N/A key N/A N/A API N/A object N/A N/A volume_list N/A N/A snapshot_list N/A N/A _instance None Singleton N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self API None N/A N/A __init__ N/A N/A self N/A N/A N/A N/A N/A API _instance None N/A N/A N/A API _instance N/A N/A API Singleton N/A N/A self _EventHandler_instance N/A API _instance N/A create N/A N/A self context size name description snapshot volume_type metadata availability_zone N/A None None None None N/A N/A v N/A fake_volume size name description None snapshot volume_type metadata availability_zone N/A N/A N/A N/A self volume_list append N/A v vol N/A N/A N/A LOG info creating volume %s N/A N/A v vol N/A id N/A N/A v vol N/A create_with_kwargs N/A N/A self context N/A kwargs N/A N/A volume_id N/A N/A kwargs get volume_id None N/A v N/A fake_volume N/A kwargs N/A size N/A kwargs N/A name N/A kwargs N/A description N/A str volume_id None None None None N/A N/A N/A N/A kwargs get status None None N/A N/A N/A N/A v vol N/A status N/A kwargs N/A status N/A N/A N/A kwargs N/A host None N/A N/A N/A N/A v vol N/A host N/A kwargs N/A host N/A N/A N/A kwargs N/A attach_status None N/A N/A N/A N/A v vol N/A attach_status N/A kwargs N/A attach_status N/A N/A N/A N/A kwargs get snapshot_id None None N/A N/A N/A N/A v vol N/A snapshot_id N/A kwargs N/A snapshot_id N/A N/A N/A N/A self volume_list append N/A v vol N/A N/A v vol N/A get N/A N/A self context volume_id N/A N/A N/A N/A N/A str volume_id 87654321 N/A N/A N/A id attach_time attach_status status volume_id 13:56:24 attached in-use N/A v N/A self volume_list N/A N/A N/A N/A v N/A id N/A str volume_id N/A N/A v N/A N/A N/A exception VolumeNotFound volume_id volume_id N/A get_all N/A N/A self context N/A N/A N/A N/A self volume_list N/A delete N/A N/A self context volume_id N/A N/A N/A N/A N/A LOG info deleting volume %s volume_id N/A N/A self volume_list N/A v N/A v N/A self volume_list N/A N/A v N/A id volume_id N/A check_attach N/A N/A self context volume instance N/A None N/A N/A N/A N/A volume N/A status available N/A N/A msg N/A Status of volume '%s' must be available volume N/A N/A N/A exception InvalidVolume reason msg N/A N/A N/A volume N/A attach_status attached N/A N/A msg already attached N/A N/A N/A exception InvalidVolume reason msg N/A N/A instance N/A N/A N/A CONF cinder cross_az_attach N/A N/A N/A N/A instance N/A availability_zone N/A volume N/A availability_zone N/A N/A msg Instance and volume not in same availability_zone N/A N/A N/A exception InvalidVolume reason msg N/A check_detach N/A N/A self context volume instance N/A None N/A N/A N/A N/A volume N/A status available N/A N/A msg already detached N/A N/A N/A exception InvalidVolume reason msg N/A N/A N/A volume N/A attach_status detached N/A N/A msg Volume must be attached in order to detach. N/A N/A N/A exception InvalidVolume reason msg N/A N/A instance N/A N/A N/A N/A N/A volume get attachments N/A get N/A instance uuid N/A N/A N/A N/A exception VolumeUnattached volume_id N/A volume N/A id N/A attach N/A N/A self context volume_id instance_uuid mountpoint mode N/A rw N/A N/A N/A N/A LOG info attaching volume %s volume_id N/A volume N/A N/A self get context volume_id N/A N/A volume N/A status in-use N/A N/A volume N/A attach_status attached N/A N/A volume N/A attach_time N/A N/A timeutils utcnow N/A N/A volume N/A multiattach True N/A N/A volume N/A attachments N/A instance_uuid N/A attachment_id mountpoint N/A str N/A N/A uuid uuid4 mountpoint N/A reset_fake_api N/A N/A self context N/A N/A N/A N/A N/A self volume_list N/A N/A N/A N/A self snapshot_list N/A N/A detach N/A N/A self context volume_id instance_uuid attachment_id N/A None N/A N/A N/A N/A LOG info detaching volume %s volume_id N/A volume N/A N/A self get context volume_id N/A N/A volume N/A status available N/A N/A volume N/A attach_status detached N/A initialize_connection N/A N/A self context volume_id connector N/A N/A N/A N/A driver_volume_type data iscsi N/A N/A terminate_connection N/A N/A self context volume_id connector N/A N/A N/A None N/A get_snapshot N/A N/A self context snapshot_id N/A N/A N/A snap N/A self snapshot_list N/A N/A N/A N/A snap N/A id N/A str snapshot_id N/A N/A snap N/A get_all_snapshots N/A N/A self context N/A N/A N/A N/A self snapshot_list N/A create_snapshot N/A N/A self context volume_id name description id N/A None N/A N/A volume N/A N/A self get context volume_id N/A snapshot N/A fake_snapshot N/A volume N/A id N/A volume N/A size name description id N/A N/A N/A N/A self snapshot_list append N/A snapshot snap N/A N/A snapshot snap N/A create_snapshot_with_kwargs N/A N/A self context N/A kwargs N/A N/A snapshot N/A fake_snapshot N/A N/A kwargs get volume_id N/A N/A kwargs get volume_size N/A N/A kwargs get name N/A N/A kwargs get description N/A N/A kwargs get snap_id N/A status N/A N/A kwargs get status None N/A N/A N/A snapshot snap N/A status status N/A N/A N/A N/A self snapshot_list append N/A snapshot snap N/A N/A snapshot snap N/A create_snapshot_force N/A N/A self context volume_id name description id N/A None N/A N/A volume N/A N/A self get context volume_id N/A snapshot N/A fake_snapshot N/A volume N/A id N/A volume N/A size name description id N/A N/A N/A N/A self snapshot_list append N/A snapshot snap N/A N/A snapshot snap N/A delete_snapshot N/A N/A self context snapshot_id N/A N/A N/A N/A self snapshot_list N/A s N/A s N/A self snapshot_list N/A N/A s N/A id snapshot_id N/A reserve_volume N/A N/A self context volume_id N/A N/A N/A N/A N/A LOG info reserving volume %s volume_id N/A volume N/A N/A self get context volume_id N/A N/A volume N/A status attaching N/A unreserve_volume N/A N/A self context volume_id N/A N/A N/A N/A N/A LOG info unreserving volume %s volume_id N/A volume N/A N/A self get context volume_id N/A N/A volume N/A status available N/A begin_detaching N/A N/A self context volume_id N/A N/A N/A N/A N/A LOG info begin detaching volume %s volume_id N/A volume N/A N/A self get context volume_id N/A N/A volume N/A status detaching N/A roll_detaching N/A N/A self context volume_id N/A N/A N/A N/A N/A LOG info roll detaching volume %s volume_id N/A volume N/A N/A self get context volume_id N/A N/A volume N/A status in-use N/A N/A