← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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).

** Affects: horizon
     Importance: Undecided
     Assignee: Miguel Grinberg (miguelgrinberg)
         Status: New

** Attachment added: "screenshot of the error"
   https://bugs.launchpad.net/bugs/1393831/+attachment/4263034/+files/heat_error.jpg

** Changed in: horizon
     Assignee: (unassigned) => Miguel Grinberg (miguelgrinberg)

-- 
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 OpenStack Dashboard (Horizon):
  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/horizon/+bug/1393831/+subscriptions


Follow ups

References