Re: [Openstack] boot multi instances at a time issue
On 01/02/2013 12:52 AM, heut2008 wrote: Hi,all When booting multi instances at a time , we face a hostname naming problem, now all instances will using the same hostname provideed at booting time,as a developer,I am looking for suggestions and requirements that from the user side, how do you want nova naming the hostname when booting multi instances? when provide a hostname at booting time ,is adding a number suffix ok? or more configurable naming is needed. I believe the API should be modified to make suffix/templatized names possible, as well as the ability to specify names as a list, with each name in the list of names corresponding to a server. Let's say I want to create 20 instances, with instances names instance-00 through instance-19. Of course, there isn't any way to do this right now, since the name parameter of the createServer call sets the name the same for all instances. We could add a new parameter called nameTemplate that would be filled in with some easy rules: * Replace %(launch_id)d with the launch sequence. So, the third instance booted with a nameTemplate of instance-%(launch_id)d would get the name instance-3 * Replace %(image_name)s with the name of the image. For example, if the nameTemplate was %(image_name)s-%(launch_id)d and the name of the image was UbuntuPrecise, then the third launched instance would be named UbuntuPrecise-3 * Any other sensible rules one might want to give... -jay ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] boot multi instances at a time issue
Hi, A blueprint was open to address this: https://blueprints.launchpad.net/nova/+spec/multi-boot-instance-naming Regards, Édouard. Le 2 janv. 2013 06:54, heut2008 heut2...@gmail.com a écrit : Hi,all When booting multi instances at a time , we face a hostname naming problem, now all instances will using the same hostname provideed at booting time,as a developer,I am looking for suggestions and requirements that from the user side, how do you want nova naming the hostname when booting multi instances? when provide a hostname at booting time ,is adding a number suffix ok? or more configurable naming is needed. thanks -- Yaguang Tang ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] boot multi instances at a time issue
I see the blueprint ,and plan to implement it. here want some user demand for this feather, how the user want to naming hostnames. 2013/1/2 Édouard Thuleau thul...@gmail.com Hi, A blueprint was open to address this: https://blueprints.launchpad.net/nova/+spec/multi-boot-instance-naming Regards, Édouard. Le 2 janv. 2013 06:54, heut2008 heut2...@gmail.com a écrit : Hi,all When booting multi instances at a time , we face a hostname naming problem, now all instances will using the same hostname provideed at booting time,as a developer,I am looking for suggestions and requirements that from the user side, how do you want nova naming the hostname when booting multi instances? when provide a hostname at booting time ,is adding a number suffix ok? or more configurable naming is needed. thanks -- Yaguang Tang ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Yaguang Tang ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp