heat/heat/engine
Feilong Wang 77b8395e7d Support handling empty string for volume AZ
When building a complex stack, instance and volume are both
necessary. But the support of AZ in Nova and Cinder are slightly
different which is causing troubles to build the Heat template.
Without setting, the property availability_zone of volume always
got "", an empty string, instead of None. As a result, Cinder will
return 400 BadRequest error. This patch will turn the empty
string into None, to make sure Cinder can correctly handle the
scenario when availability_zone of volume is not set.

Task: 38853
Story: 2007330

Change-Id: Ib5bddf12ca63849a030d1d579d0a2e853e8b848a
(cherry picked from commit 50d72b8c0b)
2020-02-26 14:02:33 +13:00
..
cfn Supply outputs for reference IDs in StackResources 2018-01-19 15:08:10 -05:00
clients Fix Designate Zone ID lookup for real 2020-01-24 07:50:37 +00:00
constraint Fix allowed address pair validation 2019-05-15 13:06:36 +02:00
hot Log args during list_concat 2019-03-27 01:54:05 +00:00
notification Add missing ws seperator between words 2018-11-19 14:14:45 +08:00
resources Support handling empty string for volume AZ 2020-02-26 14:02:33 +13:00
__init__.py
api.py Add exception log for stack preview 2019-09-21 13:02:00 +05:30
attributes.py Revert "Use OutputDefinition to generate attributes schema" 2018-11-28 12:13:58 -05:00
check_resource.py Allow update of previously-replaced resources 2019-01-29 16:40:40 +13:00
conditions.py Allows condition name using boolean or function 2016-09-12 21:40:06 -04:00
constraints.py Handle unicode in constraints 2019-01-29 19:21:28 +13:00
dependencies.py Don't use Dependencies repr in tests 2017-09-26 16:46:17 -04:00
environment.py Docs: Eliminate warnings in docs generation 2018-06-21 16:38:47 -04:00
event.py Eager load resource_properties_data in resource 2017-07-31 21:13:49 -04:00
function.py Docs: Eliminate warnings in docs generation 2018-06-21 16:38:47 -04:00
lifecycle_plugin.py Fix garbled docstrings 2015-11-10 11:12:36 -05:00
node_data.py Defer exceptions in calculating node_data() 2017-09-22 12:19:13 -04:00
output.py Define resource/output definition sections with constants 2017-11-16 15:26:40 -05:00
parameter_groups.py Get rid of bogus debug logging in parameter groups 2015-12-04 19:56:56 -05:00
parameters.py Merge "Remove broken heat.resource_type custom constraint" 2017-12-05 21:48:17 +00:00
parent_rsrc.py Separate management of parent resource into separate class 2017-02-24 10:19:21 -05:00
plugin_manager.py Remove log translations 2017-03-25 17:11:50 +08:00
properties.py Ignore RESOLVE translation errors when translating before_props 2018-07-30 14:15:52 +05:30
properties_group.py Initial PropertiesGroup implementation 2016-11-07 14:29:17 +03:00
resource.py Merge "Allow update of previously-replaced resources" 2019-03-12 13:14:55 +00:00
rsrc_defn.py Ignore conditions when reparsing ResourceDefinition 2018-08-23 20:03:55 -04:00
scheduler.py Make scheduler.Timeout exception hashable 2017-10-18 16:46:39 -04:00
service.py Use ThreadGroup.add_timer() API correctly 2018-12-07 09:24:56 +13:00
service_software_config.py Resolve race in providing deployment data to Swift 2018-03-23 18:17:29 +01:00
software_config_io.py Ignore string default for software config input 2017-06-20 16:21:11 +02:00
stack.py Merge parameters and templates when resetting stack status 2019-07-17 07:30:03 +05:30
stack_lock.py Remove log translations 2017-03-25 17:11:50 +08:00
status.py Define resource actions/statuses in a separate class 2017-02-24 10:19:21 -05:00
stk_defn.py Cache dep_attrs for all resources in definitions 2017-07-21 10:44:51 -04:00
support.py Non-destructive upgrade for deprecated resources 2016-09-02 13:09:11 +08:00
sync_point.py Use wait_random_exponential from tenacity 4.4.0 2018-03-26 10:18:22 -04:00
template.py Fix errors with issubclass() in Python 3.7 2018-08-02 10:57:05 -04:00
template_common.py Handle invalid depends field 2018-06-25 15:07:33 +02:00
template_files.py Option for retrieving child templates and env files from swift 2018-07-26 09:50:51 +05:30
timestamp.py Fix garbled docstrings 2015-11-10 11:12:36 -05:00
translation.py Ignore RESOLVE translation errors when translating before_props 2018-07-30 14:15:52 +05:30
update.py Update resource definitions after legacy in-place update 2018-08-31 17:08:58 -04:00
worker.py Eliminate client race condition in convergence delete 2018-07-30 20:48:28 -04:00