Error: ERROR: Environment not in valid format: environment has wrong section "heat_template_version"

asked 2014-07-23 00:25:00 -0600

jagan gravatar image

I installed devstack,I tried to create template with source below (tempalte source given as "Direct input")

heat_template_version: 2013-05-23 parameters: DBRootPassword: type: string label: Database Password description: Root password for MySQL hidden: true

resources: my_instance: type: OS::Nova::Server properties: # general properties ... user_data: str_replace: template: | #!/bin/bash echo "Hello world" echo "Setting MySQL root password" mysqladmin -u root password $db_rootpassword # do more things ... params: $db_rootpassword: { get_param: DBRootPassword }

Unable to create stack ,how to resolve this error. Thanks

edit retag flag offensive close merge delete

Comments

please format your template because YAML has a strict requirement on identation; also please be specific what kind of errors you are seeing.

Qiming gravatar imageQiming ( 2014-07-27 21:40:51 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-04 12:17:03 -0600

zaneb gravatar image

The heat client accepts two types of files - templates and environments. It sounds like you are passing a template with the flag to indicate that it is an environment file, hence the error.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2014-07-23 00:25:00 -0600

Seen: 1,180 times

Last updated: Aug 04 '14