← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1393831] Re: [heat] certain template errors display a long stack trace in the red error popup

 

Moved bug to heat project, this message comes from heat-engine, same
happens when using command line client:

$ heat stack-create test -f bug.yaml
ERROR: u'u\'"hidden" is not a valid keyword inside an output definition\'\nTraceback (most recent call last):\n\n  File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply\n    incoming.message))\n\n  File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch\n    return self._do_dispatch(endpoint, method, ctxt, args)\n\n  File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch\n    result = getattr(endpoint, method)(ctxt, **new_args)\n\n  File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper\n    return f(*args, **kwargs)\n\n  File "/opt/stack/heat/heat/engine/service.py", line 72, in wrapped\n    return func(self, ctx, *args, **kwargs)\n\n  File "/opt/stack/heat/heat/engine/service.py", line 678, in create_stack\n    user_creds_id)\n\n  File "/opt/stack/heat/heat/engine/service.py", line 593, in _parse_template_and_validate_stack\n    **common_params)\n\n  File "/opt/stack/heat/heat/engine/stack.py", line 137, in __init__\n    self.outputs = self.resolve_static_data(self.t[self.t.OUTPUTS])\n\n  File "/opt/stack/heat/heat/engine/hot/template.py", line 108, in __getitem__\n    return self._translate_outputs(the_section)\n\n  File "/opt/stack/heat/heat/engine/hot/template.py", line 172, in _translate_outputs\n    _(\'"%s" is not a valid \'\n\n  File "/opt/stack/heat/heat/engine/hot/template.py", line 118, in _translate\n    raise KeyError(err_msg % value)\n\nKeyError: u\'"hidden" is not a valid keyword inside an output definition\'\n'

** Project changed: horizon => heat

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1393831

Title:
  [heat] certain template errors display a long stack trace in the red
  error popup

Status in Orchestration API (Heat):
  New

Bug description:
  I have found that certain types of template errors are not caught in
  the first validation pass, and instead fail in the second phase, when
  all the parameters are submitted.

  For example, adding an invalid property to an output does this. Here
  is an example (only showing the "outputs" section):

  outputs:
    mysql_instance_name:
      description: Name of the MySQL instance
      value: { get_attr: [mysql_instance, name] }
    mysql_instance_ip:
      description: The IP address of the MySQL instance
      value: { get_attr: [mysql_instance, first_address] }
    mysql_password:
      description: The MySQL root password
      value: { get_attr: [mysql_password, value] }
      hidden: true

  The "hidden" parameter is invalid for an output, but the initial
  template validation does not find an error (likely a Heat problem).
  When the template is finally submitted a stack trace appears in the
  red popup error (see attached screenshot).

To manage notifications about this bug go to:
https://bugs.launchpad.net/heat/+bug/1393831/+subscriptions


References