Skip to content

Commit 86b41e6

Browse files
committed
CSTACKEX-301: resolving comments
1 parent ef4a9ba commit 86b41e6

2 files changed

Lines changed: 2 additions & 18 deletions

File tree

‎test/integration/plugins/ontap/iscsi/instance/test_vm_volume_attach.py‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff 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)

‎test/integration/plugins/ontap/nfs3/instance/test_vm_volume_attach.py‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)