Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict Str Str Str Str NameLoad Str Str Dict With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad keyword AttributeLoad NameLoad attr Assign NameStore NameLoad TryFinally body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Expr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad finalbody TryExcept body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A N/A 
Management class for VM snapshot operations.
 N/A os nova.compute task_states nova exception nova.image glance nova utils os_win exceptions os_win_exc os_win utilsfactory oslo_log log logging hyperv.i18n _LE hyperv.nova pathutils N/A LOG N/A N/A logging getLogger __name__ SnapshotOps N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self _pathutils N/A N/A pathutils PathUtils N/A N/A self _vmutils N/A N/A utilsfactory get_vmutils N/A N/A self _vhdutils N/A N/A utilsfactory get_vhdutils N/A _save_glance_image N/A N/A self context image_id image_vhd_path N/A N/A N/A N/A glance_image_service image_id N/A N/A glance get_remote_image_service context image_id N/A image_metadata N/A is_public disk_format container_format properties False vhd bare N/A N/A N/A N/A N/A self _pathutils open image_vhd_path rb f N/A N/A N/A N/A glance_image_service update context image_id image_metadata f N/A snapshot N/A N/A self context instance image_id update_task_state N/A N/A instance_synchronized_snapshot N/A N/A N/A N/A N/A N/A N/A self _snapshot context instance image_id update_task_state N/A N/A N/A utils synchronized N/A instance uuid N/A N/A N/A N/A instance_synchronized_snapshot N/A N/A N/A N/A os_win_exc HyperVVMNotFoundException N/A N/A N/A N/A exception InstanceNotFound instance_id N/A instance uuid N/A _snapshot N/A N/A self context instance image_id update_task_state N/A N/A N/A Create snapshot from a running VM instance. N/A instance_name N/A instance name N/A N/A N/A LOG debug Creating snapshot for instance %s instance_name N/A snapshot_path N/A N/A N/A self _vmutils take_vm_snapshot instance_name N/A N/A update_task_state task_state N/A task_states IMAGE_PENDING_UPLOAD N/A export_dir None N/A N/A N/A src_vhd_path N/A N/A N/A self _pathutils lookup_root_vhd_path instance_name N/A N/A N/A LOG debug Getting info for VHD %s src_vhd_path N/A src_base_disk_path N/A N/A N/A self _vhdutils get_vhd_parent_path src_vhd_path N/A export_dir N/A N/A N/A self _pathutils get_export_dir instance_name N/A dest_vhd_path N/A N/A N/A os path join export_dir N/A N/A N/A os path basename src_vhd_path N/A N/A N/A LOG debug Copying VHD %(src_vhd_path)s to %(dest_vhd_path)s N/A src_vhd_path dest_vhd_path src_vhd_path dest_vhd_path N/A N/A N/A N/A self _pathutils copyfile src_vhd_path dest_vhd_path N/A image_vhd_path None N/A N/A src_base_disk_path N/A N/A image_vhd_path dest_vhd_path N/A N/A basename N/A N/A N/A os path basename src_base_disk_path N/A dest_base_disk_path N/A N/A N/A os path join export_dir basename N/A N/A N/A LOG debug Copying base disk %(src_vhd_path)s to %(dest_base_disk_path)s N/A src_vhd_path dest_base_disk_path src_vhd_path dest_base_disk_path N/A N/A N/A N/A self _pathutils copyfile src_base_disk_path dest_base_disk_path N/A N/A N/A LOG debug Reconnecting copied base VHD %(dest_base_disk_path)s and diff VHD %(dest_vhd_path)s N/A dest_base_disk_path dest_vhd_path dest_base_disk_path dest_vhd_path N/A N/A N/A N/A self _vhdutils reconnect_parent_vhd dest_vhd_path dest_base_disk_path N/A N/A N/A LOG debug Merging diff disk %s into its parent. dest_vhd_path N/A N/A N/A N/A self _vhdutils merge_vhd dest_vhd_path N/A image_vhd_path dest_base_disk_path N/A N/A N/A LOG debug Updating Glance image %(image_id)s with content from merged disk %(image_vhd_path)s N/A image_id image_vhd_path image_id image_vhd_path N/A N/A update_task_state task_state N/A task_states IMAGE_UPLOADING expected_state N/A task_states IMAGE_PENDING_UPLOAD N/A N/A N/A self _save_glance_image context image_id image_vhd_path N/A N/A N/A LOG debug Snapshot image %(image_id)s updated for VM %(instance_name)s N/A image_id instance_name image_id instance_name N/A N/A N/A N/A N/A N/A LOG debug Removing snapshot %s image_id N/A N/A N/A N/A self _vmutils remove_vm_snapshot snapshot_path N/A N/A N/A Exception N/A N/A N/A N/A LOG exception N/A _LE Failed to remove snapshot for VM %s instance_name instance instance N/A export_dir N/A N/A N/A N/A LOG debug Removing directory: %s export_dir N/A N/A N/A N/A self _pathutils rmtree export_dir N/A N/A