os-win/os_win/utils
Lucian Petrut 11e28563d4 Add wmi job terminate timeout cfg opt
We're using a hardcoded 15 seconds timeout when canceling WMI jobs.

Some jobs may not be cancelable, some may take longer to stop. For
example, Nova instances may end up in error state after attempting
to delete them as this hardcoded timeout gets exceeded.

That being considered, we're now adding a config option for this,
also increasing the default timeout to 2 minutes.

Ideally, Nova should pass a timeout here. Still, by adding a config
option at the os-win level, it's easier to backport this to older
releases, also providing a default for any kind of WMI job.

Change-Id: I797366c40a3a4bb74fe925bd10697f227e22915c
Closes-Bug: #1790890
2018-09-06 09:56:14 +03:00
..
compute Add wmi job terminate timeout cfg opt 2018-09-06 09:56:14 +03:00
dns Fixed all typos in comments 2017-07-02 19:12:14 +03:00
io Merge "tests: Use mock autospec in unit tests" 2018-01-22 17:20:55 +00:00
metrics Remove log translations 2017-04-11 16:02:14 +08:00
network Merge "Fixes port security settings caching issue" 2018-01-23 10:56:31 +00:00
storage Remove deprecated methods 2017-12-20 16:28:57 +02:00
winapi Merge "Implement VHD attach/detach" 2017-12-19 13:38:34 +00:00
__init__.py Rename project to os-win 2015-09-17 05:21:49 -07:00
_acl_utils.py Fixed all typos in comments 2017-07-02 19:12:14 +03:00
_wqlutils.py Replace associators with direct queries 2016-02-23 15:58:14 +02:00
baseutils.py Fixes cached old WMI service objects issue 2017-06-14 02:19:39 -07:00
hostutils.py Adds NIC hardware offload support 2018-01-22 07:41:46 -08:00
hostutils10.py Remove log translations 2017-04-11 16:02:14 +08:00
jobutils.py Add wmi job terminate timeout cfg opt 2018-09-06 09:56:14 +03:00
pathutils.py Fixed all typos in comments 2017-07-02 19:12:14 +03:00
processutils.py Add processutils module 2017-12-18 16:04:56 +02:00
win32utils.py Add processutils module 2017-12-18 16:04:56 +02:00