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/757054 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=6d3bf74df1d 13db9ed4f49041c c4419c9202f2e9
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 6d3bf74df1d13db 9ed4f49041cc441 9c9202f2e9
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