Ask Your Question

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

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

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


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 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools


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

Seen: 1,009 times

Last updated: Aug 04 '14