heat/heat/engine
Ekaterina Chernova 7860e7acbc Handle FK error when creating/updating software deployments
Software deployments have FK constraints on software configs.
This change ensures the DBReferenceError caused by the constraints is
properly caught. With this change now heat returns 400 Bad Response,
instead of 500 Internal Server Error when a user tries to create
a software deployment with a non-existing software config.

Also, the stack_user_project_id field is defined as 64-chars-long
string in DB model, so we should ensure that the input value is shorter
than 65 chars. Otherwise it also results in DB error.

Story: 2010001
Task: 45098
Change-Id: I03274dc0cffa226140eb720458cce81e8b5ce187
2023-09-13 15:26:11 +09:00
..
cfn Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
clients Drop implementation for OS::Magnum::Bay/BayModel 2022-09-21 16:40:03 +09:00
constraint Remove six and python 2.7 full support 2020-04-22 12:23:44 +02:00
hot Improve map_merge logging 2022-11-03 15:47:01 +10:00
notification Add missing ws seperator between words 2018-11-19 14:14:45 +08:00
resources Merge "Hide resource types for Neutron LBaaS v2" 2023-04-06 15:36:38 +00:00
__init__.py
api.py Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
attributes.py Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
check_resource.py Simplify logic in retrigger_check_resource() 2020-04-30 10:51:45 -04:00
conditions.py Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
constraints.py Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
dependencies.py Move CircularDependencyException to common 2023-02-27 12:22:38 +00:00
environment.py Use stdlib fnmatch module 2021-06-25 10:48:49 +00:00
event.py Eager load resource_properties_data in resource 2017-07-31 21:13:49 -04:00
function.py Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
lifecycle_plugin.py Fix garbled docstrings 2015-11-10 11:12:36 -05:00
node_data.py Remove six and python 2.7 full support 2020-04-23 14:49:12 +02:00
output.py Remove six and python 2.7 full support 2020-04-23 14:49:12 +02:00
parameter_groups.py Get rid of bogus debug logging in parameter groups 2015-12-04 19:56:56 -05:00
parameters.py Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
parent_rsrc.py Separate management of parent resource into separate class 2017-02-24 10:19:21 -05:00
plugin_manager.py Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
properties.py Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
properties_group.py Remove six and python 2.7 full support 2020-04-23 14:49:12 +02:00
resource.py Allow multiple required_service_extension 2022-04-26 06:37:05 +00:00
rsrc_defn.py Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
scheduler.py Deprecate wrappertask decorator 2020-04-30 09:56:20 -04:00
service.py Honor 'hidden' parameter in 'stack environment show' command 2023-01-11 17:51:14 +09:00
service_software_config.py Handle FK error when creating/updating software deployments 2023-09-13 15:26:11 +09:00
software_config_io.py Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
stack.py Merge "Allow deleting user_creds when can't be decrypted" 2022-10-04 06:18:46 +00:00
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 Don't load all resources for policy check 2022-11-15 09:35:38 +05:30
support.py Fix hacking warnings 2020-04-16 06:43:27 +00:00
sync_point.py Remove six and python 2.7 full support 2020-04-23 14:49:12 +02:00
template.py Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
template_common.py Switch to collections.abc.* 2021-02-01 11:15:59 +00:00
template_files.py db: Remove layer of indirection 2023-03-25 12:02:27 +09:00
timestamp.py Fix garbled docstrings 2015-11-10 11:12:36 -05:00
translation.py Remove six and python 2.7 full support 2020-04-23 14:49:12 +02:00
update.py Merge "Deprecate wrappertask decorator" 2020-07-06 06:00:17 +00:00
worker.py db: Remove layer of indirection 2023-03-25 12:02:27 +09:00