Stack creation failed with: AttributeError: 'module' object has no attribute 'MessagingTimeout'

Bug #1466239 reported by Steve Baker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Angus Salkeld
Kilo
Fix Released
Undecided
Unassigned

Bug Description

This error was seen during a failed CREATE.

It may be fixed as a side-effect to fixing bug #1459837

2015-06-17 07:27:46.174 8273 INFO heat.engine.resource [req-ffc398d9-df83-4192-9cde-f1d3fe23a43c admin admin] Validating StructuredConfig "ControllerConfig"
2015-06-17 07:27:46.234 8273 INFO heat.engine.resource [req-ffc398d9-df83-4192-9cde-f1d3fe23a43c admin admin] Validating StructuredDeployment "NetworkDeployment"
2015-06-17 07:27:46.235 8273 INFO heat.engine.resource [req-ffc398d9-df83-4192-9cde-f1d3fe23a43c admin admin] Validating StructuredDeployment "ControllerDeployment"
2015-06-17 07:27:46.451 8273 DEBUG heat.engine.scheduler [-] Task stack_task from Stack "overcloud" [46a3cf85-14a4-4e11-8768-3e7f99f2be1c] running step /usr/lib/python2.7/site-packages/heat/engine/scheduler.py:220
2015-06-17 07:27:46.452 8273 DEBUG heat.engine.scheduler [-] Task resource_action running step /usr/lib/python2.7/site-packages/heat/engine/scheduler.py:220
2015-06-17 07:27:46.502 8273 INFO heat.engine.resource [-] CREATE: TemplateResource "2" Stack "overcloud-Controller-k7hlqldpslh5" [e87d1a38-8c6e-43fe-8a97-86c2a563c453]
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource Traceback (most recent call last):
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 500, in _action_recorder
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource yield
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 570, in _do_action
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource yield self.action_handler_task(action, args=handler_args)
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/scheduler.py", line 296, in wrapper
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource step = next(subtask)
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 541, in action_handler_task
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource handler_data = handler(*args)
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resources/template_resource.py", line 257, in handle_create
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource self.child_params())
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resources/stack_resource.py", line 265, in create_with_template
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource self.raise_local_exception(ex)
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource File "/usr/lib/python2.7/site-packages/heat/engine/resources/stack_resource.py", line 284, in raise_local_exception
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource local_ex = copy.copy(getattr(exception, ex_type))
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource AttributeError: 'module' object has no attribute 'MessagingTimeout'
2015-06-17 07:27:46.502 8273 TRACE heat.engine.resource
2015-06-17 07:27:46.762 8273 DEBUG heat.engine.stack_lock [req-ffc398d9-df83-4192-9cde-f1d3fe23a43c admin admin] Engine e5a4ac3f-2645-4a37-9708-5aca6a08c719 acquired lock on stack 7e0ba6d1-040b-4e96-a4db-a6f15762c3ab acquire /usr/lib/python2.7/site-packages/heat/engine/stack_lock.py:80
2015-06-17 07:27:46.763 8273 DEBUG oslo_messaging._drivers.amqp [req-ffc398d9-df83-4192-9cde-f1d3fe23a43c admin admin] UNIQUE_ID is 5b3d9c00a53a4035a417094c8c950863. _add_unique_id /usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqp.py:258

Angus Salkeld (asalkeld)
Changed in heat:
assignee: nobody → Angus Salkeld (asalkeld)
milestone: none → liberty-1
tags: added: kilo-backport-potential
Revision history for this message
Steve Baker (steve-stevebaker) wrote :
Changed in heat:
status: Triaged → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/194487

Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/kilo)

Reviewed: https://review.openstack.org/194487
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=8f43aeeb422265097c36902a0e8cff038ec41324
Submitter: Jenkins
Branch: stable/kilo

commit 8f43aeeb422265097c36902a0e8cff038ec41324
Author: Angus Salkeld <email address hidden>
Date: Thu Jun 18 09:54:18 2015 +1000

    Not all exceptions from remote stacks are internal exceptions

    The code in stack_resource assumed all exceptions raised in the
    remote stack were from heat/common/exceptions.py but oslo messaging
    also raises exceptions (timeout).

    Cherry-picked and adapted from heat c1bb5fb384ff46d7148f9567611afb0306dfe800
    Co-Authored-By: Steve Baker <email address hidden>
    Co-Authored-By: Zane Bitter <email address hidden>
    Closes-bug: #1466239
    Change-Id: I91e1497ebf731a69fa86a574b42cccfe59430df1

tags: added: in-stable-kilo
tags: removed: kilo-backport-potential
Thierry Carrez (ttx)
Changed in heat:
milestone: liberty-1 → 5.0.0
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.