Activity log for bug #1566081

Date Who What changed Old value New value Message
2016-04-05 00:50:15 Bob Haddleton bug added bug
2016-04-05 00:50:27 Bob Haddleton heat-translator: assignee Bob Haddleton (bob-haddleton)
2016-04-05 01:36:30 Bob Haddleton bug task added tacker
2016-04-05 01:36:51 Bob Haddleton description When the ip_address property of a tosca.nodes.network.Port object is specified heat-translator fails with an error from tosca_network_port.py: Traceback (most recent call last): File "/home/bobh/git/heat-translator/translator/tests/test_tosca_hot_translation.py", line 587, in test_hot_translate_helloworld_with_userkey params) File "/home/bobh/git/heat-translator/translator/common/utils.py", line 243, in compare_tosca_translation_with_hot output = translate.translate() File "/home/bobh/git/heat-translator/translator/hot/tosca_translator.py", line 42, in translate self.hot_template.resources = self.node_translator.translate() File "/home/bobh/git/heat-translator/translator/hot/translate_node_templates.py", line 151, in translate return self._translate_nodetemplates() File "/home/bobh/git/heat-translator/translator/hot/translate_node_templates.py", line 280, in _translate_nodetemplates self._recursive_handle_properties(resource) File "/home/bobh/git/heat-translator/translator/hot/translate_node_templates.py", line 165, in _recursive_handle_properties resource.handle_properties() File "/home/bobh/git/heat-translator/translator/hot/tosca/tosca_network_port.py", line 59, in handle_properties fixed_ip['ip_address'] = value TypeError: list indices must be integers, not str The problem is that tosca_network_port.py declares fixed_ips = [] instead of fixed_ips = {}, and then it uses it as a dict. Affects: tacker When the ip_address property of a tosca.nodes.network.Port object is specified heat-translator fails with an error from tosca_network_port.py: Traceback (most recent call last):   File "/home/bobh/git/heat-translator/translator/tests/test_tosca_hot_translation.py", line 587, in test_hot_translate_helloworld_with_userkey     params)   File "/home/bobh/git/heat-translator/translator/common/utils.py", line 243, in compare_tosca_translation_with_hot     output = translate.translate()   File "/home/bobh/git/heat-translator/translator/hot/tosca_translator.py", line 42, in translate     self.hot_template.resources = self.node_translator.translate()   File "/home/bobh/git/heat-translator/translator/hot/translate_node_templates.py", line 151, in translate     return self._translate_nodetemplates()   File "/home/bobh/git/heat-translator/translator/hot/translate_node_templates.py", line 280, in _translate_nodetemplates     self._recursive_handle_properties(resource)   File "/home/bobh/git/heat-translator/translator/hot/translate_node_templates.py", line 165, in _recursive_handle_properties     resource.handle_properties()   File "/home/bobh/git/heat-translator/translator/hot/tosca/tosca_network_port.py", line 59, in handle_properties     fixed_ip['ip_address'] = value TypeError: list indices must be integers, not str The problem is that tosca_network_port.py declares fixed_ips = [] instead of fixed_ips = {}, and then it uses it as a dict.
2016-04-05 01:37:00 Bob Haddleton tacker: assignee Bob Haddleton (bob-haddleton)
2016-04-05 01:37:32 Bob Haddleton heat-translator: status New In Progress
2016-04-05 01:37:41 Bob Haddleton tacker: status New In Progress
2016-04-05 17:51:21 OpenStack Infra heat-translator: status In Progress Fix Released
2016-05-05 17:17:59 Sridhar Ramaswamy tacker: importance Undecided Low
2016-05-05 17:18:05 Sridhar Ramaswamy tacker: importance Low Medium
2016-05-05 17:18:19 Sridhar Ramaswamy tacker: milestone newton-2