heat/heat
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
..
api Return HTTPBadRequest from circular dependency 2023-02-27 12:22:42 +00:00
cloudinit Replace use of distutils.version 2023-06-19 10:45:58 +01:00
cmd db: Remove layer of indirection 2023-03-25 12:02:27 +09:00
common Merge "Skip loading auth plugin in case the property is set" 2023-09-05 06:43:14 +00:00
db Handle FK error when creating/updating software deployments 2023-09-13 15:26:11 +09:00
engine Handle FK error when creating/updating software deployments 2023-09-13 15:26:11 +09:00
hacking Update hacking for Python3 2020-04-16 08:41:49 +02:00
httpd Always reset CONF when starting the wsgi app 2020-11-17 15:26:52 +00:00
locale Imported Translations from Zanata 2023-06-01 03:10:36 +00:00
objects db: Remove layer of indirection 2023-03-25 12:02:27 +09:00
policies Add OS::Neutron::QoSMinimumPacketRateRule resource 2022-06-13 14:39:57 +02:00
rpc Option for retrieving child templates and env files from swift 2018-07-26 09:50:51 +05:30
scaling Remove six and python 2.7 full support 2020-04-23 14:49:12 +02:00
tests Handle FK error when creating/updating software deployments 2023-09-13 15:26:11 +09:00
__init__.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
version.py change the dist name to 'openstack-heat' 2018-11-01 11:54:05 -04:00