deb-heat/heat/objects
Steve Baker be41d08a44 Count all nested stack resources with DB operations
The count is performed in 2 parts
- A function which builds a list of all nested stacks
  by recursively calling stack_get_all_by_owner_id
- A query which counts resources which belong to the list
  of stacks

Considering this will be the basis for fixing bug #1455589 then this
approach is appropriate for backporting to stable/kilo, but master would
ideally replace this soon with a new Stack attribute that stores the
calculated resource count.

Partial-Bug: #1455589

Change-Id: Ifa2e5609fd9a6853e20037e94a5e16696bb378ee
2015-06-02 12:04:06 +12:00
..
__init__.py First objects - stack and raw template 2015-03-11 13:56:38 +01:00
event.py Cleans default declaration nullable=False from heat objects 2015-04-06 10:33:48 +05:30
fields.py Add extra columns for resource table 2015-03-17 06:09:26 -04:00
raw_template.py Check for encrypted_param_names key in environment 2015-05-19 14:50:55 -05:00
resource_data.py Cleans default declaration nullable=False from heat objects 2015-04-06 10:33:48 +05:30
resource.py Replace dict.itervalues/dict.iteritems and use len over filter function 2015-04-23 19:45:36 +05:30
service.py Versioned object Service 2015-03-17 10:35:57 +05:30
snapshot.py Make sure snapshot belongs to stack for actions 2015-04-10 18:37:08 +08:00
software_config.py Cleans default declaration nullable=False from heat objects 2015-04-06 10:33:48 +05:30
software_deployment.py Cleans default declaration nullable=False from heat objects 2015-04-06 10:33:48 +05:30
stack_lock.py Set stack status to FAILED when engine is down 2015-04-02 11:54:05 +08:00
stack_tag.py Database API and engine changes for stack tags 2015-04-08 15:23:50 -05:00
stack.py Count all nested stack resources with DB operations 2015-06-02 12:04:06 +12:00
sync_point.py Versioned-object SyncPoint 2015-03-17 17:32:03 +00:00
user_creds.py Versioned objects - UserCreds 2015-03-13 10:37:21 +00:00
watch_data.py Cleans default declaration nullable=False from heat objects 2015-04-06 10:33:48 +05:30
watch_rule.py Cleans default declaration nullable=False from heat objects 2015-04-06 10:33:48 +05:30