heat/heat
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
..
api Raise HTTPBadRequest instead of ValueError for API validation 2015-05-27 03:48:44 +00:00
cloudinit Update the rest of the code to satisfy flake8 in a py34 env 2015-04-24 11:53:43 +05:30
cmd Use Service objects instead of db_api 2015-03-23 06:38:21 -04:00
common Disable cloud-watch-lite by default 2015-05-31 17:36:13 +08:00
db Count all nested stack resources with DB operations 2015-06-02 12:04:06 +12:00
engine Report status when engine start 2015-05-31 18:45:46 +08:00
locale Imported Translations from Transifex 2015-05-30 06:05:36 +00:00
objects Count all nested stack resources with DB operations 2015-06-02 12:04:06 +12:00
openstack Switch to oslo.policy 2015-05-29 09:01:45 +00:00
rpc Expose create time in stack resource list: 2015-05-06 05:17:07 +00:00
scaling Use six.iterkeys(x) instead of x.keys() 2015-04-23 17:18:40 +03:00
tests Count all nested stack resources with DB operations 2015-06-02 12:04:06 +12:00
__init__.py Make import of oslo libraries namespaceless 2015-02-18 22:54:10 +01:00
version.py Make the first line of every file consistent. 2014-03-04 09:03:04 -06:00