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

ZHOU TAO A tao.a.zhou at alcatel-lucent.com
Wed Sep 3 09:13:19 UTC 2014


Hi Steve,

I tried with your suggestion and it works.
I am just curious about  what's the difference between launching from 
dashboard and launching from dashboard.
If my template is wrong, why it works in CLI?



On 09/03/2014 04:42 PM, Steven Hardy wrote:
> 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