show output raises KeyError

Bug #1521221 reported by Peter Razumovsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Peter Razumovsky

Bug Description

When I try to call output-show command, next error raises:

2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher executor_callback))
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher executor_callback)
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher return f(*args, **kwargs)
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/heat/heat/common/context.py", line 296, in wrapped
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher return func(self, ctx, *args, **kwargs)
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/heat/heat/engine/service.py", line 1103, in show_output
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher return api.format_stack_output(stack, {output_key: output}, output_key)
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/heat/heat/engine/api.py", line 192, in format_stack_output
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher result.update({rpc_api.OUTPUT_VALUE: stack.output(k)})
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher return f(*args, **kwargs)
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/heat/heat/engine/stack.py", line 1710, in output
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher value = self.outputs[key].get('Value', '')
2015-11-30 17:47:31.404 TRACE oslo_messaging.rpc.dispatcher KeyError: u'rs_out'

Decision is update self.outputs with some value.

Changed in heat:
importance: Undecided → High
assignee: nobody → Peter Razumovsky (prazumovsky)
milestone: none → mitaka-1
Changed in heat:
status: New → In Progress
Revision history for this message
Jason Dunsmore (jasondunsmore) wrote :

When exactly does this happen? A sample template and steps to reproduce would be helpful.

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

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

commit fba9708f5be99726fdfadeb20bcf6709586a93f4
Author: Peter Razumovsky <email address hidden>
Date: Mon Nov 30 17:28:18 2015 +0300

    Fix show output with unresolved stack outputs

    When stack initialized with resolve_data equals to
    False, outputs equals to empty dict. So, update stack
    outputs with resolved value.

    Change-Id: Ibbf02912a9fe0cfbb7077cd4d67a404b004af8e2
    Closes-bug: #1521221

Changed in heat:
status: In Progress → Fix Committed
Changed in heat:
status: Fix Committed → Fix Released
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.