os-win/os_win
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
..
_hacking Update log translation hacking rule 2017-07-05 00:39:00 -04:00
tests Add wmi job terminate timeout cfg opt 2018-09-06 09:56:14 +03:00
utils Add wmi job terminate timeout cfg opt 2018-09-06 09:56:14 +03:00
__init__.py Refactor Windows API usage 2017-06-22 13:04:43 +03:00
_i18n.py Update the documentation link for doc migration 2017-07-24 17:27:49 +08:00
_utils.py check minimum VM version when setting VM snapshots 2017-08-09 01:32:49 -07:00
conf.py Add wmi job terminate timeout cfg opt 2018-09-06 09:56:14 +03:00
constants.py Merge "Add SAN policy setter/getter" 2017-10-27 09:23:09 +00:00
exceptions.py Remove deprecated methods and exceptions 2017-12-20 16:28:47 +02:00
utilsfactory.py Ensures that all classes have the same interface as their parents 2018-01-31 01:57:45 -08:00
version.py Adds releasenotes configuration 2017-07-14 03:04:52 -07:00