stack abandon fails

Bug #1278535 reported by Vijendar Komalla
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Undecided
Vijendar Komalla

Bug Description

stack-abandon fails with following error:
"error": {"message": "'unicode' object has no attribute 'key'", "traceback": "Traceback (most recent call last):\n\n File \"/opt/heat/lib/python2.7/site-packages/heat/openstack/common/rpc/amqp.py\", line 462, in _process_data\n **args)\n\n File \"/opt/heat/lib/python2.7/site-packages/heat/openstack/common/rpc/dispatcher.py\", line 172, in dispatch\n result = getattr(proxyobj, method)(ctxt, **kwargs)\n\n File \"/opt/heat/lib/python2.7/site-packages/heat/engine/service.py\", line 61, in wrapped\n return func(self, ctx, *args, **kwargs)\n\n File \"/opt/heat/lib/python2.7/site-packages/heat/engine/service.py\", line 570, in abandon_stack\n stack_info = stack.get_abandon_data()\n\n File \"/opt/heat/lib/python2.7/site-packages/heat/engine/parser.py\", line 738, in get_abandon_data\n for res in self.resources.values())\n\n File \"/opt/heat/lib/python2.7/site-packages/heat/engine/parser.py\", line 738, in <genexpr>\n for res in self.resources.values())\n\n File \"/opt/heat/lib/python2.7/site-packages/heat/engine/resource.py\", line 490, in get_abandon_data\n for r in db_api.resource_data_get_all(self))\n\n File \"/opt/heat/lib/python2.7/site-packages/heat/engine/resource.py\", line 490, in <genexpr>\n for r in db_api.resource_data_get_all(self))\n\nAttributeError: 'unicode' object has no attribute 'key'\n", "type": "AttributeError"}, "title": "Bad Request"}

Changed in heat:
assignee: nobody → Vijendar Komalla (vijendar-komalla)
Changed in heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/72458

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/72458
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=0a500c3211d1a2fd98f9ffb25961123787b70d8d
Submitter: Jenkins
Branch: master

commit 0a500c3211d1a2fd98f9ffb25961123787b70d8d
Author: Vijendar Komalla <email address hidden>
Date: Mon Feb 10 12:56:33 2014 -0600

    Fix usage of resource_data_get_all in stack-abandon

    Stack abandon was failing if any stack resource has resource data
    because resource_data was not properly used in resource.py
    get_abandon_data method.

    Closes-Bug: #1278535
    Change-Id: I0f41ddf530d34e7d27f740fb4f56e7ce17a43d1a

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → icehouse-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: icehouse-3 → 2014.1
Zane Bitter (zaneb)
tags: added: abandon-adopt
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.