#NEWLINE# @ shared_task #NEWLINE# @ transition ( Instance , 'set_erred' ) #NEWLINE# def disk_extension_failed( instance_uuid , disk_size , transition_entity = None ) : #NEWLINE# #INDENT# instance = transition_entity #NEWLINE# event_logger . openstack_volume . info ( 'Virtual machine {resource_name} disk has been failed.' , event_type = 'resource_volume_extension_failed' , event_context = { #NEWLINE# #INDENT# 'resource' : instance , #NEWLINE# 'volume_size' : transition_entity , #NEWLINE# #UNINDENT# } )