heat template complain "physical_network" property of OS::Neutron::ProviderNet [closed]
Hi,
I'm trying to deploy a VM using two physical networks. manually create a VM to use these physical networks works fine.
neutron net-create --provider:physical_network ANetwork --provider:network_type vlan a_net
neutron net-create --provider:physical_network BNetwork --provider:network_type vlan b_net
neutron port-create a_net --binding:vnic-type direct
neutron port-create b_net --binding:vnic-type direct
nova boot --flavor m1.medium --image test.img --nic port-id=a_net_port_id --nic port-id=b_net_port_id my_vm
Then I turn to use heat to do the same, but my template is rejected and an ERROR popped like below:
ERROR: Template not in valid format: Error parsing template: while scanning for the next token found character that cannot start any token in "<unicode string>", line 15, column 1
My template is like this:
heat_template_version: 2013-05-23
description: >
HOT template to create a simple setup
parameters:
image:
type: string
description: Name of image to use
resources:
a_net:
type: OS::Neutron::ProviderNet
properties:
physical_network: ANetwork
b_net:
type: OS::Neutron::ProviderNet
properties:
physical_network: BNetwork
..........................
According to openstack document, OS::Neutron::ProviderNet has only one "required" property, and it is "physical_network". why my heat installation doesn't like this property? did I missed anything in the template?
The heat version in my openstack environment is 0.4.0
stack@vRanGEP11:~/heat$ heat --version
0.4.0