nova/nova/virt/libvirt
Giridhar Jayavelu 0683fcd3f5 Handle TypeError when disabling host service
When _set_host_enabled() in virt/libvirt/driver.py
is called to change service status of a host from
enabled to disabled without providing disable_reason, then
a TypeError occurs while concatenating disabled_reason with
DISABLE_PREFIX. This prevents the service status of the host
from being updated.

This patch handles the case when disable_reason is None.
Also, unit tests have been fixed to validate the code path for
changing the disabled state of a host.

Closes-Bug: #1623738
Change-Id: Ib131f73444234723ef8bbb15bb4bd4a62a83320d
2016-09-14 18:18:54 -07:00
..
storage Fixes python 3 urllib quote / unquote usage 2016-05-26 18:06:40 +03:00
volume libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
blockinfo.py libvirt: fix typos in comments 2016-06-19 06:23:01 -07:00
compat.py Replace deprecated LOG.warn with LOG.warning 2016-03-15 11:57:56 +00:00
config.py Merge "Remove unused LOG" 2016-06-27 16:55:51 +00:00
designer.py Add a vnic type for PF passthrough and a new libvirt vif driver 2016-03-29 13:38:43 +01:00
driver.py Handle TypeError when disabling host service 2016-09-14 18:18:54 -07:00
firewall.py Config options: Centralize netconf options 2016-04-24 18:15:05 +00:00
guest.py Add automatic switching to postcopy mode when migration is not progressing 2016-06-29 06:42:14 +00:00
host.py libvirt: cleanup baselineCPU return value checking 2016-06-15 17:35:47 +08:00
imagebackend.py libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
imagecache.py Fix imagecache.get_cache_fname() to work in python3 2016-06-07 05:36:08 -04:00
instancejobtracker.py Replace deprecated LOG.warn with LOG.warning 2016-03-15 11:57:56 +00:00
migration.py Merge "libvirt: Add migration support for perf event support" 2016-06-29 19:47:08 +00:00
utils.py libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
vif.py Remove network information from IOVisor vif 2016-06-29 12:09:52 +05:00