Heat driver errors when polling

Bug #1503447 reported by Tim Hinrichs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
congress
Fix Released
Low
Anusha

Bug Description

2015-10-06 12:36:16.620 ERROR congress.datasources.datasource_driver [-] Datasource driver raised exception
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver Traceback (most recent call last):
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver File "/opt/stack/congress/congress/datasources/datasource_driver.py", line 1028, in poll
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver self.update_from_datasource() # sets self.state
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver File "/opt/stack/congress/congress/datasources/heatv1_driver.py", line 120, in update_from_datasource
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver self._translate_software_deployment(deployments)
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver File "/opt/stack/congress/congress/datasources/datasource_utils.py", line 47, in inner
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver result = f(self, raw_data, *args, **kw)
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver File "/opt/stack/congress/congress/datasources/heatv1_driver.py", line 135, in _translate_software_deployment
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver obj['deployments'], HeatV1Driver.software_deployment_translator)
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver File "/opt/stack/congress/congress/datasources/datasource_driver.py", line 992, in convert_objs
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver rows, _ = DataSourceDriver.convert_obj(o, translator)
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver File "/opt/stack/congress/congress/datasources/datasource_driver.py", line 971, in convert_obj
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver parent_row_dict)
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver File "/opt/stack/congress/congress/datasources/datasource_driver.py", line 944, in _populate_translator_data_hdict
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver return cls._populate_hdict(translator, obj, parent_row_dict)
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver File "/opt/stack/congress/congress/datasources/datasource_driver.py", line 877, in _populate_hdict
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver cls._get_value(obj, field, selector), extract_fn)
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver File "/opt/stack/congress/congress/datasources/datasource_driver.py", line 652, in _get_value
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver if field in o:
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver TypeError: argument of type 'SoftwareDeployment' is not iterable
2015-10-06 12:36:16.620 TRACE congress.datasources.datasource_driver
20

Anusha (anusha-iiitm)
Changed in congress:
assignee: nobody → Anusha (anusha-iiitm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to congress (master)

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

Changed in congress:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to congress (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/232360

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to congress (stable/liberty)

Reviewed: https://review.openstack.org/232360
Committed: https://git.openstack.org/cgit/openstack/congress/commit/?id=50c9fdae77cc41498367da6d8a1594a6fb7b0477
Submitter: Jenkins
Branch: stable/liberty

commit 50c9fdae77cc41498367da6d8a1594a6fb7b0477
Author: Anusha Ramineni <email address hidden>
Date: Thu Oct 8 09:11:40 2015 +0530

    Fix heat polling error

    Currently, while polling heat driver, return value of stacks and
    deployments from heat driver are Objects of Stack and
    SoftwareDeployment respectively. But the translator selector type
    used is DICT instead of DOT, hence causing error.
    This commit addresses the same.

    Change-Id: I28648d9e73ead10467e5969dfb5e2a23e7278d12
    Closes-Bug:#1503447

tags: added: in-stable-liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to congress (master)

Reviewed: https://review.openstack.org/232317
Committed: https://git.openstack.org/cgit/openstack/congress/commit/?id=5c92e89adafd2a5afb777b9cbdedf59b4268e53e
Submitter: Jenkins
Branch: master

commit 5c92e89adafd2a5afb777b9cbdedf59b4268e53e
Author: Anusha Ramineni <email address hidden>
Date: Thu Oct 8 09:11:40 2015 +0530

    Fix heat polling error

    Currently, while polling heat driver, return value of stacks and
    deployments from heat driver are Objects of Stack and
    SoftwareDeployment respectively. But the translator selector type
    used is DICT instead of DOT, hence causing error.
    This commit addresses the same.

    Change-Id: I28648d9e73ead10467e5969dfb5e2a23e7278d12
    Closes-Bug:#1503447

Changed in congress:
status: In Progress → Fix Committed
Tim Hinrichs (thinrichs)
Changed in congress:
status: Fix Committed → Fix Released
Tim Hinrichs (thinrichs)
Changed in congress:
milestone: none → mitaka-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/congress 2.0.0

This issue was fixed in the openstack/congress 2.0.0 release.

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.