nova/nova
Jay S. Bryant 1c7ff2af93 hyperv: Retry after WMI query fails to find dev
During long stress runs the WMI query that is looking for
the iSCSI device number can incorrectly return no data.
If the query is retried the appropriate data can then be
obtained.

This commit adds a retry loop, calling
basevolumeutils.get_device_number_for_target to avoid this situation.
It also handles the case where the devices list returned in
get_device_number_for_target is empty.  The retry loop is
implemented with new mounted_disk_query_retry_count and
mounted_disk_query_retry_interval configuration options.

Unit tests have been added to check the good and bad paths for
get_mounted_disk_from_lun.

DocImpact
Closes-bug: 1247901
Change-Id: I082c4b1694efcd20cce65293cd330b7a0cf7d470
(cherry picked from commit d143540ad1)
2014-02-11 15:18:53 -06:00
..
CA
api Merge "Fix performance of Server List with Neutron for Admins" into stable/havana 2014-01-30 14:24:50 +00:00
cells Correct use of ConfigFilesNotFoundError 2013-10-10 10:25:01 -04:00
cert Port all rpcapi modules to oslo.messaging interface 2013-09-03 21:22:43 +01:00
cloudpipe Remove exceptions.Duplicate 2013-09-24 15:41:28 +10:00
cmd Fix all scripts to honor the enabled_ssl_apis flag 2013-10-30 22:22:07 +00:00
compute Fix a lazy-load exception in security_group_update() 2013-12-31 17:58:50 +08:00
conductor Make Serializer able to backlevel objects 2013-12-16 10:51:05 -08:00
console Fix console db can't load attribute pool 2013-09-25 16:35:00 +08:00
consoleauth Port all rpcapi modules to oslo.messaging interface 2013-09-03 21:22:43 +01:00
db Merge "Fix a lazy-load exception in security_group_update()" into stable/havana 2014-01-30 06:08:58 +00:00
hacking Remove "N309 Python 3.x incompatible construct" 2013-08-14 11:29:55 +02:00
image Don't wrap Glance exceptions in NovaExceptions 2013-09-26 02:59:23 +00:00
ipv6 Fix and Gate on H303 (no wildcard imports) 2013-07-30 14:34:31 -07:00
keymgr Wire in ConfKeyManager._generate_hex_key! 2013-09-13 07:08:51 -04:00
locale Imported Translations from Transifex 2013-10-02 06:06:26 +00:00
network Merge "Fix interface-attach removes existing interfaces from db" into stable/havana 2014-02-02 03:04:50 +00:00
objects Make Serializer able to backlevel objects 2013-12-16 10:51:05 -08:00
objectstore Add HEAD api response for test s3 server BucketHandler 2014-02-08 23:16:54 -08:00
openstack Merge "Add log_handler to implement the publish_errors config option" into stable/havana 2014-01-30 08:11:56 +00:00
pci Check for None when cleaning PCI dev usage 2013-10-30 11:04:24 -04:00
scheduler Remove _get_compute_info from filter_scheduler.py 2013-09-25 15:02:56 +08:00
servicegroup Make compute_api use Service and ComputeNode objects 2013-08-29 00:18:46 -07:00
spice
storage Remove the monkey patching of _ into the builtins 2013-07-26 07:31:17 -07:00
tests hyperv: Retry after WMI query fails to find dev 2014-02-11 15:18:53 -06:00
virt hyperv: Retry after WMI query fails to find dev 2014-02-11 15:18:53 -06:00
vnc Remove the monkey patching of _ into the builtins 2013-07-26 07:31:17 -07:00
volume Pass volume_api to get_encryption_metadata 2013-10-30 13:55:07 +01:00
__init__.py
availability_zones.py Merge "Fix unicode key of azcache can't be stored to memcache" 2013-09-02 11:31:22 +00:00
baserpc.py Port all rpcapi modules to oslo.messaging interface 2013-09-03 21:22:43 +01:00
block_device.py Enable libvirt driver to use the new BDM format 2013-09-05 10:02:00 +02:00
config.py
context.py Pop extra keys from context in from_dict() 2013-08-22 08:30:12 +01:00
crypto.py Improve "keypair data is invalid" error message 2013-09-16 13:15:12 -07:00
exception.py Make Exception.format_message aware of Messages 2013-10-01 13:58:29 +00:00
filters.py Remove the monkey patching of _ into the builtins 2013-07-26 07:31:17 -07:00
hooks.py Remove the monkey patching of _ into the builtins 2013-07-26 07:31:17 -07:00
loadables.py
manager.py Port to oslo.messaging.Notifier API 2013-09-05 06:26:01 +01:00
netconf.py Better default for my_ip if 8.8.8.8 is unreachable 2013-06-26 15:10:39 -04:00
notifications.py Correct deleted_at value in notification messages 2013-09-20 13:30:24 +00:00
notifier.py Port to oslo.messaging.Notifier API 2013-09-05 06:26:01 +01:00
paths.py
policy.py Remove the monkey patching of _ into the builtins 2013-07-26 07:31:17 -07:00
quota.py Merge "Fix `NoopQuotaDriver.get_(project|user)_quotas` format" into stable/havana 2014-02-09 23:14:21 +00:00
rpcclient.py Port all rpcapi modules to oslo.messaging interface 2013-09-03 21:22:43 +01:00
safe_utils.py
service.py Fix setting backdoor port in service start 2013-10-30 14:54:49 -04:00
test.py Add support for API message localization 2013-09-03 03:12:10 +00:00
utils.py Remove `utils.parse_mailmap` 2013-10-01 16:18:44 +00:00
version.py Remove locals() from various places. 2013-07-17 09:30:48 +04:00
weights.py
wsgi.py maint: remove redundant default=None for config options 2013-08-09 02:05:04 +01:00