Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

heat template

Hello,

I have the following heat template, when I try to run this template I get this error

heat stack-create my_second -f demo1.yml WARNING (shell) "heat stack-create" is deprecated, please use "openstack stack create" instead ERROR: Value must be a string

Any ideas? thanks.

heat_template_version: 2017-02-24 description: Launch basic instance

resources: web_secgroup: type: OS::Neutron::SecurityGroup properties: rules: - protocol: tcp remote_ip_prefix: 0.0.0.0/0 port_range_min: 80 port_range_max: 80 - protocol: tcp remote_ip_prefix: 0.0.0.0/0 port_range_min: 443 port_range_max: 443

instance_port: type: OS::Neutron::Port properties: network: private security_groups: - default - { get_resources: web_secgroup } fixed_ips: - subnet_id: private-subnet

instance: type: OS::Nova::Server properties: flavor: m1.tiny image: cirros-0.3.4-x86_64-uec networks: - port: { get_resources: instance_port }

heat template

Hello,

I have the following heat template, when I try to run this template I get this error

I have no spaces or tabs

heat stack-create my_second -f demo1.yml WARNING (shell) "heat stack-create" is deprecated, please use "openstack stack create" instead ERROR: Value must be a string

Any ideas? thanks.

heat_template_version: 2017-02-24 description: Launch basic instance

resources: web_secgroup: type: OS::Neutron::SecurityGroup properties: rules: - protocol: tcp remote_ip_prefix: 0.0.0.0/0 port_range_min: 80 port_range_max: 80 - protocol: tcp remote_ip_prefix: 0.0.0.0/0 port_range_min: 443 port_range_max: 443

instance_port: type: OS::Neutron::Port properties: network: private security_groups: - default - { get_resources: web_secgroup } fixed_ips: - subnet_id: private-subnet

instance: type: OS::Nova::Server properties: flavor: m1.tiny image: cirros-0.3.4-x86_64-uec networks: - port: { get_resources: instance_port }

heat template

Hello,

I have the following heat template, when I try to run this template I get this error

I have no spaces or tabs

$ heat stack-create  my_second -f demo1.yml
WARNING (shell) "heat stack-create" is deprecated, please use "openstack stack create" instead
ERROR: Value must be a string

string

Any ideas? thanks.

heat_template_version: 2017-02-24
description: Launch basic instance

instance resources: web_secgroup: type: OS::Neutron::SecurityGroup properties: rules: - protocol: tcp remote_ip_prefix: 0.0.0.0/0 port_range_min: 80 port_range_max: 80 - protocol: tcp remote_ip_prefix: 0.0.0.0/0 port_range_min: 443 port_range_max: 443

443 instance_port: type: OS::Neutron::Port properties: network: private security_groups: - default - { get_resources: web_secgroup } fixed_ips: - subnet_id: private-subnet

private-subnet instance: type: OS::Nova::Server properties: flavor: m1.tiny image: cirros-0.3.4-x86_64-uec networks: - port: { get_resources: instance_port }

}