The neutron Windows exec call helper doesn't properly handle the
situation in which the process that it's trying to kill was already
terminated, in which case using wmi to fetch the process can raise
an exception.
This change ensures that those WMI exceptions will be properly
handled.
Closes-Bug: 1872663
Change-Id: I00c810fe541ac5e1e9923155fe90eb07a0b4b3dd
(cherry picked from commit 8fd3e884c7953645862663400af181ba233ec28f)
Reviewed: https:/ /review. opendev. org/757050 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=29b8d567fcb 95627216f5bcc86 82e5955b089e82
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit 29b8d567fcb9562 7216f5bcc8682e5 955b089e82
Author: Lucian Petrut <email address hidden>
Date: Tue Apr 14 11:25:18 2020 +0300
windows: fix terminating processes
The neutron Windows exec call helper doesn't properly handle the
situation in which the process that it's trying to kill was already
terminated, in which case using wmi to fetch the process can raise
an exception.
This change ensures that those WMI exceptions will be properly
handled.
Closes-Bug: 1872663
Change-Id: I00c810fe541ac5 e1e9923155fe90e b07a0b4b3dd 5862663400af181 ba233ec28f)
(cherry picked from commit 8fd3e884c795364