File tree Expand file tree Collapse file tree
test/integration/plugins/ontap Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -696,15 +696,7 @@ def test_06_stop_vm_lun_unmapped(self):
696696
697697 cmd = stopVirtualMachineAPI .stopVirtualMachineCmd ()
698698 cmd .id = self .__class__ .vm .id
699- try :
700- self .apiClient .stopVirtualMachine (cmd )
701- except Exception as exc :
702- # Marvin can lose the management API connection while polling an
703- # already-submitted async stop job. The VM state is authoritative,
704- # so continue polling before treating the stop as failed.
705- logger .warning (
706- "stopVirtualMachine polling failed; checking VM state: %s" ,
707- exc )
699+ self .apiClient .stopVirtualMachine (cmd )
708700
709701 result = self ._poll_vm_state (self .__class__ .vm .id , "Stopped" ,
710702 timeout = 300 )
Original file line number Diff line number Diff line change @@ -650,15 +650,7 @@ def test_06_stop_vm_export_retained(self):
650650
651651 cmd = stopVirtualMachineAPI .stopVirtualMachineCmd ()
652652 cmd .id = vm .id
653- try :
654- self .apiClient .stopVirtualMachine (cmd )
655- except Exception as exc :
656- # Marvin can lose the management API connection while polling an
657- # already-submitted async stop job. The VM state is authoritative,
658- # so continue polling before treating the stop as failed.
659- logger .warning (
660- "stopVirtualMachine polling failed; checking VM state: %s" ,
661- exc )
653+ self .apiClient .stopVirtualMachine (cmd )
662654
663655 result = self ._poll_vm_state (vm .id , "Stopped" , timeout = 300 )
664656 self .assertEqual (
You can’t perform that action at this time.
0 commit comments