[Openstack] Heat template works in command line but fails at dashboard

Steven Hardy shardy at redhat.com
Wed Sep 3 08:42:05 UTC 2014


On Wed, Sep 03, 2014 at 10:23:34AM +0800, ZHOU TAO A wrote:
> Hi All,
> 
> I can launch a template from CLI by running 'heat stack-create -f
> mytemplate.yaml', but I cannot launch it from dashboard because it get the
> wrong security group.
> 
> I have a security group parameter defined like this:
> 
>   my_security_group:
>     type: comma_delimited_list
>     label: 'Node ddddd Security Group(s)'
>     default:
>       - default
> 
> Then  I used get_param to get this parameter
>       security_groups:
>         get_param: my_security_group
> 
> When launched from dashboard, the value of security_groups becomes
> '[u'default']', which is suppose to be 'default'.
> Anyone ever had same issue like this?

Isn't the problem that you're defining a list for the default in the
template, when it should be a string?

E.g:

security_group:
     type: comma_delimited_list
     label: 'Node ddddd Security Group(s)'
     default: default

If you need to specify additional items, they are delimted via commas, as
described in the type name, e.g 
 
security_group:
     type: comma_delimited_list
     label: 'Node ddddd Security Group(s)'
     default: default,blah

Heat then splits the string into a list when parsing the template.

Hope that helps.

Steve




More information about the Openstack mailing list