Re: Issues in creating labs with more than 3 instances


Thank you Kevin.

On Wed, Jul 15, 2015 at 1:46 PM, Coakley, Kevin <kcoakley@xxxxxxxx> wrote:
I created another pull request that uses a loop instead of min_count and max_count to create multiple servers, if you want to include that in the default branch. Otherwise you can use the example to modify one off scripts. The output of the script (below) shows the id of instance created.

Creating 1 of 2 instances
Instance ID: ff568bd7-299f-4407-b4d2-73bf17d2d8a2
Adding IP 132.249.238.41
export FLEETCTL_TUNNEL=132.249.238.41
Creating 2 of 2 instances
Instance ID: 60991fcf-27fe-4357-b809-bc12b73ab28f
Adding IP 132.249.238.7
export FLEETCTL_TUNNEL=132.249.238.7
region=NCSA,elastic_ip=false,mounts=true
etcd token is https://discovery.etcd.io/68c033d7b94ae56650de303206420b5a
Creating 1 of 1 instances
Instance ID: 024f1def-d698-49d1-ba9f-331f05ad03ca
11:31:44 Instance status: BUILD
11:31:55 Instance status: BUILD
region=NCSA,elastic_ip=false,mounts=false
etcd token is https://discovery.etcd.io/68c033d7b94ae56650de303206420b5a
Creating 1 of 4 instances
Instance ID: 8866b038-e68e-4d26-a912-77a985ee441f
Creating 2 of 4 instances
Instance ID: 195fadd7-b8a2-4e8a-ac56-a17fc6ff486d
Creating 3 of 4 instances
Instance ID: 43ae2991-6162-4098-bb31-dbc312805e6b
Creating 4 of 4 instances
Instance ID: ea2ccd00-e8a8-4af5-89ca-579d65419c2f
ETCD_TOKEN=https://discovery.etcd.io/68c033d7b94ae56650de303206420b5a

-Kevin




On 7/15/15, 8:49 AM, "owner-discuss@xxxxxxxxxxxxxxxxxxxxxxx on behalf of Coakley, Kevin" <owner-discuss@xxxxxxxxxxxxxxxxxxxxxxx on behalf of kcoakley@xxxxxxxx> wrote:

>Only the first instance is returned from servers.create when using min_count and max_count to launch multiple instances with the v1 and v2 OpenStack Compute (Nova) API. The v3 api should return a list server objects, see http://specs.openstack.org/openstack/nova-specs/specs/juno/approved/return-all-servers-during-multiple-create.html . Until the v3 api is available, I recommend using a loop to create multiple servers instead of using min_count and max_count if you need details about each instance that is created.
>
>-Kevin
>
>
>
>From:Â <owner-discuss@xxxxxxxxxxxxxxxxxxxxxxx> on behalf of Lengyue Chen
>Reply-To:Â "discuss@xxxxxxxxxxxxxxxxxxxxxxx"
>Date:Â Tuesday, July 14, 2015 at 2:51 PM
>To:Â "discuss@xxxxxxxxxxxxxxxxxxxxxxx"
>Subject:Â Issues in creating labs with more than 3 instances
>
>
>Hi all
>
>
>I am using the startup_ndslabs.py in the NDS REST API and I can only get the instance id of the first three instances if I create a lab with more than 3 instances. I have uploaded the startup_ndslabs.py I am using to the repo
>https://bitbucket.org/nds-org/nds-webservice/src/8eeff20c855b27893418b1cc056db17c284b89f7/startup_ndslabs.py?at=nds-27-implement-create-rest-endpoint
>
>
>In line 186, the print out statement only give me 3 instance ids even there are more. And strange thing is, all instances are actually created on openstack and instances other than first 3 instances have their instance ids attached in their names although
> I did not write any code to do that.
>
>
>Any one who familiar the script can help me? Thanks a lot.
>
>
>Best
>
>Lengyue
>




Other Mailing lists | Author Index | Date Index | Subject Index | Thread Index