Duplicate entries for the same Heat Stack on Horizon

Bug #1333616 reported by Visnusaran Murugan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-heatclient
New
Undecided
Visnusaran Murugan

Bug Description

Created a single sample Wordpress Heat stack through CLI and Horizon show multiple entries of the same stack. Screenshot attached.

Data from heat-api:

{"stacks":[{"description":"Heat WordPress template to support F20, using only Heat OpenStack-native resource types, and without the requirement for heat-cfntools in the image. WordPress is web software you can use to create a beautiful website or blog. This template installs a single-instance WordPress deployment using a local MySQL database to store the data.\n","links": [{"href": "http://192.168.254.163:8004/v1/ca48725920954642bf82f8899a890c60/stacks/WordPress1/1b2f2dc8-cd01-4b75-9538-fb79b4a8bf88","rel": "self"}],"stack_status_reason": "Stack CREATE completed successfully", "stack_name": "WordPress1", "creation_time": "2014-06-24T05:24:42Z", "updated_time": null, "stack_status": "CREATE_COMPLETE","id": "1b2f2dc8-cd01-4b75-9538-fb79b4a8bf88"}],"links": [{"href": "http://192.168.254.163:8004/v1/ca48725920954642bf82f8899a890c60/stacks?limit=1&marker=1b2f2dc8-cd01-4b75-9538-fb79b4a8bf88", "rel": "next"}]}

Revision history for this message
Visnusaran Murugan (visnusaran-murugan) wrote :
description: updated
Revision history for this message
Visnusaran Murugan (visnusaran-murugan) wrote :

Issue with the way calculation is done for pagination in heatclient, . Moving from horizon.

affects: horizon → python-heatclient
Changed in python-heatclient:
assignee: nobody → Visnusaran Murugan (visnusaran-murugan)
Revision history for this message
Julie Pichon (jpichon) wrote :

Just hit this in Horizon, pretty shocking at first! Thank you for looking into it.

Revision history for this message
Steve Baker (steve-stevebaker) wrote :

This looks like a duplicate of bug #1322097.

Can you confirm that you have the latest release of python-heatclient 0.2.9?

Revision history for this message
Steve Baker (steve-stevebaker) wrote :

Also what version of Horizon and Heat are you running? This may only be an issue with a recent Horizon on a Havana Heat.

Revision history for this message
Visnusaran Murugan (visnusaran-murugan) wrote :

Hi Steve,

Yeah its a duplicate. Also the pagination code in heatclient assumes that it gets complete stack-list and used that info to iterate. This works only if --limit parameter is not passed. I have a fix which with does not work on total stack-size. Will mark this as defect duplicate.

I am using a devstack installation. Code is as of 26th June 2014 (master).

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.