list stacks: replace the exising two RPC calls with single RPC call

Bug #1336857 reported by Kanagaraj Manickam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Triaged
Wishlist
Kanagaraj Manickam

Bug Description

in the implementation of engine.service.list_stacks, when the with_count is provided, there are two rpc call made between api and engine service, one for list and another for count.
This could be improved by introducing an another RPC call say list_stacks_with_metadata, where more details about stack list could be returned such as 'count' in addition to the list of stacks

{'total_count':'', <-- total number of stacks based on list stacks filter
 'count':'', <-- current list stacks count
 'stack_list': [], <- list of stacks
 'marker' : '', < --- ID of the last item in this list
 'deleted_stack_count':''
}

Changed in heat:
assignee: nobody → Kanagaraj Manickam (kanagaraj-manickam)
description: updated
description: updated
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

A different name for this method would be preferred. "metadata" is already too overloaded

summary: - improve list_stacks with count API implementation to use single rpc call
+ list stacks: replace two RPC calls with single RPC call
description: updated
summary: - list stacks: replace two RPC calls with single RPC call
+ list stacks: replace the exising two RPC calls with single RPC call
Zane Bitter (zaneb)
Changed in heat:
importance: Undecided → Wishlist
Zane Bitter (zaneb)
Changed in heat:
status: New → Triaged
Revision history for this message
Kent Wang (k.wang) wrote :

Is this still an issue? It looks like the relevant code has been updated in latest release

Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.