<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt'>
<p>Hi</p>
<p>Here is a template that creates a server and publish it:</p>
<p><a href="https://github.com/jmferrer/openstack-openshift-workshop/blob/master/openstack/nfs-server-heat-template.yaml">https://github.com/jmferrer/openstack-openshift-workshop/blob/master/openstack/nfs-server-heat-template.yaml</a></p>
<p>Maybe it could help you.</p>
<p>Have a nice day,</p>
<p>Jose Manuel</p>
<div> </div>
<p> </p>
<p>El 2016-10-14 00:01, Martinx - ジェームズ escribió:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr"><br />
<div class="gmail_extra"><br />
<div class="gmail_quote">On 13 October 2016 at 17:26, Martinx - ジェームズ <span><<a href="mailto:thiagocmartinsc@gmail.com">thiagocmartinsc@gmail.com</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
<div dir="ltr">
<div>
<div class="gmail-h5"><br />
<div class="gmail_extra"><br />
<div class="gmail_quote">On 13 October 2016 at 17:21, Martinx - ジェームズ <span><<a href="mailto:thiagocmartinsc@gmail.com">thiagocmartinsc@gmail.com</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
<div dir="ltr">Guys,
<div> </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> </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:</div>
<div>        - network: { get_resource: ctrl_net }</div>
</div>
<div>---</div>
<div> </div>
<div> This works!</div>
<div> </div>
<div> However, I want to associate a Floating IP to it, then, I added:</div>
<div> </div>
<div>---</div>
<div> ....</div>
<div>
<div><strong>  floating_ip_1:</strong></div>
<div><strong>    type: OS::Neutron::FloatingIP</strong></div>
<div><strong>    depends_on: router-0-port-1</strong></div>
<div><strong>    properties:</strong></div>
<div><strong>      floating_network: { get_param: public_network }</strong></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:</div>
<div>        - network: { get_resource: ctrl_net }</div>
<div><strong>        - floating_ip: { get_resource: floating_ip_1 }</strong></div>
</div>
<div>---</div>
<div> </div>
<div> Then, it does't work anymore!</div>
<div> </div>
<div> heat stack-create fails with:</div>
<div> </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> </div>
<div> So, how to use it?</div>
<div> </div>
<div> If I use "OS::Neutron::Port" and "OS::Neutron::FloatingIPAssoci<wbr />ation", then, it works but, damn, I want a simpler Heat template, without fixed ips, without Port definitions, something like this:</div>
<div> </div>
<div><a href="https://specs.openstack.org/openstack/heat-specs/specs/kilo/rich-network-prop.html">https://specs.openstack.org/op<wbr />enstack/heat-specs/specs/kilo/<wbr />rich-network-prop.html</a></div>
<div> </div>
<div> Is it supported on Mitaka? If yes, how to do it?</div>
<div> </div>
<div>Thanks!</div>
<div>Thiago</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
<div class="gmail_extra">Also, according to the following doc:</div>
<div class="gmail_extra"> </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/<wbr />developer/heat/template_guide/<wbr />openstack.html#OS::Nova::<wbr />Server-prop-networks</a></div>
<div class="gmail_extra"> </div>
<div class="gmail_extra">The "networks" section supports "floating_ip", starting with Mitaka...</div>
</div>
</blockquote>
</div>
</div>
<div class="gmail_extra">BTW, I'll be happy to first, get rid of "OS::Neutron::FloatingIPAssociation" AND the fixed_ips, then, later, if possobe, I'll get rid of "OS::Neutron::Port" as well...</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br /> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br /> Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br /> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a></div>
</blockquote>
</body></html>