Re: [Openstack] How to use "floating_ip" under "OS::Nova::Server", Mitaka ?
Hi Jose, That's awesome! Floating IPs without fixed_ips and no more "OS::Neutron::FloatingIPAssociation"! Thank you! Best, Thiago On 17 October 2016 at 05:42, Jose Manuel Ferrer Mosteiro < jmferrer.paradigmatecnolog...@gmail.com> wrote: > Hi > > Here is a template that creates a server and publish it: > > https://github.com/jmferrer/openstack-openshift-workshop/ > blob/master/openstack/nfs-server-heat-template.yaml > > Maybe it could help you. > > Have a nice day, > > Jose Manuel > > > > > El 2016-10-14 00:01, Martinx - ジェームズ escribió: > > > > On 13 October 2016 at 17:26, Martinx - ジェームズ> wrote: > >> >> >> On 13 October 2016 at 17:21, Martinx - ジェームズ >> wrote: >> >>> Guys, >>> >>> I'm trying to launch a stack via Heat, by using the following template >>> (I'm copying just part of it here): >>> >>> --- >>> demosrv: >>> type: OS::Nova::Server >>> depends_on: ctrl_subnet >>> properties: >>> name: { str_replace: { params: { $stack_name: { get_param: >>> 'OS::stack_name' } }, template: '$stack_name-demosrv' } } >>> key_name: { get_param: 'ssh_key' } >>> image: { get_param: 'demosrv_image' } >>> flavor: "m1.small" >>> networks: >>> - network: { get_resource: ctrl_net } >>> --- >>> >>> This works! >>> >>> However, I want to associate a Floating IP to it, then, I added: >>> >>> --- >>> >>> * floating_ip_1:* >>> *type: OS::Neutron::FloatingIP* >>> *depends_on: router-0-port-1* >>> *properties:* >>> * floating_network: { get_param: public_network }* >>> >>> demosrv: >>> type: OS::Nova::Server >>> depends_on: ctrl_subnet >>> properties: >>> name: { str_replace: { params: { $stack_name: { get_param: >>> 'OS::stack_name' } }, template: '$stack_name-demosrv' } } >>> key_name: { get_param: 'ssh_key' } >>> image: { get_param: 'demosrv_image' } >>> flavor: "m1.small" >>> networks: >>> - network: { get_resource: ctrl_net } >>> *- floating_ip: { get_resource: floating_ip_1 }* >>> --- >>> >>> Then, it does't work anymore! >>> >>> heat stack-create fails with: >>> >>> - >>> ERROR: One of the properties "network", "port" or "subnet" should be set >>> for the specified network of server "demosrv". >>> - >>> >>> So, how to use it? >>> >>> If I use "OS::Neutron::Port" and "OS::Neutron::FloatingIPAssociation", >>> then, it works but, damn, I want a simpler Heat template, without fixed >>> ips, without Port definitions, something like this: >>> >>> https://specs.openstack.org/openstack/heat-specs/specs/kilo/ >>> rich-network-prop.html >>> >>> Is it supported on Mitaka? If yes, how to do it? >>> >>> Thanks! >>> Thiago >>> >> Also, according to the following doc: >> >> http://docs.openstack.org/developer/heat/template_guide/open >> stack.html#OS::Nova::Server-prop-networks >> >> The "networks" section supports "floating_ip", starting with Mitaka... >> > 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... > > ___ > Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/ > openstack > Post to : openstack@lists.openstack.org > Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/ > openstack > > ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Re: [Openstack] How to use "floating_ip" under "OS::Nova::Server", Mitaka ?
Hi Here is a template that creates a server and publish it: https://github.com/jmferrer/openstack-openshift-workshop/blob/master/openstack/nfs-server-heat-template.yaml [3] Maybe it could help you. Have a nice day, Jose Manuel El 2016-10-14 00:01, Martinx - ジェームズ escribió: > On 13 October 2016 at 17:26, Martinx - ジェームズ> wrote: > > On 13 October 2016 at 17:21, Martinx - ジェームズ > wrote: > > Guys, > > I'm trying to launch a stack via Heat, by using the following template (I'm > copying just part of it here): > > --- > > demosrv: > type: OS::Nova::Server > depends_on: ctrl_subnet > properties: > name: { str_replace: { params: { $stack_name: { get_param: 'OS::stack_name' } > }, template: '$stack_name-demosrv' } } > key_name: { get_param: 'ssh_key' } > image: { get_param: 'demosrv_image' } > flavor: "m1.small" > networks: > - network: { get_resource: ctrl_net } > --- > > This works! > > However, I want to associate a Floating IP to it, then, I added: > > --- > > > FLOATING_IP_1: > TYPE: OS::NEUTRON::FLOATINGIP > DEPENDS_ON: ROUTER-0-PORT-1 > PROPERTIES: > FLOATING_NETWORK: { GET_PARAM: PUBLIC_NETWORK } > > > demosrv: > type: OS::Nova::Server > depends_on: ctrl_subnet > properties: > name: { str_replace: { params: { $stack_name: { get_param: 'OS::stack_name' } > }, template: '$stack_name-demosrv' } } > key_name: { get_param: 'ssh_key' } > image: { get_param: 'demosrv_image' } > flavor: "m1.small" > networks: > - network: { get_resource: ctrl_net } > - FLOATING_IP: { GET_RESOURCE: FLOATING_IP_1 } > --- > > Then, it does't work anymore! > > heat stack-create fails with: > > - > > ERROR: One of the properties "network", "port" or "subnet" should be set for > the specified network of server "demosrv". > - > > So, how to use it? > > If I use "OS::Neutron::Port" and "OS::Neutron::FloatingIPAssociation", then, > it works but, damn, I want a simpler Heat template, without fixed ips, > without Port definitions, something like this: > > https://specs.openstack.org/openstack/heat-specs/specs/kilo/rich-network-prop.html > [1] > > Is it supported on Mitaka? If yes, how to do it? > > Thanks! > Thiago > Also, according to the following doc: > > http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::Server-prop-networks > [2] > > The "networks" section supports "floating_ip", starting with Mitaka... 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... ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack [4] Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack [4] Links: -- [1] https://specs.openstack.org/openstack/heat-specs/specs/kilo/rich-network-prop.html [2] http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::Server-prop-networks [3] https://github.com/jmferrer/openstack-openshift-workshop/blob/master/openstack/nfs-server-heat-template.yaml [4] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Re: [Openstack] How to use "floating_ip" under "OS::Nova::Server", Mitaka ?
On 13 October 2016 at 17:26, Martinx - ジェームズwrote: > > > On 13 October 2016 at 17:21, Martinx - ジェームズ > wrote: > >> Guys, >> >> I'm trying to launch a stack via Heat, by using the following template >> (I'm copying just part of it here): >> >> --- >> demosrv: >> type: OS::Nova::Server >> depends_on: ctrl_subnet >> properties: >> name: { str_replace: { params: { $stack_name: { get_param: >> 'OS::stack_name' } }, template: '$stack_name-demosrv' } } >> key_name: { get_param: 'ssh_key' } >> image: { get_param: 'demosrv_image' } >> flavor: "m1.small" >> networks: >> - network: { get_resource: ctrl_net } >> --- >> >> This works! >> >> However, I want to associate a Floating IP to it, then, I added: >> >> --- >> >> * floating_ip_1:* >> *type: OS::Neutron::FloatingIP* >> *depends_on: router-0-port-1* >> *properties:* >> * floating_network: { get_param: public_network }* >> >> demosrv: >> type: OS::Nova::Server >> depends_on: ctrl_subnet >> properties: >> name: { str_replace: { params: { $stack_name: { get_param: >> 'OS::stack_name' } }, template: '$stack_name-demosrv' } } >> key_name: { get_param: 'ssh_key' } >> image: { get_param: 'demosrv_image' } >> flavor: "m1.small" >> networks: >> - network: { get_resource: ctrl_net } >> *- floating_ip: { get_resource: floating_ip_1 }* >> --- >> >> Then, it does't work anymore! >> >> heat stack-create fails with: >> >> - >> ERROR: One of the properties "network", "port" or "subnet" should be set >> for the specified network of server "demosrv". >> - >> >> So, how to use it? >> >> If I use "OS::Neutron::Port" and "OS::Neutron::FloatingIPAssociation", >> then, it works but, damn, I want a simpler Heat template, without fixed >> ips, without Port definitions, something like this: >> >> https://specs.openstack.org/openstack/heat-specs/specs/kilo/ >> rich-network-prop.html >> >> Is it supported on Mitaka? If yes, how to do it? >> >> Thanks! >> Thiago >> > > Also, according to the following doc: > > http://docs.openstack.org/developer/heat/template_guide/ > openstack.html#OS::Nova::Server-prop-networks > > The "networks" section supports "floating_ip", starting with Mitaka... > 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... ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Re: [Openstack] How to use "floating_ip" under "OS::Nova::Server", Mitaka ?
On 13 October 2016 at 17:21, Martinx - ジェームズwrote: > Guys, > > I'm trying to launch a stack via Heat, by using the following template > (I'm copying just part of it here): > > --- > demosrv: > type: OS::Nova::Server > depends_on: ctrl_subnet > properties: > name: { str_replace: { params: { $stack_name: { get_param: > 'OS::stack_name' } }, template: '$stack_name-demosrv' } } > key_name: { get_param: 'ssh_key' } > image: { get_param: 'demosrv_image' } > flavor: "m1.small" > networks: > - network: { get_resource: ctrl_net } > --- > > This works! > > However, I want to associate a Floating IP to it, then, I added: > > --- > > * floating_ip_1:* > *type: OS::Neutron::FloatingIP* > *depends_on: router-0-port-1* > *properties:* > * floating_network: { get_param: public_network }* > > demosrv: > type: OS::Nova::Server > depends_on: ctrl_subnet > properties: > name: { str_replace: { params: { $stack_name: { get_param: > 'OS::stack_name' } }, template: '$stack_name-demosrv' } } > key_name: { get_param: 'ssh_key' } > image: { get_param: 'demosrv_image' } > flavor: "m1.small" > networks: > - network: { get_resource: ctrl_net } > *- floating_ip: { get_resource: floating_ip_1 }* > --- > > Then, it does't work anymore! > > heat stack-create fails with: > > - > ERROR: One of the properties "network", "port" or "subnet" should be set > for the specified network of server "demosrv". > - > > So, how to use it? > > If I use "OS::Neutron::Port" and "OS::Neutron::FloatingIPAssociation", > then, it works but, damn, I want a simpler Heat template, without fixed > ips, without Port definitions, something like this: > > https://specs.openstack.org/openstack/heat-specs/specs/ > kilo/rich-network-prop.html > > Is it supported on Mitaka? If yes, how to do it? > > Thanks! > Thiago > Also, according to the following doc: http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::Server-prop-networks The "networks" section supports "floating_ip", starting with Mitaka... ___ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack