<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 13 October 2016 at 17:21, Martinx - ジェームズ <span dir="ltr"><<a href="mailto:thiagocmartinsc@gmail.com" target="_blank">thiagocmartinsc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Guys,<div><br></div><div> I'm trying to launch a stack via Heat, by using the following template (I'm copying just part of it here):</div><div><br></div><div>---</div><div><div>  demosrv:</div><div>    type: OS::Nova::Server</div><div>    depends_on: ctrl_subnet</div><div>    properties:</div><div>      name: { str_replace: { params: { $stack_name: { get_param: 'OS::stack_name' } }, template: '$stack_name-demosrv' } }</div><div>      key_name: { get_param: 'ssh_key' }</div><div>      image: { get_param: 'demosrv_image' }</div><div>      flavor: "m1.small"</div><div>      networks:<br></div><div>        - network: { get_resource: ctrl_net }</div></div><div>---</div><div><br></div><div> This works!</div><div><br></div><div> However, I want to associate a Floating IP to it, then, I added:</div><div><br></div><div>---</div><div> ....</div><div><div><b>  floating_ip_1:</b></div><div><b>    type: OS::Neutron::FloatingIP</b></div><div><b>    depends_on: router-0-port-1</b></div><div><b>    properties:</b></div><div><b>      floating_network: { get_param: public_network }</b></div></div><div>....</div><div><div>  demosrv:</div><div>    type: OS::Nova::Server</div><div>    depends_on: ctrl_subnet</div><div>    properties:</div><div>      name: { str_replace: { params: { $stack_name: { get_param: 'OS::stack_name' } }, template: '$stack_name-demosrv' } }</div><div>      key_name: { get_param: 'ssh_key' }</div><div>      image: { get_param: 'demosrv_image' }</div><div>      flavor: "m1.small"</div><div>      networks:<br></div><div>        - network: { get_resource: ctrl_net }</div><div><b>        - floating_ip: { get_resource: floating_ip_1 }</b></div></div><div>---</div><div><br></div><div> Then, it does't work anymore!</div><div><br></div><div> heat stack-create fails with:</div><div><br></div><div>-</div><div><div>ERROR: One of the properties "network", "port" or "subnet" should be set for the specified network of server "demosrv".</div></div><div>-</div><div><br></div><div> So, how to use it?</div><div><br></div><div> If I use "OS::Neutron::Port" and "OS::Neutron::<wbr>FloatingIPAssociation", then, it works but, damn, I want a simpler Heat template, without fixed ips, without Port definitions, something like this:</div><div><br></div><div><a href="https://specs.openstack.org/openstack/heat-specs/specs/kilo/rich-network-prop.html" target="_blank">https://specs.openstack.org/<wbr>openstack/heat-specs/specs/<wbr>kilo/rich-network-prop.html</a><br></div><div><br></div><div> Is it supported on Mitaka? If yes, how to do it?</div><div><br></div><div>Thanks!</div><div>Thiago</div></div>
</blockquote></div><br></div><div class="gmail_extra">Also, according to the following doc:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::Server-prop-networks">http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::Server-prop-networks</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">The "networks" section supports "floating_ip", starting with Mitaka...</div></div>