Comment 4 for bug 1437244

Revision history for this message
Ethan Lynn (ethanlynn) wrote :

I still have this error when using novaclient 2.24

I using heat to create a eip
and heat will using novaclient to create a ips

 ips = self.nova().floating_ips.create()
https://github.com/openstack/heat/blob/a4afc88b4c06028a3e8ed65b44e9463015c1edd6/heat/engine/resources/aws/ec2/eip.py#L109

later log it
LOG.info(_LI('ElasticIp create %s'), str(ips))
https://github.com/openstack/heat/blob/a4afc88b4c06028a3e8ed65b44e9463015c1edd6/heat/engine/resources/aws/ec2/eip.py#L120

and here will get an error.

2015-04-22 15:50:44.719 TRACE heat.engine.resource Traceback (most recent call last):
2015-04-22 15:50:44.719 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/resource.py", line 489, in _action_recorder
2015-04-22 15:50:44.719 TRACE heat.engine.resource yield
2015-04-22 15:50:44.719 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/resource.py", line 559, in _do_action
2015-04-22 15:50:44.719 TRACE heat.engine.resource yield self.action_handler_task(action, args=handler_args)
2015-04-22 15:50:44.719 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/scheduler.py", line 296, in wrapper
2015-04-22 15:50:44.719 TRACE heat.engine.resource step = next(subtask)
2015-04-22 15:50:44.719 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/resource.py", line 530, in action_handler_task
2015-04-22 15:50:44.719 TRACE heat.engine.resource handler_data = handler(*args)
2015-04-22 15:50:44.719 TRACE heat.engine.resource File "/opt/stack/heat/heat/engine/resources/aws/ec2/eip.py", line 121, in handle_create
2015-04-22 15:50:44.719 TRACE heat.engine.resource LOG.info(_LI('ElasticIp create %s'), str(ips))
2015-04-22 15:50:44.719 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/novaclient/v2/floating_ips.py", line 28, in __repr__
2015-04-22 15:50:44.719 TRACE heat.engine.resource return "<FloatingIP: %s>" % self.address
2015-04-22 15:50:44.719 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/novaclient/openstack/common/apiclient/base.py", line 480, in __getattr__
2015-04-22 15:50:44.719 TRACE heat.engine.resource raise AttributeError(k)
2015-04-22 15:50:44.719 TRACE heat.engine.resource AttributeError: address